/* ============================================================
   Heath Kirby Tutoring — design system
   Brand (from build brief §03):
     gold #fcd21c · green #759E37 · amber #eab317 · ink #090909 · white
   Warm, credible, academic. Green = action, gold = highlight.
   ============================================================ */

:root {
  --gold: #fcd21c;
  --gold-soft: #fff7d6;
  --green: #759e37;
  --green-dark: #5f822c;
  --green-soft: #f1f6e8;
  --amber: #eab317;
  --ink: #090909;
  --ink-soft: #35342f;
  --body-c: #4a4942;
  --muted: #8b897f;
  --paper: #fdfcf8;
  --cream: #faf6e9;
  --line: #eae6d9;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(9, 9, 9, 0.09);
  --shadow-sm: 0 4px 14px rgba(9, 9, 9, 0.06);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* nothing may create sideways scroll — full-bleed 100vw elements overflow by the scrollbar width otherwise */
html, body { overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body-c);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
/* grid/flex items must be allowed to shrink below their content's
   intrinsic width, or full-res photos blow the layout out on mobile */
.hero-grid > *, .split > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
.steps > *, .price-cards > *, .footer-grid > *, .stats-grid > *,
.signal-row > *, .photo-strip > *, .form-grid > * { min-width: 0; }
a { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.16; margin: 0 0 14px; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.site-header .wrap { max-width: none; padding-inline: 30px; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--gold); border-radius: 2px; margin-right: 10px; vertical-align: middle; }

mark, .hl { background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%); color: inherit; padding: 0 2px; }

.lede { font-size: 19px; color: var(--ink-soft); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; text-decoration: none;
  padding: 15px 30px; border-radius: 40px; border: 2px solid transparent;
  cursor: pointer; transition: transform .14s ease, background .14s ease, border-color .14s, box-shadow .14s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(117, 158, 55, .35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #d8d4c6; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f5c800; transform: translateY(-2px); }
.btn.small { padding: 10px 20px; font-size: 14.5px; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
/* Adjacent buttons never touch — horizontal gap inline, vertical gap when stacked. */
.btn + .btn { margin-left: 12px; }
@media (max-width: 560px) { .btn + .btn { margin-left: 0; margin-top: 12px; } }
.mcta-actions .btn + .btn { margin: 0; } /* sticky bar manages its own grid gap */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(9,9,9,.05); }
.nav-bar { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 42px; border-radius: 8px; }
.brand > span, .f-brand > span { display: flex; flex-direction: column; gap: 3px; }
.brand br, .f-brand br { display: none; }
.brand .b-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }
.brand .b-tag { font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); line-height: 1.2; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li > a {
  display: block; padding: 9px 13px; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; border-radius: 9px; transition: background .14s, color .14s;
}
.nav-menu > li > a:hover { background: var(--cream); color: var(--ink); }
.nav-menu > li > a.current { color: var(--ink); position: relative; }
.nav-menu > li > a.current::before { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); }

.nav-item.has-sub { position: relative; }
.nav-item.has-sub > a::after { content: "▾"; font-size: 10px; margin-left: 6px; color: var(--muted); display: inline-block; transition: transform .18s ease; }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item.has-sub:hover .sub-menu, .nav-item.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 10px 13px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; border-radius: 9px; }
.sub-menu a:hover { background: var(--green-soft); color: var(--green-dark); }
.sub-menu .sub-note { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 10px 13px 4px; }

.nav-login-li { display: flex; align-items: center; margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.nav-login { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-login:hover { color: var(--ink); }
.nav-cta-li { margin-left: 12px; }
.nav-cta { white-space: nowrap; }
.nav-cta:hover { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(252,210,28,.4); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform .18s, opacity .18s; }

@media (max-width: 980px) {
  .nav-bar { gap: 14px; }
  .nav-menu > li > a { padding: 9px 9px; font-size: 14px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-login, .nav-login-li { display: none; }
  /* Full-page mobile menu; the header (logo + X) stays pinned on top.
     Sized with height:100dvh (not inset:0) because .site-header's backdrop-filter
     makes this fixed child's containing block the header, not the viewport. */
  .nav-menu {
    position: fixed; top: 0; left: 0; right: 0; height: 100dvh; z-index: 1; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(74px + 14px) 20px calc(28px + env(safe-area-inset-bottom, 0px));
    display: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding-top: 15px; padding-bottom: 15px; font-size: 17px; }
  .nav-menu .nav-cta-li { margin-top: auto; }        /* push the Enquire CTA toward the bottom */
  .brand, .nav-toggle { position: relative; z-index: 2; }  /* keep logo + X above the full-page menu */
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; display: none; }
  .nav-item.has-sub.sub-open .sub-menu { display: block; }
  .nav-item.has-sub.sub-open > a::after { transform: rotate(180deg); }
  .nav-menu .nav-cta-li { margin-top: auto; padding-top: 16px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Mobile nav backdrop (toggled by main.js) */
.nav-scrim { position: fixed; inset: 0; background: rgba(9,9,9,.35); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 55; }
.nav-scrim.show { opacity: 1; visibility: visible; }
@media (min-width: 901px) { .nav-scrim { display: none; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--cream), var(--white) 78%); padding: clamp(28px, 5vh, 56px) 0 clamp(18px, 3.5vh, 30px); overflow: hidden; }
/* hero + stats band together fill the first screen: 100svh minus header (74px) and band (~99px) */
@media (min-width: 981px) and (min-height: 620px) {
  .hero:has(+ .stats-band), .page-hero:has(+ .stats-band) { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 74px - 99px); }
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.hero-copy .btn { margin-bottom: 12px; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.hero-note strong { color: var(--green-dark); }

.hero-photo { position: relative; }
.hero-photo .ph-main {
  border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid #fff; width: 100%;
  aspect-ratio: 4 / 4.6; object-fit: cover; max-height: min(60vh, 560px);
}
.float-quote {
  position: absolute; left: -30px; bottom: 26px; max-width: 300px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow); padding: 16px 18px; border-left: 4px solid var(--gold);
}
.float-quote p { font-family: var(--font-head); font-size: 15.5px; color: var(--ink); margin: 0 0 6px; line-height: 1.4; }
.float-quote span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.float-quote .fq-star { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 22px; padding: 0; list-style: none; }
.trust-chips li {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  border-radius: 30px; padding: 7px 14px; display: flex; align-items: center; gap: 7px;
}
.trust-chips li::before { content: "✓"; color: var(--green); font-weight: 800; }

@media (max-width: 920px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .float-quote { left: 10px; bottom: -18px; }
  .hero-photo { margin-bottom: 26px; }
  .hero-photo .ph-main { max-height: none; }
}

/* Shorter laptop screens: compress the hero so nothing falls below the fold */
@media (min-width: 921px) and (max-height: 840px) {
  .hero { padding: 22px 0 18px; }
  .hero h1 { font-size: clamp(32px, 4.2vw, 44px); margin-bottom: 12px; }
  .hero .lede { font-size: 17.5px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .trust-chips { margin: 14px 0 18px; }
  .hero-photo .ph-main { max-height: 54vh; }
  .float-quote { bottom: 16px; padding: 13px 15px; max-width: 270px; }
}

/* Mobile hero — declutter: tighter, full-width CTAs, drop the redundant note */
@media (max-width: 560px) {
  .hero { padding-top: 22px; }
  .hero h1 { font-size: clamp(29px, 8.5vw, 38px); margin-bottom: 12px; line-height: 1.12; }
  .hero .lede { font-size: 15.5px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 1.2px; }
  .trust-chips { gap: 7px; margin: 14px 0 18px; }
  .trust-chips li { font-size: 12.5px; padding: 6px 11px; }
  .hero-copy .btn { width: 100%; margin-right: 0; }
  .hero-note { display: none; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: #fff; padding: 20px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; align-items: start; }
.stat .n { font-family: var(--font-head); font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--gold); line-height: 1; }
.stat .l { font-size: 13px; font-weight: 600; color: #cfcdc2; margin-top: 6px; line-height: 1.35; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section.pad { padding: 78px 0; }
section.pad-t { padding-top: 78px; }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { margin-right: 8px; }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-green-soft { background: var(--green-soft); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
/* comparison card pairs: equal heights, CTAs pinned to one baseline */
.grid-2.match { align-items: stretch; }
.grid-2.match > .card { display: flex; flex-direction: column; }
.grid-2.match > .card .btn { margin-top: auto; align-self: flex-start; }
.grid-2.match > .card .btn + *, .grid-2.match > .card p:last-child { margin-bottom: 0; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.card h3 a { color: inherit; text-decoration: none; }
.fit-grid { align-items: stretch; }
.fit-grid > .card { display: flex; flex-direction: column; }
.fit-grid > .card .more { margin-top: auto; padding-top: 16px; }
.fit-grid .check-list { margin: 10px 0 0; }
.fit-grid .check-list li { font-size: 14.5px; margin: 9px 0; padding-left: 28px; }
.ria-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ria-tags li {
  background: var(--green-soft); color: var(--green-dark); font-size: 13.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; line-height: 1.35;
}
@media (max-width: 660px) {
  .fit-grid > .card { padding: 24px 20px; }
  .fit-grid .check-list li { font-size: 14px; padding-left: 26px; }
  .ria-tags { gap: 7px; }
  .ria-tags li { font-size: 12.5px; padding: 5px 11px; }
}
.card .card-note { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.card .more { font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--green-dark); }
.card .more::after { content: " →"; }

/* ---------- Testimonials (NO people-cards — quotes as real artefacts) ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 24px;
  position: relative; box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "“"; display: block; font-family: var(--font-head);
  font-size: 44px; color: var(--gold); line-height: 1; height: 30px;
}
.quote blockquote { margin: 8px 0 16px; font-family: var(--font-head); font-size: 18.5px; line-height: 1.5; color: var(--ink); }
.quote .who { font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
/* equal-height review cards: same text size everywhere, long quotes clamp + Read more */
.grid-2:has(.quote), .grid-3:has(.quote) { align-items: stretch; }
.quote { display: flex; flex-direction: column; }
.quote blockquote.clamp { display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.read-more {
  align-self: flex-start; background: none; border: 0; padding: 0; margin: -8px 0 16px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; text-decoration: none;
}
.read-more:hover { color: var(--ink-soft); }
.quote .who .src { color: var(--body-c); }
.outcome {
  display: inline-block; background: var(--gold-soft); border: 1px solid #f0dfa0; color: #7a6206;
  font-size: 12.5px; font-weight: 700; border-radius: 20px; padding: 3px 11px;
}
.quote.featured { border-left: 5px solid var(--gold); }

/* ---------- Photo treatment ---------- */
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.photo-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(9,9,9,.82));
  color: #fff; font-size: 13px; font-weight: 600; padding: 26px 14px 12px;
}
.photo-strip { columns: 4 200px; column-gap: 14px; }
.photo-strip .photo-card { break-inside: avoid; margin: 0 0 14px; }
.photo-strip .photo-card img { aspect-ratio: auto; height: auto; object-fit: initial; }
/* Staggered scrapbook mosaic (reviews "not stock photos") */
.photo-mosaic { columns: 2; column-gap: 16px; }
.photo-mosaic .photo-card { break-inside: avoid; width: 100%; margin: 0 0 16px; border: 5px solid #fff; box-shadow: var(--shadow); }
.photo-mosaic .photo-card img { aspect-ratio: auto; height: auto; }
.photo-mosaic .photo-card:nth-child(3n+1) { transform: rotate(-.8deg); }
.photo-mosaic .photo-card:nth-child(3n+2) { transform: rotate(.8deg); }
.photo-mosaic .photo-card:nth-child(3n)   { transform: rotate(.3deg); }
.photo-mosaic .photo-card:first-child { margin-top: 22px; }
@media (max-width: 560px) { .photo-mosaic { columns: 1; } .photo-mosaic .photo-card:first-child { margin-top: 0; } }
@media (max-width: 860px) { .photo-strip { columns: 2 140px; } }

/* ---------- Photo galleries (reviews + homepage) — masonry, ORIGINAL aspect ratios ---------- */
.rg-item { position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0 0 14px; background: none; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); break-inside: avoid; }
.rg-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.rg-item:hover img, .rg-item:focus-visible img { transform: scale(1.04); }
.rg-item:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.rg-item .rg-cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(9,9,9,.82)); color: #fff; font-size: 12px; font-weight: 600; text-align: left; padding: 26px 12px 11px; }
/* Masonry columns — photos keep their real shape, never cropped */
.review-gallery, .collage-gallery { columns: 4 220px; column-gap: 14px; }
@media (max-width: 900px) { .review-gallery, .collage-gallery { columns: 3 180px; } }
@media (max-width: 560px) { .review-gallery, .collage-gallery { columns: 2 150px; column-gap: 10px; } }
.rg-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9,9,9,.92); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.rg-lightbox.show { opacity: 1; visibility: visible; }
.rg-lightbox img { max-width: min(96vw, 1100px); max-height: 84vh; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rg-lightbox .rg-cap-lb { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 600; padding: 0 20px; }
.rg-lightbox .rg-close { position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.rg-lightbox .rg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.rg-lightbox .rg-close:hover, .rg-lightbox .rg-nav:hover { background: rgba(255,255,255,.3); }
.rg-lightbox .rg-prev { left: 16px; } .rg-lightbox .rg-next { right: 16px; }
@media (max-width: 560px) { .rg-lightbox .rg-nav { width: 44px; height: 44px; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: #fff; border: 1px solid #ddd6c1; border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: 40px; color: var(--gold); display: block; margin-bottom: 8px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.split.rev > .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid #fff; width: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.rev > .split-media { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 18px 0; }
.check-list li { padding-left: 32px; position: relative; margin: 11px 0; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 7px;
  background: var(--green-soft); color: var(--green-dark); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.price-card.hot { border: 2px solid var(--green); box-shadow: var(--shadow); }
.price-card .flag-top {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; border-radius: 20px; padding: 4px 14px; white-space: nowrap;
}
.price-card .amount { font-family: var(--font-head); font-size: 46px; font-weight: 700; color: var(--ink); line-height: 1; margin: 12px 0 2px; }
.price-card .amount small { font-size: 17px; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.price-card .from { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; color: var(--muted); }
.price-card .btn { margin-top: auto; }
@media (max-width: 920px) { .price-cards { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-shell { padding: 26px 20px; } }

label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
label .opt { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(117,158,55,.14); background: #fff; }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-error {
  background: #fdefee; border: 1px solid #f0c4c0; color: #9c3a32; font-size: 14.5px;
  border-radius: var(--radius-sm); padding: 13px 16px; margin: 0 0 16px;
}
.form-success { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 40px 36px; }
.form-success h3 { margin-bottom: 10px; }
.form-success .next { margin: 18px 0 0; padding: 0; list-style: none; }
.form-success .next li { padding-left: 30px; position: relative; margin: 9px 0; }
.form-success .next li::before { content: "→"; position: absolute; left: 2px; color: var(--green-dark); font-weight: 800; }

.upload-box {
  border: 2px dashed #d5d0bd; border-radius: var(--radius-sm); background: var(--paper);
  padding: 26px; text-align: center; color: var(--muted); font-size: 14.5px; cursor: pointer; transition: border-color .15s, background .15s;
}
.upload-box:hover { border-color: var(--green); background: var(--green-soft); }
.upload-box input { display: none; }
.upload-box strong { color: var(--green-dark); }
@media (hover: none) { .upload-box .drag-hint { display: none; } }

/* ---------- Booking slot picker ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 8px; }
.slot { padding: 12px 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-family: var(--font-body); font-weight: 700; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; text-align: center; transition: border-color .15s, background .15s, color .15s; }
.slot:hover { border-color: var(--green); color: var(--green-dark); }
.slot.selected { background: var(--green); border-color: var(--green); color: #fff; }
.slot[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot-empty { color: var(--muted); font-size: 14px; padding: 10px 2px; }

/* ---------- Booking picker: custom calendar + time slots ---------- */
.bk-picker { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 6px; }
.bk-picker .cal { max-width: 420px; }
.bk-picker .slot-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.cal { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: 14px 14px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.cal-nav { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; color: var(--ink-soft); cursor: pointer; transition: border-color .12s, color .12s; }
.cal-nav:hover:not([disabled]) { border-color: var(--green); color: var(--green-dark); }
.cal-nav[disabled] { opacity: .3; cursor: not-allowed; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-dow span { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { aspect-ratio: 1 / 1; border: 0; background: none; border-radius: 8px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s; }
.cal-day:hover:not([disabled]):not(.sel) { background: var(--green-soft); color: var(--green-dark); }
.cal-day.other { pointer-events: none; }
.cal-day[disabled] { color: #cfcabb; cursor: not-allowed; }
.cal-day.today { box-shadow: inset 0 0 0 1.6px var(--gold); }
.cal-day.sel { background: var(--green); color: #fff; }
.cal-note { font-size: 12px; color: var(--muted); margin: 11px 0 0; text-align: center; }

/* ===================================================================
   OPTIMISATION PASS — appended block (a11y + CRO shared components)
   =================================================================== */

/* ---------- 1. Contrast: darken --muted token (WCAG 1.4.3 AA) ---------- */
:root { --muted: #6f6d64; }

/* ---------- 2. Contrast: primary CTA fill (WCAG AA) — deeper, more authoritative green ---------- */
.btn-primary { background: var(--green-dark); box-shadow: 0 6px 18px rgba(95,130,44,.32); }
.btn-primary:hover { background: #52731f; }

/* ---------- 3. Skip-to-content link (WCAG 2.4.1 A) — injected by main.js ---------- */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 999;
  background: var(--ink); color: #fff; font-family: var(--font-body);
  font-size: 15px; font-weight: 700; padding: 11px 18px; border-radius: 0 0 10px 10px;
  text-decoration: none; transition: top .16s ease;
}
.skip-link:focus { top: 0; }
[id="main"]:focus { outline: none; }

/* ---------- 4. Global keyboard focus ring (WCAG 2.4.7 AA) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, label.upload-box:focus-within,
.slot:focus-visible, .cal-day:focus-visible, .cal-nav:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--green-dark); outline-offset: 2px; border-radius: 6px;
}
.site-header .nav-toggle:focus-visible, .stats-band a:focus-visible, .cta-band a:focus-visible,
.site-footer a:focus-visible, .rg-lightbox button:focus-visible { outline-color: var(--gold); }

/* ---------- 5. Sticky mobile CTA bar (injected by main.js on ≤900px browse pages) ---------- */
.mobile-cta-bar { display: none; }
@media (max-width: 900px) {
  .mobile-cta-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 26px rgba(9,9,9,.10);
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px)); transition: transform .25s ease;
  }
  .mcta-trust { margin: 0 0 7px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.2; }
  .mcta-trust strong { color: var(--green-dark); }
  .mcta-stars { color: var(--gold); letter-spacing: 1px; }
  .mcta-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .mcta-btn { width: 100%; padding: 13px 10px; font-size: 15px; border-radius: 30px; box-shadow: none; white-space: nowrap; }
  body.nav-open .mobile-cta-bar { display: none; }
  /* Drop the header's backdrop-filter while the menu is open so the fixed full-page
     menu positions against the viewport (not the header) and covers the whole screen. */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.has-mcta .site-footer { padding-bottom: 84px; }
}
@media (max-width: 360px) { .mcta-btn { font-size: 14px; padding: 12px 6px; } }

/* ---------- 6. Trust microcopy under CTAs (.cta-trust) ---------- */
.cta-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 14px 0 0; }
.cta-trust .stars { color: var(--gold); letter-spacing: 1.5px; }
.cta-trust strong { color: var(--green-dark); }
.cta-band .cta-trust { color: #cfcdc2; justify-content: flex-start; margin-top: 18px; }
.cta-band .cta-trust strong { color: var(--gold); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.file-list li { padding: 7px 12px; background: var(--cream); border-radius: 8px; margin: 6px 0; color: var(--ink-soft); }
.upload-progress { margin: 14px 0 0; }
.upload-progress .track { height: 9px; background: var(--cream); border-radius: 6px; overflow: hidden; }
.upload-progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 6px; transition: width .3s ease; }
.upload-progress .txt { font-size: 13px; color: var(--muted); margin-top: 7px; }

.assure { display: block; font-size: 14px; color: var(--muted); margin-top: 16px; }
.assure::before { content: "🔒"; font-size: 15px; margin-right: 8px; }

/* ---------- Callout band ---------- */
.cta-band { background: var(--ink); border-radius: 22px; color: #fff; padding: 56px 54px; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(252,210,28,.35), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfcdc2; max-width: 520px; }
.cta-band .btn-primary { box-shadow: none; }
@media (max-width: 700px) { .cta-band { padding: 38px 26px; } }
@media (max-width: 560px) { .cta-band .btn { width: 100%; } }

/* ---------- The Offer (value stack) ---------- */
.offer-band { background: linear-gradient(180deg, var(--cream), #fff); }
.offer-stack { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; max-width: 960px; margin: 8px auto 0; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { position: relative; padding: 13px 0 13px 40px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--body); }
.offer-list li:last-child { border-bottom: 0; }
.offer-list li::before { content: "✓"; position: absolute; left: 4px; top: 12px; width: 24px; height: 24px; color: #fff; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.offer-list li strong { color: var(--ink); }
.offer-guarantee { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; position: sticky; top: 92px; }
.offer-guarantee .og-title { font-family: var(--font-head); font-weight: 700; color: var(--green-dark); font-size: 18px; margin: 0 0 10px; }
.offer-guarantee p { font-size: 14.5px; color: var(--body); margin: 0 0 16px; }
.offer-guarantee .btn { width: 100%; margin: 0 0 10px; }
.offer-guarantee .btn + .btn { margin: 0; }
@media (max-width: 820px) { .offer-stack { grid-template-columns: 1fr; gap: 22px; } .offer-guarantee { position: static; } }

/* ---------- Trustpilot badge ---------- */
.tp-badge { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 26px; }
.tp-badge .tp-star { color: #00b67a; font-size: 22px; letter-spacing: 2px; line-height: 1; }
.tp-badge .tp-txt { display: flex; flex-direction: column; }
.tp-badge .tp-txt strong { color: var(--ink); font-size: 16px; }
.tp-badge .tp-txt span { color: var(--muted); font-size: 13.5px; }
.tp-badge .btn { margin: 0; }
@media (max-width: 560px) { .tp-badge { text-align: center; } .tp-badge .btn { width: 100%; } }

/* ---------- Mid-page CTA (reviews etc.) ---------- */
.mid-cta { max-width: 720px; margin: 0 auto; text-align: center; background: var(--green-soft); border: 1px solid #cfe3ad; border-radius: var(--radius); padding: 28px 26px; }
.mid-cta p { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 16px; }
.mid-cta p strong { color: var(--green-dark); }
.mid-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mid-cta-btns .btn + .btn { margin: 0; }
@media (max-width: 560px) { .mid-cta-btns { flex-direction: column; } .mid-cta-btns .btn { width: 100%; } }

/* ---------- Placeholder flag (content Heath still owes) ---------- */
.flag-placeholder {
  display: inline-flex; align-items: center; gap: 8px; background: #fff8ec; border: 1px dashed var(--amber);
  color: #8a6a0a; font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 5px 12px; letter-spacing: .4px;
}
.flag-placeholder::before { content: "◈"; }
.video-slot {
  aspect-ratio: 16/9; border-radius: var(--radius); border: 2px dashed #d5d0bd; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted);
}
.video-slot .play { width: 74px; height: 74px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--ink); }

/* ---------- External review signals ---------- */
.signal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.signal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.signal .score { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--ink); }
.signal .stars { color: var(--amber); font-size: 17px; letter-spacing: 3px; margin: 4px 0 6px; }
.signal .src { font-size: 13.5px; font-weight: 600; color: var(--muted); }
@media (max-width: 860px) { .signal-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 12px; }
details.faq summary { font-weight: 700; color: var(--ink); font-size: 16.5px; padding: 15px 0; cursor: pointer; list-style: none; position: relative; padding-right: 34px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--green-dark); transition: transform .18s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding-bottom: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--cream), var(--white)); padding: clamp(34px, 5.5vh, 56px) 0 clamp(28px, 4.5vh, 42px); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-bottom: 0; }
/* hero media may never push the hero past one screen */
.page-hero .photo-card img { max-height: min(56vh, 540px); }
.breadcrumb { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b7ab; margin-top: 0; }
.footer-cta-lift { transform: translateY(-46px); margin-bottom: -20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; padding: 44px 0 36px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #b9b7ab; text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: var(--gold); }
/* .site-footer a's muted gray must not wash out button labels */
.site-footer a.btn-gold { color: var(--ink); }
.site-footer a.btn-gold:hover { color: var(--ink); }
.f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-brand img { width: 46px; border-radius: 9px; }
.f-brand .b-name { font-family: var(--font-head); color: #fff; font-size: 19px; font-weight: 700; }
.f-brand .b-tag { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: #8d8b80; }
.f-note { font-size: 13.5px; max-width: 300px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid #33322c; display: flex; align-items: center;
  justify-content: center; font-size: 15px; transition: border-color .15s, color .15s;
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials a svg, .tp-badge .tp-star svg { display: block; }
.footer-bottom { position: relative; padding: 18px 22px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; }
/* full-bleed divider: the border must run edge to edge of the screen, not stop at the wrap */
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 1px; background: #26251f; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer li a { display: inline-block; padding: 7px 0; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.small-note { font-size: 13.5px; color: var(--muted); }
.divider-gold { width: 64px; height: 4px; border-radius: 3px; background: var(--gold); margin: 6px 0 22px; }
