/* ============================================================
   Thames House Buyers — main stylesheet
   Palette and hierarchy per "Color Pallete Guidelines.md":
   ~60% white/soft white · ~25% navy/blue · ~10% stone/pale · ~5% burgundy
   ============================================================ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #102A43;
  --navy-2: #173756;
  --blue: #1F4E79;
  --blue-dark: #183F62;
  --burgundy: #8F2638;
  --burgundy-dark: #731E2D;
  --stone: #F4F1EB;
  --stone-2: #ECE7DD;
  --soft: #FCFCFA;
  --slate: #52606D;
  --slate-2: #6B7885;
  --pale: #E8EEF3;
  --white: #FFFFFF;
  --line: #DCE3EA;
  --line-warm: #E3DDD1;

  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --max: 1160px;
  --max-narrow: 780px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 1px 3px rgba(16, 42, 67, .05);
  --shadow: 0 4px 14px rgba(16, 42, 67, .07), 0 1px 3px rgba(16, 42, 67, .05);
  --shadow-lg: 0 18px 44px rgba(16, 42, 67, .12), 0 3px 10px rgba(16, 42, 67, .06);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
strong { color: var(--navy); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--navy); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.icon { flex-shrink: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--max-narrow); }
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }
.section-white { background: var(--white); }
.section-stone { background: var(--stone); }
.section-pale { background: var(--pale); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.82); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a:not(.btn) { color: #fff; }
.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 0 2.25rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.1rem; }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--slate); }
.section-navy .lead { color: rgba(252,252,250,.86); }
.small { font-size: .9rem; }
.muted { color: var(--slate-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--burgundy); border-radius: 2px; }
.section-navy .eyebrow { color: #E7B8C0; }
.section-navy .eyebrow::before { background: #E7B8C0; }

.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .container { padding: 0 28px; }
  .section { padding: 88px 0; }
  .section-sm { padding: 56px 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: .95rem 1.5rem; min-height: 50px;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--burgundy); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.btn-primary:hover { background: var(--burgundy-dark); color: #fff; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }
.btn-sm { padding: .6rem 1.05rem; min-height: 42px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }
.btn-row-center { justify-content: center; }
.text-link { font-family: var(--font-head); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.site-logo { flex-shrink: 0; }
.site-logo img { width: 190px; height: auto; }
.site-nav { display: none; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-link.is-current { color: var(--blue); background: var(--pale); }
.has-dropdown { position: relative; }
.has-dropdown > .nav-link::after {
  content: ''; display: inline-block; margin-left: .4rem; vertical-align: 2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.dropdown {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .55rem .75rem; border-radius: 7px; color: var(--navy); text-decoration: none; font-size: .95rem; }
.dropdown a:hover { background: var(--pale); color: var(--blue); }
.dropdown .dropdown-all { color: var(--burgundy); font-weight: 600; border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .7rem; border-radius: 0 0 7px 7px; }

.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); text-decoration: none; font-size: .98rem; white-space: nowrap; }
.header-phone .icon { color: var(--burgundy); }
.header-phone span { display: none; }
.header-cta { display: none; white-space: nowrap; }

.nav-toggle { width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; overflow-y: auto; padding: .75rem 20px 7rem;
  border-top: 1px solid var(--line);
}
.mobile-nav > a, .mobile-group summary {
  display: block; padding: .95rem .25rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none; font-size: 1.05rem;
}
.mobile-group summary { cursor: pointer; list-style: none; position: relative; }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary::after { content: '+'; position: absolute; right: .5rem; color: var(--burgundy); font-size: 1.3rem; line-height: 1; top: 50%; transform: translateY(-50%); }
.mobile-group[open] summary::after { content: '–'; }
.mobile-group-links { padding: .35rem 0 .75rem .75rem; border-bottom: 1px solid var(--line); }
.mobile-group-links a { display: block; padding: .5rem .25rem; color: var(--slate); text-decoration: none; }
.mobile-nav-actions { display: grid; gap: .6rem; margin-top: 1.5rem; }
body.menu-open { overflow: hidden; }

.site-header--bare .header-phone span { display: inline; }

@media (min-width: 560px) {
  .header-phone span { display: inline; }
}
@media (min-width: 760px) {
  .header-cta { display: inline-flex; }
  .site-logo img { width: 210px; }
}
@media (min-width: 1140px) {
  .site-nav { display: flex; }
  .site-nav + .header-actions { margin-left: 0; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-phone span { display: none; }
}
@media (min-width: 1380px) {
  .header-phone span { display: inline; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; }
.breadcrumbs li { margin: 0; color: var(--slate-2); }
.breadcrumbs li + li::before { content: '/'; margin-right: .35rem; color: #A9B4BF; }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--stone);
  padding: 44px 0 56px;
  border-bottom: 1px solid var(--line-warm);
}
.hero::before {
  /* Faint roofline motif echoing the logo */
  content: ''; position: absolute; right: -80px; bottom: -40px; width: 620px; height: 420px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 420' fill='none' stroke='%23102A43' stroke-width='2'%3E%3Cpath d='M20 260 230 110l210 150M380 215V120h52v133M90 210v210M370 210v210' opacity='.08'/%3E%3Cpath d='M150 330 330 200l180 130M430 290v130M230 272v148' opacity='.06'/%3E%3C/svg%3E") no-repeat right bottom / contain;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 2rem; align-items: start; grid-template-areas: "top" "form" "bottom"; }
.hero-top { grid-area: top; }
.hero-bottom { grid-area: bottom; }
.hero-grid .form-card { grid-area: form; }
.hero-bottom .hero-points { margin-top: 0; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--burgundy); }
.hero-sub { font-size: 1.15rem; max-width: 36rem; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; color: var(--navy); font-weight: 500; }
.hero-points .icon { color: var(--burgundy); margin-top: 3px; }
.hero-alt { margin-top: 1.5rem; font-size: .95rem; }

.form-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 1.5rem;
}
.form-card-head { margin-bottom: 1rem; }
.form-card-head h2 { font-size: 1.3rem; margin-bottom: .25rem; }
.form-card-head p { margin: 0; font-size: .95rem; }

@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; column-gap: 4rem; row-gap: 0; grid-template-areas: "top form" "bottom form"; grid-template-rows: auto 1fr; }
  .hero-bottom .hero-points { margin-top: 1.5rem; }
  .form-card { padding: 2rem; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; padding: 1.1rem 0; font-size: .92rem; }
.trust-item { display: inline-flex; align-items: center; gap: .45rem; color: var(--navy); font-weight: 500; }
.trust-item .icon { color: var(--burgundy); }
.trust-item small { color: var(--slate-2); font-weight: 400; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--stone); padding: 32px 0 48px; border-bottom: 1px solid var(--line-warm); position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; right: -40px; bottom: -30px; width: 340px; height: 230px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 230' fill='none' stroke='%23102A43' stroke-width='2'%3E%3Cpath d='M10 150 150 50l140 100M240 115V60h36v80M60 125v105M240 125v105' opacity='.07'/%3E%3C/svg%3E") no-repeat right bottom / contain;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero .lead { font-size: 1.18rem; }
@media (min-width: 760px) { .page-hero { padding: 40px 0 72px; } }

/* ---------- Content layout with sidebar ---------- */
.layout { display: grid; gap: 3rem; }
.layout-main { min-width: 0; }
.layout-aside { min-width: 0; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: start; }
  .layout-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.aside-card h2, .aside-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.aside-card p { font-size: .96rem; }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn { margin-top: .6rem; }
.aside-card-list { list-style: none; padding: 0; margin: 1rem 0 1.25rem; font-size: .95rem; }
.aside-card-list li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; color: var(--navy); }
.aside-card-list .icon { color: var(--burgundy); margin-top: 3px; }
.aside-card-foot { margin: 1rem 0 0; font-size: .85rem; color: var(--slate-2); text-align: center; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose > h2 { margin-top: 2.75rem; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--burgundy); }

.check-list { list-style: none; padding: 0 !important; margin: 0 0 1.25rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F2638' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 70%;
}

.term-list { display: grid; gap: 1rem; margin: 1.25rem 0 1.75rem; }
.term { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.term h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.term p { margin: 0; font-size: .98rem; }

.callout { background: var(--pale); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.75rem 0; border-left: 3px solid var(--blue); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.callout-title .icon { color: var(--blue); }
.callout-warm { background: var(--stone); border-left-color: var(--burgundy); }
.callout-warm .callout-title .icon { color: var(--burgundy); }

.nation-split { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 700px) { .nation-split { grid-template-columns: 1fr 1fr; } }
.nation { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.nation-label { display: inline-block; font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--navy); padding: .2rem .55rem; border-radius: 4px; margin-bottom: .6rem; }
.nation-label.wales { background: var(--blue); }
.nation p:last-child, .nation ul:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1000px) { .card-grid.card-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.trust-strip-inner { justify-content: flex-start; }
@media (max-width: 759px) { .trust-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; font-size: .84rem; } .trust-item { align-items: flex-start; flex-wrap: wrap; } }
@media (min-width: 760px) { .trust-strip-inner { justify-content: center; } }

.link-card {
  display: flex; flex-direction: column; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; text-decoration: none; color: var(--slate);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.link-card:hover { border-color: #B9C7D4; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--slate); }
.link-card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--pale); color: var(--blue); display: grid; place-items: center; margin-bottom: .35rem; }
.link-card-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; line-height: 1.3; }
.link-card-text { font-size: .96rem; line-height: 1.55; flex: 1; }
.link-card-more { font-family: var(--font-head); font-weight: 700; color: var(--burgundy); font-size: .92rem; margin-top: .35rem; }

.info-card { background: var(--pale); border-radius: var(--radius-lg); padding: 1.6rem; }
.info-card-white { background: #fff; border: 1px solid var(--line); }
.info-card h3 { margin-bottom: .5rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--burgundy); display: grid; place-items: center; margin-bottom: 1rem; }
.info-card-white .info-card-icon { background: var(--pale); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 760px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.step-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--line-warm); margin: 0; }
.step-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--burgundy); line-height: 1; margin-bottom: .75rem; letter-spacing: -0.02em; }
.step-when { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .35rem; }
.step-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.step-card p { font-size: .97rem; margin: 0; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 2.25rem 4.25rem; margin: 0; }
.timeline li::before { content: ''; position: absolute; left: 1.45rem; top: 3rem; bottom: .5rem; width: 2px; background: var(--line-warm); }
.timeline li:last-child::before { display: none; }
.timeline-num { position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; border: 2px solid var(--burgundy); color: var(--burgundy); font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; font-size: 1.05rem; }
.timeline h2, .timeline h3 { font-size: 1.3rem; margin: .45rem 0 .5rem; }
.timeline p:last-child { margin-bottom: 0; }

/* ---------- Feature trio ---------- */
.feature { padding: 1.75rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); height: 100%; }
.feature-num { font-family: var(--font-head); font-weight: 800; color: var(--burgundy); font-size: .9rem; letter-spacing: .08em; margin-bottom: .75rem; display: block; }
.feature h3 { font-size: 1.25rem; }
.feature p:last-child { margin-bottom: 0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.compare-table tbody th { color: var(--navy); font-weight: 600; background: var(--soft); }
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: 0; }

/* ---------- Worked example ---------- */
.example { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; position: relative; }
.example-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--burgundy); border: 1px solid rgba(143,38,56,.35); border-radius: 999px; padding: .2rem .65rem; margin-bottom: .85rem; }
.example h3 { margin-bottom: .6rem; }
.example dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 1rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; }
.example dt { color: var(--slate); }
.example dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.example p:last-child { margin-bottom: 0; }

.quote-mark { font-family: Georgia, serif; font-size: 3rem; line-height: 1; color: var(--burgundy); display: block; height: 1.6rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.04rem; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item[open] { border-color: #C5D1DC; }
.faq-answer { padding: 0 1.25rem 1.2rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.faq-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.faq-toc li { margin: 0; }
.faq-toc a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; color: var(--navy); text-decoration: none; font-weight: 500; }
.faq-toc a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Related ---------- */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-title { font-size: 1.1rem; margin-bottom: 1rem; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
@media (min-width: 640px) { .related-list { grid-template-columns: 1fr 1fr; } }
.related-list li { margin: 0; }
.related-list a { display: block; padding: .8rem 1rem; background: var(--pale); border-radius: 8px; font-weight: 600; color: var(--navy); text-decoration: none; font-size: .96rem; }
.related-list a:hover { background: #DCE5EC; color: var(--blue); }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 180px; height: 4px; margin-left: -90px; background: var(--burgundy); border-radius: 0 0 4px 4px;
}
.cta-final h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.cta-final-note { margin: 1.25rem 0 0; font-size: .92rem; color: rgba(252,252,250,.65); }
.cta-final-note a { color: #fff; }

/* ---------- Forms ---------- */
.lead-form { position: relative; }
.form-progress { height: 5px; background: var(--pale); border-radius: 999px; overflow: hidden; margin-bottom: .5rem; }
.form-progress-bar { display: block; height: 100%; width: 0; background: var(--burgundy); border-radius: 999px; transition: width .3s ease; }
.form-progress-label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-2); margin: 0 0 1rem; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.lead-form .step:not(.is-active) { display: none; }
.step-q { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.2rem; line-height: 1.35; margin: 0 0 .4rem; padding: 0; }
.step-hint { font-size: .92rem; color: var(--slate-2); margin: 0 0 1rem; }
.step-q + .options { margin-top: 1rem; }
.step-nav { margin-top: 1.1rem; }
.options { display: grid; gap: .6rem; }
.options-2 { grid-template-columns: 1fr 1fr; }
.options-3 { grid-template-columns: 1fr 1fr; }
@media (min-width: 420px) { .options-3 { grid-template-columns: repeat(3, 1fr); } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: .7rem .75rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; font-weight: 600; color: var(--navy); font-size: .95rem; line-height: 1.3;
  transition: border-color .12s, background-color .12s, box-shadow .12s;
}
.option:hover span { border-color: var(--blue); background: #F7FAFC; }
.option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.option input:checked + span { border-color: var(--burgundy); background: #FBF3F4; box-shadow: inset 0 0 0 1px var(--burgundy); }

.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; font-weight: 600; color: var(--navy); font-size: .92rem; margin-bottom: .35rem; }
.field > span em { font-style: normal; font-weight: 400; color: var(--slate-2); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  padding: .8rem .95rem; min-height: 52px; background: #fff;
  border: 1.5px solid #CCD6E0; border-radius: var(--radius);
  transition: border-color .12s, box-shadow .12s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,78,121,.15); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--burgundy); }
.field-grid { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.form-card .field-grid { grid-template-columns: 1fr; }
.form-consent { display: flex; gap: .45rem; font-size: .84rem; color: var(--slate-2); margin: .25rem 0 0; line-height: 1.5; }
.form-consent .icon { margin-top: 3px; color: var(--blue); }
.form-back { background: none; border: 0; padding: .5rem 0; margin-top: .75rem; color: var(--slate); font: inherit; font-size: .92rem; cursor: pointer; }
.form-back:hover { color: var(--navy); text-decoration: underline; }
.form-error { margin: .9rem 0 0; padding: .75rem .9rem; border-radius: 8px; background: #FBEFF1; color: var(--burgundy-dark); font-size: .93rem; border: 1px solid rgba(143,38,56,.25); }
.lead-form.is-sending button[type=submit] { opacity: .7; pointer-events: none; }
.form-success { text-align: center; padding: 1rem .25rem; }
.form-success:focus { outline: none; }
.form-success-icon { width: 58px; height: 58px; border-radius: 50%; background: #EAF3EE; color: #2E7D4F; display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.3rem; line-height: 1.3; margin-bottom: .75rem; }

/* ---------- Contact blocks ---------- */
.contact-methods { display: grid; gap: 1rem; }
.contact-method { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; text-decoration: none; color: var(--slate); }
a.contact-method:hover { border-color: #B9C7D4; box-shadow: var(--shadow); color: var(--slate); }
.contact-method-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--pale); color: var(--burgundy); display: grid; place-items: center; flex-shrink: 0; }
.contact-method strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.contact-method span { font-size: .93rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-brand img { width: 210px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .94rem; line-height: 1.6; }
.footer-contact { list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-contact li { display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; }
.footer-contact .icon { color: #E7B8C0; }
.footer-heading { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.footer-heading:not(:first-child) { margin-top: 1.75rem; }
.site-footer ul:not(.footer-contact) { list-style: none; padding: 0; margin: 0; }
.site-footer ul:not(.footer-contact) li { margin-bottom: .5rem; }
.footer-reg { padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-reg-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; margin-bottom: 1rem; }
.footer-reg-badges span { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-weight: 500; font-size: .92rem; }
.footer-reg-badges .icon { color: #E7B8C0; }
.footer-reg-badges small { color: rgba(255,255,255,.6); font-weight: 400; font-size: .85rem; }
.footer-legal { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; max-width: 820px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: auto auto 1fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(16,42,67,.08);
}
.mobile-cta a { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: 0 .95rem; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none; }
.mobile-cta-call, .mobile-cta-wa { border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.mobile-cta-main { background: var(--burgundy); color: #fff; }
body.has-mobile-cta { padding-bottom: 76px; }
@media (min-width: 900px) {
  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }
}
@media (max-width: 380px) { .mobile-cta a span { display: none; } .mobile-cta-main span { display: inline; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.1rem 1.25rem; font-size: .92rem; display: grid; gap: .9rem; }
.cookie-banner p { margin: 0; }
.cookie-banner-buttons { display: flex; gap: .5rem; justify-content: flex-end; }
@media (min-width: 600px) { .cookie-banner { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Funnel ---------- */
.funnel-main { background: var(--stone); padding: 28px 0 56px; min-height: 70vh; }
.funnel-card { max-width: 560px; margin: 0 auto; }
.funnel-intro { text-align: center; max-width: 560px; margin: 0 auto 1.5rem; }
.funnel-intro h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: .6rem; }
.funnel-intro p { margin: 0; }
.funnel-trust { list-style: none; padding: 0; margin: 1.5rem auto 0; max-width: 560px; display: grid; gap: .5rem; font-size: .92rem; }
.funnel-trust li { display: flex; gap: .5rem; align-items: flex-start; margin: 0; color: var(--navy); }
.funnel-trust .icon { color: var(--burgundy); margin-top: 3px; }

/* ---------- Misc ---------- */
.notice { font-size: .88rem; color: var(--slate-2); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.pill-list li { margin: 0; padding: .4rem .85rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--navy); }
.error-page { padding: 96px 0; text-align: center; }
.error-page .big { font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: var(--burgundy); line-height: 1; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .mobile-cta, .site-footer, .cookie-banner, .cta-final { display: none !important; }
  body { padding: 0 !important; }
}

/* ---------- Utilities ---------- */
.grid-2x2 { display: grid; gap: 1rem; }
@media (min-width: 520px) { .grid-2x2 { grid-template-columns: 1fr 1fr; } }
.grid-2x2 .info-card h3 { font-size: 1.08rem; }
.grid-2x2 .info-card p { font-size: .95rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.measure { max-width: 780px; }
.h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.hero-bottom .steps { gap: .75rem; }
.hero-bottom .step-card { padding: 1.1rem 1.25rem; }
.hero-bottom .step-card h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.hero .breadcrumbs ol { margin-bottom: 1rem; }
.funnel-intro .eyebrow::before { display: none; }

/* ---------- Areas ---------- */
.dropdown-wide { min-width: 640px; left: 50%; transform: translate(-50%, 4px); }
.has-dropdown:hover .dropdown-wide, .has-dropdown:focus-within .dropdown-wide { transform: translate(-50%, 0); }
.dropdown-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem .5rem; }
.dropdown-col a { padding: .35rem .6rem; font-size: .9rem; }
.dropdown-label { display: block; padding: .5rem .6rem .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }
.region-grid { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
@media (min-width: 640px) { .region-grid { grid-template-columns: 1fr 1fr; } }
.region { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.region h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--burgundy); }
.region ul { list-style: none; padding: 0 !important; margin: 0; }
.region li { margin: 0 0 .35rem; }
.region a { text-decoration: none; font-weight: 500; }
.region a:hover { text-decoration: underline; }
.footer-areas { padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-area-links { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; }
.prose .pill-list { padding-left: 0; }

/* Header fit: six nav items + phone + CTA need a slightly wider bar on desktop */
.site-header .container { max-width: 1320px; }
@media (min-width: 1140px) {
  .site-header-inner { gap: 1rem; }
  .site-logo img { width: 180px; }
  .nav-link { padding: .5rem .55rem; font-size: .93rem; }
  .header-actions { gap: .6rem; }
}
@media (min-width: 1380px) {
  .site-logo img { width: 210px; }
  .nav-link { padding: .55rem .7rem; font-size: .95rem; }
}

/* ---------- Mobile hero: first question + Continue above the fold ---------- */
.hero-sub-mobile { display: none; }
.mobile-cta { transition: grid-template-columns .25s ease; }
body.form-in-view .mobile-cta { grid-template-columns: 1fr 1fr; }
body.form-in-view .mobile-cta-main { display: none; }
@media (max-width: 380px) { body.form-in-view .mobile-cta a span { display: inline; } }
@media (max-width: 759px) {
  .hero { padding: 18px 0 32px; }
  .hero::before { display: none; }
  .hero-grid { gap: 1rem; }
  .hero .eyebrow, .hero .breadcrumbs { display: none; }
  .hero h1 { font-size: 1.75rem; line-height: 1.15; margin-bottom: .5rem; }
  .hero-sub { display: none; }
  .hero-sub-mobile { display: block; font-size: 1rem; line-height: 1.5; margin: 0; }
  .hero .form-card { padding: 1.1rem 1.1rem 1.25rem; border-radius: 14px; }
  .hero .form-card-head { margin-bottom: .6rem; }
  .hero .form-card-head h2 { font-size: 1.1rem; margin-bottom: .1rem; }
  .hero .form-card-head p { font-size: .85rem; }
  .hero .form-progress-label { margin-bottom: .6rem; }
  .hero .step-q { font-size: 1.08rem; }
  .hero .step-hint-postcode { display: none; }
  .hero .field { margin-bottom: .6rem; }
  .hero .step-nav { margin-top: .6rem; }
}
/* Short phones (e.g. iPhone SE): keep Continue above the sticky bar */
@media (max-width: 759px) and (max-height: 620px) {
  .hero { padding-top: 14px; }
  .hero h1 { font-size: 1.55rem; }
  .hero-sub-mobile { font-size: .95rem; line-height: 1.45; }
  .hero .form-card-head p, .hero .form-progress-label { display: none; }
  .hero .form-progress { margin-bottom: .75rem; }
}
