/* Mortgage Vision — site styles
   Calm, conventional "private bank" look:
   Cormorant Garamond headings, Manrope text, oxblood / chalk / stone. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --oxblood: #5A1E22;
  --wine: #2B1719;
  --chalk: #FAF8F4;
  --rose: #C9A99A;
  --white: #FFFFFF;
  --bg: var(--chalk);
  --surface: #E8E2D8;
  --ink: #1C1A19;
  --muted: #5A524E;
  --on-dark-muted: #D8CAC4;

  --font-display: "Cormorant Garamond", "Garamond", Georgia, serif;
  --font-text: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-card: clamp(1.4375rem, 1.25rem + 0.7vw, 1.875rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);
  --step-display: clamp(2.75rem, 1rem + 5.6vw, 6.25rem);

  --margin: clamp(16px, 3vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 11vw, 176px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--font-text);
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 1em; }
h1, h2, h3 { margin: 0; text-wrap: balance; hyphens: none; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; line-height: 1.02; }
h2 { font-size: var(--step-head); }
ul, ol { margin: 0; padding: 0; }
blockquote { margin: 0; }
::selection { background: var(--rose); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 40; background: var(--chalk); color: var(--ink); padding: 12px 18px; }
.skip:focus { top: 12px; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--margin); max-width: 1680px; margin-inline: auto; }
.lead { font-size: var(--step-lead); line-height: 1.45; }
.fine { font-size: var(--step-small); color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px;
  padding: 0 28px; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font: 600 0.9375rem/1 var(--font-text); letter-spacing: 0.02em; text-decoration: none;
  background: var(--oxblood); color: var(--chalk);
  transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.button::after { content: "\2192"; font-weight: 400; transition: transform 240ms var(--ease-out); }
.button--plain::after { content: none; }
.button:active { transform: scale(0.97); }
.button--chalk { background: var(--chalk); color: var(--oxblood); }
.button--outline { background: transparent; color: inherit; border-color: currentColor; }
.button--outline::after { content: none; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--wine); }
  .button:hover::after { transform: translateX(4px); }
  .button--chalk:hover { background: var(--white); color: var(--oxblood); }
  .button--outline:hover { background: var(--chalk); color: var(--oxblood); border-color: var(--chalk); }
}
.link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 0.3em; text-decoration-color: var(--rose);
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--margin); color: var(--chalk); background: transparent;
  transition: transform 480ms var(--ease-out), background-color 320ms ease;
}
/* Solid once scrolled; slides up out of view on scroll down, back in on scroll up (site.js) */
.site-header.is-solid, .no-hero .site-header { background: var(--oxblood); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { flex: none; }
.brand img { width: clamp(104px, 8.4vw, 132px); height: auto; filter: invert(1); transform-origin: left center; transition: transform 480ms var(--ease-out); }
.site-header.is-solid .brand img, .no-hero .site-header .brand img { transform: scale(0.85); }
@media (prefers-reduced-motion: reduce) { .site-header, .brand img { transition: none; } }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2vw, 36px); }
.site-nav > ul { display: flex; align-items: center; gap: clamp(18px, 1.8vw, 32px); list-style: none; }
.site-nav a:not(.button), .sub-toggle {
  font: 500 var(--step-body)/1.2 var(--font-text); color: inherit; text-decoration: none;
  text-underline-offset: 0.35em; text-decoration-thickness: 2px;
}
.sub-toggle { background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sub-toggle svg { width: 10px; height: 10px; transition: transform 240ms var(--ease-out); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:not(.button):hover, .sub-toggle:hover { text-decoration: underline; text-decoration-color: var(--rose); }
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rose); }
.has-sub { position: relative; }
.sub {
  display: none; position: absolute; left: -24px; top: calc(100% + 14px); min-width: 320px;
  list-style: none; background: var(--oxblood); padding: 12px 0;
}
.has-sub.open .sub, .no-js .has-sub:hover .sub, .no-js .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 24px; }
.menu-toggle { display: none; position: relative; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; color: inherit; cursor: pointer; }
.menu-toggle span { position: absolute; left: 12px; width: 24px; height: 2px; background: currentColor; transition: transform 320ms var(--ease-out), opacity 200ms ease; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; align-items: end; color: var(--chalk); background: var(--oxblood); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__scrim { position: absolute; inset: 0; background: rgba(30, 16, 16, 0.45); }
.hero__panel { position: relative; grid-column: 1 / 8; padding-bottom: clamp(56px, 9vh, 104px); padding-top: 140px; }
.hero h1 { font-size: var(--step-display); line-height: 1.02; letter-spacing: -0.02em; }
.hero__lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.45; max-width: 38ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }
.hero__ctas .link { color: var(--chalk); }

/* Page hero (inner pages) */
.page-hero { min-height: clamp(460px, 68svh, 720px); }
.page-hero .hero__panel { grid-column: 1 / 9; }
.page-hero h1 { font-size: clamp(2.25rem, 0.9rem + 4.4vw, 4.75rem); }

/* Plain head (legal pages) */
.plain-head { padding-top: clamp(140px, 14vw, 200px); padding-bottom: clamp(40px, 5vw, 72px); }
.plain-head h1 { grid-column: 1 / 10; font-size: var(--step-display); }

/* ---------- Two-column intro ---------- */
.intro { padding-block: var(--section); row-gap: 56px; }
.intro h2 { grid-column: 1 / 7; }
.intro__text { grid-column: 7 / 12; padding-top: 10px; }
.intro__text .link { display: inline-block; margin-top: 28px; }
.intro__photo { grid-column: 1 / 6; }
.intro__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.intro__card { grid-column: 7 / 12; align-self: center; background: var(--surface); padding: clamp(24px, 3vw, 44px); }
.intro__card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-card); line-height: 1.25; }
.intro__card p { margin-top: 14px; }
.intro__card ul { margin-top: 20px; list-style: none; }
.intro__card li { padding-left: 22px; position: relative; }
.intro__card li + li { margin-top: 8px; }
.intro__card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--oxblood); border-radius: 50%; }
.linkedin { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-top: 24px; border: 1px solid var(--oxblood); border-radius: 50%; color: var(--ink); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.linkedin svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .linkedin:hover { background: var(--oxblood); color: var(--chalk); } }

/* ---------- Specialisms (photo columns) ---------- */
.who { padding-block: var(--section); row-gap: 56px; }
.who--tint { background: var(--surface); }
.who h2 { grid-column: 1 / 8; }
.who h2.wide { grid-column: 1 / 13; }
.who__intro { grid-column: 9 / 13; align-self: end; }
.who__col { grid-column: span 3; display: flex; flex-direction: column; }
.who--three .who__col { grid-column: span 4; }
.who__img { overflow: hidden; margin-bottom: 24px; }
.who__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.who__col h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-card); line-height: 1.2; }
.who__col p { margin-top: 12px; margin-bottom: 24px; }
.who__col .button { margin-top: auto; align-self: start; }
@media (prefers-reduced-motion: no-preference) {
  .who__img img { transition: transform 900ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { .who__col:hover .who__img img { transform: scale(1.03); } }
}

/* ---------- Process (oxblood) ---------- */
.process { background: var(--oxblood); color: var(--chalk); padding-block: var(--section); row-gap: 24px; }
.process h2 { grid-column: 1 / 7; }
.process__intro { grid-column: 7 / 12; align-self: end; }
.process__intro .lead + p { margin-top: 12px; color: var(--on-dark-muted); }
.process__spacer { grid-column: 1 / 13; height: 24px; }
.track { grid-column: span 4; background: rgba(250, 248, 244, 0.06); padding: clamp(24px, 2.6vw, 36px); }
.track h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-card); line-height: 1.2; margin-bottom: 20px; }
.track ol { list-style: none; }
.track ol > li { position: relative; padding: 0 0 18px 26px; }
.track ol > li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--rose); border-radius: 50%; }
.track ol > li:last-child { padding-bottom: 0; }
.track b { font-weight: 600; }
.track ul { list-style: none; margin-top: 4px; color: var(--on-dark-muted); }
.track .ready { font-weight: 600; color: var(--rose); letter-spacing: 0.02em; }
.finish { grid-column: span 6; background: var(--chalk); color: var(--ink); padding: clamp(24px, 2.6vw, 36px); }
.finish h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-card); line-height: 1.2; margin-bottom: 12px; }
.finish ul { list-style: none; color: var(--muted); }
.process__foot { grid-column: 1 / 13; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 24px; }
.process__foot p { color: var(--on-dark-muted); }

/* ---------- Q&A rows ---------- */
.qa { padding-block: var(--section); }
.qa--flush { padding-top: 0; }
.qa__head { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; align-items: end; margin-bottom: 64px; }
.qa__head h2 { grid-column: 1 / 7; }
.qa__head p { grid-column: 7 / 12; }
.qa__row { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; padding-block: 36px; }
.qa__row:nth-of-type(odd) { background: var(--surface); }
.qa__row h2, .qa__row h3 { grid-column: 1 / 6; padding-left: clamp(16px, 2vw, 32px); font-family: var(--font-display); font-weight: 600; font-size: var(--step-card); line-height: 1.25; letter-spacing: 0; }
.qa__row .answer { grid-column: 7 / 12; }
.answer ul { margin-top: 16px; list-style: none; }
.answer li { padding-left: 22px; position: relative; }
.answer li + li { margin-top: 8px; }
.answer li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--oxblood); border-radius: 50%; }

/* ---------- Google reviews (block from ~/Desktop/google-reviews-kit, themed here) ---------- */
.voices { background: var(--surface); color: var(--ink); padding-block: var(--section); align-items: start; }
.voices__h { grid-column: 1 / 5; }
.voices__gr { grid-column: 6 / 13; }
.gr { --gr-font: var(--font-display); --gr-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.9375rem); --gr-muted: var(--muted); --gr-accent: var(--oxblood); --gr-measure: 40ch; }
.gr__text { font-weight: 500; }
.gr__text p:first-child::before { content: "\201C"; display: block; font-size: 4rem; line-height: 0.8; color: var(--oxblood); margin-bottom: 8px; }
.gr__name { font-family: var(--font-text); color: var(--ink); }

/* ---------- FAQ (home) ---------- */
.faq { padding-block: var(--section); row-gap: 40px; }
.faq h2 { grid-column: 1 / 6; }
.faq__list { grid-column: 7 / 13; grid-row: span 2; }
.faq__list details { background: var(--surface); padding: 24px 28px; }
.faq__list details + details { margin-top: 8px; }
.faq__list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-card); line-height: 1.25; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--font-text); transition: transform 200ms ease; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p, .faq__list details ul { margin-top: 12px; }
.faq__list details ul { list-style: none; }
.faq__list details li { padding-left: 22px; position: relative; }
.faq__list details li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--oxblood); border-radius: 50%; }
.faq__aside { grid-column: 1 / 6; }

/* ---------- Documents panel ---------- */
.docs { padding-bottom: var(--section); }
.docs__panel { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; background: var(--oxblood); color: var(--chalk); padding-block: clamp(32px, 5vw, 72px); }
.docs__panel h2 { grid-column: 1 / 6; padding-left: clamp(16px, 2vw, 32px); font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); }
.docs__body { grid-column: 7 / 12; }
.docs__body > p { color: var(--on-dark-muted); }
.docs__body ul { margin-top: 20px; list-style: none; }
.docs__body li { padding-left: 22px; position: relative; }
.docs__body li + li { margin-top: 10px; }
.docs__body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--rose); border-radius: 50%; }

/* ---------- Closing: photo + panel with form ---------- */
.close { position: relative; color: var(--chalk); background: var(--oxblood); }
.close__media img { width: 100%; height: clamp(320px, 56svh, 620px); object-fit: cover; object-position: 50% 55%; }
.close__panel { position: relative; margin: -160px var(--margin) 0; background: var(--oxblood); padding: clamp(32px, 5vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.close__intro { grid-column: 1 / 7; padding-right: clamp(0px, 3vw, 48px); }
.close__intro .lead { margin-top: 28px; }
.close__intro .lead a { color: var(--chalk); text-decoration-color: var(--rose); text-underline-offset: 0.25em; }
.close__direct { margin-top: 40px; }
.close__direct h3 { font: 600 var(--step-body) var(--font-text); color: var(--rose); }
.close__direct ul { list-style: none; margin-top: 12px; }
.close__direct li + li { margin-top: 10px; }
.close__direct a { color: var(--chalk); text-decoration-color: var(--rose); text-underline-offset: 0.3em; }
.close__direct .close__spacer { height: clamp(64px, 8vw, 120px); }
.close--plain .close__panel { margin-top: 0; }

/* Enquiry form */
.enquiry { grid-column: 7 / 13; background: var(--chalk); color: var(--ink); padding: clamp(24px, 3vw, 44px); }
.enquiry h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-card); line-height: 1.2; margin-bottom: 24px; }
.enquiry-form .field { margin: 0 0 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.enquiry-form label { display: block; margin-bottom: 6px; font-size: var(--step-small); font-weight: 600; }
.enquiry-form label span { font-weight: 400; color: var(--muted); }
.enquiry-form input:not([type="checkbox"]), .enquiry-form select, .enquiry-form textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 var(--step-body)/1.4 var(--font-text); color: var(--ink);
  background: var(--white); border: 1px solid #C4BAB0; border-radius: 6px;
  transition: border-color 160ms ease;
}
.enquiry-form textarea { min-height: 136px; resize: vertical; }
.enquiry-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1A19' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: 2px solid var(--rose); outline-offset: 0; border-color: var(--oxblood); }
.enquiry-form [aria-invalid="true"] { border-color: #A3372B; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--oxblood); }
.enquiry-form .field--check label { margin: 0; font-weight: 400; font-size: var(--step-small); line-height: 1.5; }
.field--check a { color: var(--ink); text-decoration-color: var(--rose); text-underline-offset: 0.2em; }
.field-hint { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.err { color: #A3372B; font-size: var(--step-small); font-weight: 600; margin-top: 6px; }
.field--check .err { grid-column: 2; margin-top: 0; }
.err:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form .button { width: 100%; }
.enquiry-form .button[disabled] { opacity: 0.6; cursor: progress; }
.enquiry__status { margin-top: 20px; padding: 16px 18px; background: var(--surface); font-size: var(--step-small); }
.enquiry__status:empty { display: none; }
.enquiry__status.is-error { color: #A3372B; font-weight: 600; }
.enquiry-done h3 { margin-bottom: 12px; }

/* ---------- Legal prose ---------- */
.legal { padding-bottom: var(--section); }
.legal .prose { grid-column: 1 / 9; }
.legal .prose p { max-width: 70ch; }
.legal .prose ul { padding-left: 1.3em; margin: 1em 0; }
.legal .prose li + li { margin-top: 0.4em; }
.legal .prose strong { font-weight: 600; }
.legal .prose h2 { font-size: var(--step-card); margin: 2em 0 0.5em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: var(--step-small); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--surface); }
.legal th { background: var(--surface); font-weight: 600; white-space: nowrap; }
.legal code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; white-space: nowrap; }

/* Reviews page: every review at once (written into the HTML; google-reviews.js data-mode="list") */
.reviews-head { align-items: end; }
.reviews-head h1 { grid-column: 1 / 8; }
.reviews-head__badge { grid-column: 8 / 13; justify-self: end; display: flex; align-items: center; gap: 14px; margin: 0 0 0.9rem; }
.reviews-head__badge .gr__g { width: 30px; height: 30px; }
.reviews-head__badge .gr__stars { display: inline-flex; gap: 3px; }
.reviews-head__badge .gr__star svg { width: 26px; height: 26px; display: block; fill: #FBBC04; }
.reviews { padding: 0 var(--margin) var(--section); max-width: 1680px; margin-inline: auto; }
.reviews .gr { --gr-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.4375rem); --gr-measure: none; }
.reviews .gr__slides { columns: 3 340px; column-gap: var(--gap); }
.reviews .gr__slide { break-inside: avoid; margin: 0 0 var(--gap); background: var(--surface); padding: clamp(28px, 3vw, 48px); }
.reviews .gr__text p:first-child::before { font-size: 3.25rem; }
.reviews .gr__name { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rose); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine); color: var(--chalk); padding: 80px var(--margin) 32px; }
.site-footer > * { max-width: 1680px; margin-inline: auto; }
.footer__logo { margin-bottom: 40px; }
.footer__logo img { width: 160px; height: auto; filter: invert(1); }
.footer__warn { font-size: var(--step-body); line-height: 1.6; max-width: 100ch; margin-bottom: 40px; margin-left: 0; color: var(--on-dark-muted); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; }
.footer__cols h2 { font: 600 var(--step-body) var(--font-text); letter-spacing: 0; margin-bottom: 12px; }
.footer__cols ul { list-style: none; color: var(--on-dark-muted); }
.footer__cols li + li { margin-top: 8px; }
.footer__cols p { color: var(--on-dark-muted); }
.footer__cols a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { text-decoration: underline; text-decoration-color: var(--rose); } }
.footer__legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(250, 248, 244, 0.14); font-size: var(--step-body); line-height: 1.6; color: var(--on-dark-muted); display: grid; gap: 8px; }
.footer__legal p { max-width: 110ch; }
.footer__legal a { color: inherit; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media img { transform: scale(1.06); transition: transform 2400ms var(--ease-out); }
  .js .hero.is-in .hero__media img { transform: none; }
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .rise.is-in { opacity: 1; transform: none; }
  .js .hero .rise { transition-delay: calc(250ms + var(--i, 0) * 110ms); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .voices__h, .voices__gr { grid-column: 1 / 13; }
  .voices__gr { margin-top: 40px; }
  .menu-toggle { display: block; z-index: 31; }
  .site-nav > ul { position: fixed; inset: 0; z-index: 30; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 32px var(--margin); background: var(--oxblood); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 280ms ease, visibility 0s linear 280ms; }
  .site-nav.is-open > ul { opacity: 1; visibility: visible; transition: opacity 280ms ease, visibility 0s; }
  .site-nav > ul > li > a, .sub-toggle { font-family: var(--font-display) !important; font-size: clamp(2rem, 1.4rem + 2.2vw, 2.875rem) !important; font-weight: 600 !important; }
  .sub { position: static; display: block; background: none; padding: 6px 0 0; min-width: 0; }
  .sub a { padding: 6px 0; color: var(--on-dark-muted); }
  .sub-toggle { pointer-events: none; }
  .sub-toggle svg { display: none; }
  .hero__panel, .page-hero .hero__panel { grid-column: 1 / 11; }
  .intro h2, .intro__text { grid-column: 1 / 13; }
  .intro__photo { grid-column: 1 / 7; }
  .intro__card { grid-column: 7 / 13; }
  .who__col, .who--three .who__col { grid-column: span 6; }
  .who h2, .who__intro { grid-column: 1 / 13; }
  .process h2, .process__intro { grid-column: 1 / 13; }
  .faq h2, .faq__list, .faq__aside { grid-column: 1 / 13; grid-row: auto; }
  .close__intro, .enquiry { grid-column: 1 / 13; }
  .enquiry { margin-top: 24px; }
  .legal .prose { grid-column: 1 / 13; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .reviews-head h1, .reviews-head__badge { grid-column: 1 / 13; justify-self: start; }
  .reviews-head__badge { margin: 20px 0 0; }
  .site-nav > .button { display: none; }
  .hero__scrim { background: rgba(30, 16, 16, 0.58); }
  .hero__panel, .page-hero .hero__panel { grid-column: 1 / 13; }
  .hero__ctas { flex-direction: column; align-items: stretch; text-align: center; }
  .intro__photo, .intro__card { grid-column: 1 / 13; }
  .who__col, .who--three .who__col { grid-column: 1 / 13; }
  .finish, .track { grid-column: 1 / 13; }
  .qa__head h2, .qa__head p { grid-column: 1 / 13; }
  .qa__head p { margin-top: 20px; }
  .qa__row h2, .qa__row h3, .qa__row .answer { grid-column: 1 / 13; padding-inline: 16px; }
  .qa__row .answer { margin-top: 10px; }
  .docs__panel h2, .docs__body { grid-column: 1 / 13; padding-inline: 20px; }
  .docs__body { margin-top: 20px; }
  .close__panel { margin-top: -64px; margin-inline: 0; }
  .close--plain .close__panel { margin-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .enquiry { margin-inline: calc(clamp(32px, 5vw, 80px) * -1 + 16px); }
  .plain-head h1 { grid-column: 1 / 13; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp and accessibility options ---------- */
/* WhatsApp button (footer() in build.py): stays at the bottom right, in WhatsApp's own green.
   Hidden while the phone menu is open. */
.whatsapp { position: fixed; z-index: 25; right: var(--margin); bottom: var(--margin); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #FFFFFF; box-shadow: 0 10px 28px rgba(30, 16, 16, 0.3); transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.whatsapp:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .whatsapp:hover { background: #1EBE5A; } }
@media (max-width: 760px) { .whatsapp { width: 54px; height: 54px; } .whatsapp svg { width: 27px; height: 27px; } }
body:has(.site-nav.is-open) .whatsapp { display: none; }
@media print { .whatsapp, .a11y { display: none; } }

/* Accessibility options (assets/js/accessibility.js): a round button at the top right of the header,
   with the options in a panel underneath it */
.a11y { position: relative; }
.a11y__toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid rgba(250, 248, 244, 0.6); border-radius: 50%; color: var(--chalk); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.a11y__toggle:active { transform: scale(0.95); }
.a11y__toggle[aria-expanded="true"] { background: var(--chalk); color: var(--oxblood); border-color: var(--chalk); }
@media (hover: hover) and (pointer: fine) { .a11y__toggle:hover { border-color: var(--rose); } }
.a11y__panel { position: absolute; z-index: 32; top: calc(100% + 12px); right: 0; width: min(260px, calc(100vw - 2 * var(--margin))); padding: 18px; background: var(--chalk); color: var(--ink); border-radius: 6px; box-shadow: 0 18px 48px rgba(30, 16, 16, 0.3); transform-origin: top right; }
.a11y__panel:not([hidden]) { animation: a11y-in 160ms var(--ease-out); }
@keyframes a11y-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.a11y__title { display: block; margin-bottom: 12px; font-size: var(--step-small); font-weight: 600; }
.a11y__panel button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin-bottom: 6px; padding: 0 14px; background: var(--white); border: 1px solid #C4BAB0; border-radius: 6px; color: var(--ink); font: 400 0.9375rem/1.3 var(--font-text); text-align: left; cursor: pointer; }
.a11y__panel button[aria-pressed="true"] { background: var(--oxblood); border-color: var(--oxblood); color: var(--chalk); }
.a11y__panel button[aria-pressed="true"]::after { content: "On"; font-size: 0.8125rem; font-weight: 600; color: var(--rose); }
.a11y__panel .a11y__reset { justify-content: center; margin: 12px 0 0; background: transparent; border-style: dashed; }
@media (hover: hover) and (pointer: fine) { .a11y__panel button:hover { border-color: var(--oxblood); } }
@media (prefers-reduced-motion: reduce) { .a11y__panel:not([hidden]) { animation: none; } .a11y__toggle:active, .whatsapp:active { transform: none; } }
/* Tablet and phone: the button sits just left of the menu button */
@media (max-width: 1100px) { .a11y { order: -1; } }

/* Larger text */
html.a11y-large-text { font-size: 118%; }

/* High contrast: the colour tokens become black, white and a bright yellow,
   and photos behind text are darkened further */
html.a11y-high-contrast {
  --oxblood: #000000; --wine: #000000; --chalk: #FFFFFF; --white: #FFFFFF;
  --bg: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --muted: #000000; --on-dark-muted: #FFFFFF;
  --rose: #FFD400;
}
html.a11y-high-contrast .hero__scrim { background: rgba(0, 0, 0, 0.72); }
html.a11y-high-contrast .enquiry-form :is(input, select, textarea), html.a11y-high-contrast .a11y__panel button { border-color: #000000; }
html.a11y-high-contrast a:not(.button, .brand, .whatsapp, .linkedin) { text-decoration: underline; text-decoration-thickness: 2px; }
html.a11y-high-contrast *, html.a11y-high-contrast *::before, html.a11y-high-contrast *::after { box-shadow: none !important; }
html.a11y-high-contrast .a11y__panel { outline: 2px solid #000000; }

/* Highlight links */
html.a11y-highlight-links a:not(.button, .brand, .whatsapp, .linkedin) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; background-color: color-mix(in srgb, var(--rose) 28%, transparent); }

/* Reduce motion */
html.a11y-reduce-motion { scroll-behavior: auto; }
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }

/* ---------- Cookie banner (assets/js/consent.js) ---------- */
/* Bottom left; on a phone it covers the WhatsApp button until answered */
.consent { position: fixed; z-index: 40; left: var(--margin); bottom: var(--margin); width: min(440px, calc(100% - 2 * var(--margin))); padding: 24px 24px 20px; background: var(--oxblood); color: var(--chalk); border-radius: 6px; box-shadow: 0 12px 40px rgba(30, 16, 16, 0.28); }
.consent[hidden] { display: none; }
.consent h2 { font: 600 var(--step-body)/1.3 var(--font-text); letter-spacing: 0; }
.consent p { margin-top: 8px; font-size: var(--step-small); color: var(--on-dark-muted); }
.consent a { color: var(--chalk); text-decoration-color: var(--rose); text-underline-offset: 0.2em; }
.consent__actions { display: flex; gap: 8px; margin-top: 18px; }
.consent__actions .button { flex: 1; min-height: 46px; padding-inline: 16px; }
@media (max-width: 760px) { .consent__actions { flex-direction: column; } }
@media print { .consent { display: none; } }
/* "Cookie settings" in the footer looks like the links around it */
.footer__cols button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .footer__cols button:hover { text-decoration: underline; text-decoration-color: var(--rose); } }
