/* ==========================================================================
   Riverside Homecare — Site styles
   --------------------------------------------------------------------------
   Load order: tokens.css → site.css
   Sections:
     1. Reset & base
     2. Typography
     3. Layout (containers, sections, inset panels, split heads)
     4. Buttons, links, chips
     5. Header (solid white bar), mobile menu, floating call bar
     6. Photo slots
     7. Tiles & bento grids
     8. Forms
     9. Homepage sections
    10. Inner pages (page hero, sub-nav, service cards, payer table)
    11. Footer
    12. Motion (scroll reveals, page transitions)
    13. Review mode (?review)
   ========================================================================== */


/* 1. RESET & BASE ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 2rem);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* The hidden attribute always wins, even over classes that set display */
[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.list-reset, :where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--color-river-600);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* 2. TYPOGRAPHY =========================================================== */

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  color: var(--color-river-700);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); font-weight: 600; line-height: 1.12; }
h4 { font-size: var(--text-lg); font-weight: 600; line-height: 1.2; }

/* The italic accent: 2–4 words inside a headline, never body text.
   Like the reference site, it also changes color (see each section). */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.lede { font-size: var(--text-lg); line-height: 1.5; max-width: 36em; }
.muted { color: var(--color-ink-muted); }
.fine-print { font-size: var(--text-sm); color: var(--color-ink-muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* 3. LAYOUT =============================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * 0.55); }
.section--flush-top { padding-top: 0; }
.section--panel { padding-block: clamp(3rem, 1.5rem + 5vw, 6.5rem); }

/* Color bands: full-width sections in a solid brand color.
   Used for the dark blue, green and sand bands. */
.inset {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.inset--dark  { background: var(--color-river-800); color: var(--color-river-200); }
.inset--river { background: var(--color-river-700); color: var(--color-river-100); }
.inset--grass { background: var(--color-grass-100); }
.inset--sand  { background: var(--color-sand); }

.inset--dark :is(h2, h3, h4), .inset--river :is(h2, h3, h4) { color: var(--color-white); }
.inset--dark h2 .accent, .inset--river h2 .accent { color: var(--color-grass-300); }  /* 5.1:1 on river-800, 4.3:1 on river-700: large text only */
.inset--dark :focus-visible, .inset--river :focus-visible { outline-color: var(--color-grass-300); }

/* Split heading: big title on the left, short paragraph on the right */
.split-head {
  display: grid;
  gap: var(--space-5) var(--space-8);
  align-items: end;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
@media (min-width: 60em) { .split-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.split-head h2 { margin-bottom: 0; }
.split-head__aside { color: var(--color-ink-muted); font-size: var(--text-lg); line-height: 1.5; }
.split-head__aside p { margin-bottom: var(--space-3); }
.inset--dark .split-head__aside, .inset--river .split-head__aside { color: var(--color-river-200); }


/* 4. BUTTONS, LINKS, CHIPS =============================================== */

a {
  color: var(--color-river-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--color-river-600); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: 0.5rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.35s var(--ease-spring), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { flex: none; width: 1.25em; height: 1.25em; }

/* Trailing icon in a circle — the 2020s "button with a knob" */
.btn__knob {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-right: -1.1rem;
  border-radius: 50%;
  transition: transform 0.35s var(--ease-spring);
}
.btn__knob svg { width: 1.1rem; height: 1.1rem; }
.btn:hover .btn__knob { transform: rotate(-45deg); }

.btn--primary { background: var(--color-river-700); color: var(--color-white); box-shadow: 0 10px 24px -12px rgb(19 76 101 / 0.6); }
.btn--primary:hover { background: var(--color-river-800); color: var(--color-white); }
.btn--primary .btn__knob { background: var(--color-grass-300); color: var(--color-river-900); }

.btn--accent { background: var(--color-grass-300); color: var(--color-river-900); }
.btn--accent:hover { background: var(--color-grass-200); color: var(--color-river-900); }
.btn--accent .btn__knob { background: var(--color-river-900); color: var(--color-white); }

.btn--ghost { background: var(--color-white); border-color: var(--color-line); color: var(--color-river-700); }
.btn--ghost:hover { border-color: var(--color-river-700); color: var(--color-river-800); }
.btn--ghost .btn__knob { background: var(--color-grass-100); color: var(--color-river-700); }

.btn--light { background: var(--color-white); color: var(--color-river-800); }
.btn--light:hover { background: var(--color-grass-50); color: var(--color-river-900); }

.btn--glass { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.28); color: var(--color-white); }
.btn--glass:hover { background: rgb(255 255 255 / 0.16); color: var(--color-white); }

.btn--lg { min-height: 4rem; padding-inline: 1.9rem; font-size: var(--text-lg); }
.btn--block { width: 100%; white-space: normal; }
.btn__number { font-variant-numeric: tabular-nums; }

/* Text link with an arrow that slides */
.link-arrow {
  display: inline-block;
  padding-block: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.45rem) / 100% 2px no-repeat;
}
.link-arrow::after { content: "→"; display: inline-block; margin-left: 0.4em; transition: transform 0.3s var(--ease-spring); }
.link-arrow:hover::after { transform: translateX(4px); }
.inset--dark .link-arrow, .inset--river .link-arrow { color: var(--color-white); }

/* Eyebrows: the small serif line above each section title.
   (Class name kept from the earlier pill design, so every page picks it up.) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  color: var(--color-grass-ink);   /* 6.57:1 on white */
  line-height: 1.3;
}
.chip .chip__dot { display: none; }
.chip__dot {
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--color-grass-300);
  box-shadow: 0 0 0 3px var(--color-grass-100);
  flex: none;
}
.chip--on-dark { color: var(--color-grass-300); }   /* 5.1:1 on river-800 */
.inset--river .chip--on-dark { color: var(--color-grass-200); }   /* on the lighter river-700 band: 6.6:1 */
.chip--on-grass { color: var(--color-grass-ink); }

/* Link chips (service index, sub-nav) */
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-river-700);
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease-spring);
}
.chip-link:hover { background: var(--color-grass-50); border-color: var(--color-grass-300); transform: translateY(-2px); }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--color-river-900);
  color: var(--color-white);
  font-weight: 700;
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--space-4); color: var(--color-white); }


/* 5. HEADER, MOBILE MENU, CALL BAR ======================================= */

/* Preview note, shown on every address until launch (main.js, PREVIEW) */
.preview-bar { padding: 0.5rem var(--gutter); background: var(--color-river-900); color: var(--color-white); font-size: var(--text-sm); font-weight: 700; text-align: center; }

/* Thin top bar (desktop only): hours + quick links */
.toplinks { background: var(--color-river-900); color: var(--color-river-100); font-size: var(--text-sm); }
.toplinks__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 2.75rem; }
.toplinks p { margin: 0; }
.toplinks ul { display: flex; gap: var(--space-1); }
.toplinks a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.7rem; font-weight: 700; color: var(--color-white); text-decoration: none; }
.toplinks a:hover, .toplinks a[aria-current="page"] { color: var(--color-grass-300); }
.toplinks :focus-visible { outline-color: var(--color-grass-300); }
@media (max-width: 60em) { .toplinks { display: none; } }

/* Solid white header that stays at the top of the screen */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 28px -14px rgb(11 50 66 / 0.3); }
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: calc(var(--container) + 2 * var(--gutter));
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--tap-min);
  margin-right: auto;
  text-decoration: none;
  color: var(--color-river-700);
  white-space: nowrap;
}
.logo:hover { color: var(--color-river-700); }
/* Logo: the Riverside Homecare mark + serif wordmark, as on her business card */
.logo__mark { width: 3.25rem; height: 3.25rem; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-wordmark);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-wordmark);
}
.logo__tag {
  margin-top: 0.2rem;
  padding-left: 0.12em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--color-logo-grey);
}

/* Main navigation: serif links, like the reference site */
.main-nav ul { display: flex; align-items: center; gap: 0.1rem; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding-inline: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-ink);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--color-river-600); text-decoration: underline; text-decoration-thickness: 1px; }
.main-nav a[aria-current="page"] { color: var(--color-grass-ink); text-decoration: underline; text-decoration-color: var(--color-grass-300); text-decoration-thickness: 2px; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap-min);
  padding-inline: 0.75rem;
  font-weight: 800;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-river-700);
}
.header-phone svg { width: 1.15rem; height: 1.15rem; }
.header-phone:hover { color: var(--color-river-600); text-decoration: underline; }
.header-actions .btn { min-height: 3.25rem; padding-inline: 1.35rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3.25rem;
  min-width: 3.25rem;
  padding-inline: 1rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-river-700);
  font-weight: 700;
}
.nav-toggle svg { width: 1.35rem; height: 1.35rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-call-mobile { display: none; }

/* The phone number makes room for the menu on mid-size laptops */
@media (max-width: 85em) { .header-phone { display: none; } }
@media (max-width: 75em) {
  .js .main-nav { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .header-phone { display: inline-flex; }
}
@media (max-width: 75em) {
  html:not(.js) .site-header__bar { flex-wrap: wrap; padding-block: var(--space-2); }
  html:not(.js) .main-nav { order: 3; width: 100%; }
  html:not(.js) .main-nav ul { flex-wrap: wrap; }
}
@media (max-width: 48em) {
  .header-actions .btn--consult { display: none; }
}
@media (max-width: 40em) {
  :root { --header-h: 4.75rem; }
  .site-header__bar { gap: var(--space-2); }
  .logo__mark { width: 2.6rem; height: 2.6rem; }
  .logo__name { font-size: 1.5rem; }
  .logo__tag { font-size: 0.6875rem; letter-spacing: 0.3em; }
  .header-phone { display: none; }
  .header-call-mobile { display: inline-flex; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding-inline: 0; }
}

/* Mobile menu: a full-height sheet under the floating header */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow-y: auto;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(var(--space-9) + env(safe-area-inset-bottom));
  background: var(--color-paper);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { max-width: 40rem; margin-inline: auto; }
.mobile-menu nav + nav { margin-top: var(--space-6); }
.mobile-menu h2 {
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-grass-ink);
}
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mobile-menu a:not(.btn)::after { content: "→"; font-family: var(--font-body); font-size: 1.25rem; color: var(--color-river-600); }
.mobile-menu__actions { display: grid; gap: var(--space-3); margin-top: var(--space-7); }
.mobile-menu__hours { margin-top: var(--space-4); text-align: center; }
body.menu-open { overflow: hidden; }

/* Floating call bar — phones and tablets */
.call-bar {
  display: none;
  position: fixed;
  left: var(--inset); right: var(--inset);
  bottom: calc(var(--inset) + env(safe-area-inset-bottom));
  z-index: 48;
  gap: 0.375rem;
  padding: 0.375rem;
  border-radius: var(--radius-pill);
  background: rgb(11 50 66 / 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 40px -12px rgb(11 50 66 / 0.55);
}
.call-bar .btn { min-height: 3.5rem; padding-inline: 0.9rem; gap: 0.5rem; white-space: nowrap; }
@media (max-width: 23.4em) { .call-bar .btn { font-size: 1.0625rem; padding-inline: 0.7rem; gap: 0.4rem; } }
/* Smallest phones (320–340px): icon-only header call button, single-column footer */
@media (max-width: 21.25em) {
  .header-call-mobile { padding-inline: 0.9rem; }
  .header-call-mobile__label { display: none; }
  .footer-main { grid-template-columns: 1fr; }
}
.footer-contact a, .footer-links a { overflow-wrap: anywhere; }
@media (max-width: 40em) { .steps-cta .btn { width: 100%; white-space: normal; } }
@media (max-width: 21.25em) { .call-bar .btn--glass { white-space: normal; line-height: 1.1; min-width: 0; } }
.call-bar .btn--accent { flex: 1.7; }
.call-bar .btn--glass { flex: 1; border-color: transparent; }
.call-bar :focus-visible { outline-color: var(--color-grass-300); }
@media (max-width: 60em) {
  .call-bar { display: flex; }
  body { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}


/* 6. PHOTO SLOTS ==========================================================
   Placeholders for REAL photos of named local staff — never stock.
   To add a photo: replace <div class="photo-slot__note">…</div> with <img>.
   The gradient + grain disappear behind the photo; the name tag stays. */

.photo-slot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: var(--ratio, 4 / 5);
  background:
    radial-gradient(60% 70% at 15% 15%, var(--color-grass-200), transparent 65%),
    radial-gradient(55% 65% at 90% 25%, var(--color-river-100), transparent 65%),
    radial-gradient(70% 60% at 55% 100%, var(--color-grass-100), transparent 70%),
    var(--color-sand);
  isolation: isolate;
}
.photo-slot::before {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
/* Real photo sits on top of the placeholder note. If the file is missing,
   main.js adds .is-missing and the note shows instead. */
.photo-slot > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.is-missing > img { display: none; }
.photo-slot__note {
  position: absolute;
  top: var(--space-4); left: var(--space-4); right: var(--space-4);
  max-width: 26rem;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-ink);
}
.photo-slot__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-weight: 700;
  color: var(--color-river-700);
}
.photo-slot__label svg { width: 1.1rem; height: 1.1rem; }

/* Name tag that sits on the photo (keeps working once the real photo is in) */
.photo-tag {
  position: absolute;
  z-index: 2;
  left: var(--space-4); bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: calc(100% - 2rem);
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  font-size: var(--text-sm);
  line-height: 1.3;
  color: var(--color-ink-muted);
}
.photo-tag strong { display: block; color: var(--color-river-700); }
.photo-tag .chip__dot { width: 0.75rem; height: 0.75rem; margin-left: 0.35rem; }

.avatar {
  flex: none;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, var(--color-grass-200), var(--color-grass-100) 70%);
  display: grid; place-items: center;
  color: var(--color-river-700);
}
.avatar svg { width: 1.4rem; height: 1.4rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }


/* 7. TILES & BENTO ======================================================= */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-ink);
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
}
.tile--sand  { background: var(--color-sand); }
.tile--grass { background: var(--color-grass-100); }
.tile--lime  { background: var(--color-grass-300); color: var(--color-river-900); }
.tile--mist  { background: var(--color-river-50); }
.tile--dark  { background: var(--color-river-900); color: var(--color-river-200); }
.tile--river { background: var(--color-river-700); color: var(--color-river-100); }
.tile--line  { background: transparent; border: 1px solid var(--color-line); }
.tile--dark :is(h2, h3, h4), .tile--river :is(h2, h3, h4) { color: var(--color-white); }
.tile--lime :is(h2, h3, h4) { color: var(--color-river-900); }
.tile--dark::before, .tile--river::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(28rem 20rem at 100% 0%, rgb(165 208 122 / 0.2), transparent 70%);
}
.tile--dark :focus-visible, .tile--river :focus-visible { outline-color: var(--color-grass-300); }

/* Whole tile is a link */
a.tile { text-decoration: none; transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease); }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
a.tile:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }

.tile__arrow {
  position: absolute;
  top: clamp(1.25rem, 0.8rem + 1.2vw, 1.75rem);
  right: clamp(1.25rem, 0.8rem + 1.2vw, 1.75rem);
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--color-river-700);
  color: var(--color-white);
  transition: transform 0.4s var(--ease-spring), background-color 0.2s;
}
.tile__arrow svg { width: 1.2rem; height: 1.2rem; }
a.tile:hover .tile__arrow { transform: rotate(-45deg); }
.tile--dark .tile__arrow, .tile--river .tile__arrow { background: var(--color-grass-300); color: var(--color-river-900); }
.tile--lime .tile__arrow { background: var(--color-river-900); color: var(--color-white); }

figure.tile { margin: 0; }
.tile > .chip { align-self: flex-start; }
.tile__foot { margin-top: auto; }
.tile h3 { margin-bottom: var(--space-2); }
@container (max-width: 24rem) {
  .tile h3 { font-size: 1.625rem; }
}
.tile p { margin: 0; }
.tile--dark p, .tile--river p { color: var(--color-river-200); }
.tile--lime p { color: var(--color-river-900); }

.tile__who { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-4); padding-right: 3.5rem; }
.tile__who span {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.65);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-river-700);
}
.tile--dark .tile__who span, .tile--river .tile__who span { background: rgb(255 255 255 / 0.1); color: var(--color-white); }
.tile--lime .tile__who span { background: rgb(255 255 255 / 0.5); color: var(--color-river-900); }

.bento { display: grid; gap: var(--space-3); }


/* 8. FORMS ================================================================ */

.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 40em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: var(--space-2); align-content: start; }   /* keeps inputs level when a neighbor has a hint */
.field label, .field legend { font-weight: 700; color: var(--color-ink); }
.field .optional { font-weight: 400; color: var(--color-ink-muted); }
.field__hint { margin: 0; font-size: var(--text-sm); color: var(--color-ink-muted); }

/* Text-like controls only: checkboxes and radios are styled as .check / .radio-pill */
.field input:not([type="checkbox"], [type="radio"]), .field select, .field textarea {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: var(--text-base);
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23134C65' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}
.field input:not([type="checkbox"], [type="radio"]):hover, .field select:hover, .field textarea:hover { border-color: var(--color-river-700); }
.field input:not([type="checkbox"], [type="radio"]):focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--color-river-700);
  box-shadow: 0 0 0 4px rgb(28 98 131 / 0.25);
}
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field__error { display: none; margin: 0; font-weight: 700; color: var(--color-error); }
.field__error::before { content: "⚠ "; }
.field.has-error .field__error { display: block; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy-notice {
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-grass-50);
  border: 1px solid var(--color-grass-200);
  font-size: var(--text-sm);
}
.privacy-notice svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--color-river-700); margin-top: 0.1rem; }

.route-hint {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-river-50);
}
.route-hint[hidden] { display: none; }

.form-status { padding: var(--space-5); border-radius: var(--radius-md); font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status--success { background: var(--color-grass-100); color: var(--color-river-900); }
.form-status--error { background: #FBEDEB; color: var(--color-error); }
.form-status h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-lift);
}
.form-card h3 { color: var(--color-river-700); margin-bottom: var(--space-2); }
.form-card a:not(.btn) { color: var(--color-river-700); }
.form-card :focus-visible { outline-color: var(--color-river-600); }

/* Longer forms: titled groups of fields (Refer a Client) */
.form__group { display: grid; gap: var(--space-5); min-width: 0; margin: 0; padding: 0; border: 0; }
.form__group + .form__group { padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.form__group > legend {
  float: left;   /* a floated legend becomes an ordinary grid item, so the grid gap applies */
  width: 100%;
  margin-bottom: var(--space-1);
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-river-700);
}

/* Radio and checkbox questions inside a form card */
fieldset.field { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field > legend { float: left; width: 100%; padding: 0; }
.choice-grid { display: grid; gap: var(--space-2); }
@media (min-width: 40em) { .choice-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-card .check, .form-card .radio-pill { min-height: 3.5rem; align-items: center; background: var(--color-sand); box-shadow: none; }
.form-card .radio-pill strong { font-size: var(--text-base); }
.form-card .check:has(input:checked), .form-card .radio-pill:has(input:checked) { background: var(--color-river-50); }
.field.has-error .check, .field.has-error .radio-pill { border-color: var(--color-error); }

/* Pill checkboxes (self-assessment) */
.check-grid { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
@media (min-width: 40em) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4rem;
  padding: 0.6rem 1.1rem 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1.5px solid transparent;
  box-shadow: 0 1px 2px rgb(11 50 66 / 0.06);
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.check:hover { border-color: var(--color-river-600); }
.check:active { transform: scale(0.98); }
.check input {
  appearance: none;
  flex: none;
  display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem;
  margin: 0;
  border: 2px solid var(--color-line-strong);
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 0.5rem; height: 0.9rem;
  margin-top: -0.2rem;
  border: solid var(--color-white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease-spring);
}
.check input:checked { background: var(--color-river-700); border-color: var(--color-river-700); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check:has(input:checked) { border-color: var(--color-river-700); background: var(--color-river-50); }
.check input:focus-visible { outline: 3px solid var(--color-river-600); outline-offset: 2px; }


/* 9. HOMEPAGE SECTIONS =================================================== */

/* ---- Hero: a full-width photo with a dark overlay (reference style) ------ */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(34rem, 80vh, 47rem);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  background: var(--color-river-900);
  color: var(--color-white);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; border-radius: 0; aspect-ratio: auto; }
.hero__bg > img { object-position: 70% 30%; }
/* The overlay keeps white text readable whatever the photo looks like */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(8 37 49 / 0.94) 0%, rgb(8 37 49 / 0.8) 38%, rgb(8 37 49 / 0.25) 72%, rgb(8 37 49 / 0.05) 100%);
  pointer-events: none;
}
@media (max-width: 61.99em) {
  .hero::after { background: linear-gradient(180deg, rgb(8 37 49 / 0.72) 0%, rgb(8 37 49 / 0.9) 100%); }
}
.hero__content { max-width: 36rem; }
.hero h1 { margin-bottom: var(--space-5); font-size: clamp(2.875rem, 1.7rem + 4.2vw, 5.25rem); color: var(--color-white); }
.hero h1 .accent { color: var(--color-grass-300); }
.hero__sub { margin-bottom: var(--space-5); font-size: var(--text-lg); line-height: 1.5; }
.hero .hero__sub { margin-bottom: var(--space-6); color: var(--color-river-100); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }
.hero__reassure { display: flex; gap: var(--space-3); margin: 0; color: var(--color-river-100); }
.hero__reassure svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; }
.hero :focus-visible { outline-color: var(--color-grass-300); }
@media (max-width: 40em) { .hero__ctas .btn { width: 100%; white-space: normal; } }
/* While the photo is missing, its note sits in the corner, away from the headline */
.hero__bg .photo-slot__note { top: auto; left: auto; bottom: var(--space-4); right: var(--space-4); max-width: 22rem; }
@media (max-width: 61.99em) { .hero__bg .photo-slot__note { display: none; } }

/* ---- Trust band: four promises with round icons -------------------------- */
.trust-band { padding-block: clamp(2.75rem, 1.75rem + 3vw, 4.5rem); background: var(--color-river-800); color: var(--color-river-200); }
.trust { display: grid; gap: var(--space-7) var(--space-5); }
@media (min-width: 40em) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) {
  .trust { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
  .trust > li + li { border-left: 1px solid rgb(255 255 255 / 0.14); }
}
.trust > li { padding-inline: var(--space-3); text-align: center; }
.trust h3 { margin-bottom: var(--space-2); font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); color: var(--color-white); }
.trust p { margin: 0; }
.trust a { color: var(--color-white); }
.trust-band :focus-visible { outline-color: var(--color-grass-300); }
.trust-band h2 { color: var(--color-white); }
.trust-band h2 .accent { color: var(--color-grass-300); }

.icon-circle {
  display: grid;
  place-items: center;
  width: 4.25rem; height: 4.25rem;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--color-grass-300);
  color: var(--color-river-900);
}
.icon-circle svg { width: 1.9rem; height: 1.9rem; }

/* ---- Centered section heading (services, reviews) ------------------------ */
.center-head { max-width: 50rem; margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem); text-align: center; }
.center-head p:not(.chip) { font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-muted); }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* ---- Text + photo, side by side (about, ways to pay) --------------------- */
.split { display: grid; gap: var(--space-7) var(--space-8); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 62em) { .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.split__photo { --ratio: 4 / 3; box-shadow: var(--shadow-lift); }
.split__photo--portrait { --ratio: 4 / 5; max-width: 32rem; justify-self: center; width: 100%; }
.split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); }
.split .tick-list { margin-block: var(--space-5); font-size: var(--text-lg); }
@media (min-width: 40em) { .split .tick-list--2 { grid-template-columns: 1fr 1fr; } }
.owner-quote { margin: var(--space-6) 0 0; padding-left: var(--space-5); border-left: 3px solid var(--color-grass-300); }
.owner-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.35; color: var(--color-river-700); }
.owner-quote footer { margin-top: var(--space-3); color: var(--color-ink-muted); }
.owner-quote footer strong { color: var(--color-river-700); }

/* ---- Why families choose us: photo + dark band --------------------------- */
.why-band { display: grid; background: var(--color-river-800); color: var(--color-river-200); }
.why-band > * { min-width: 0; }
@media (min-width: 62em) { .why-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.why-band__photo { --ratio: 4 / 3; border-radius: 0; }
@media (min-width: 62em) { .why-band__photo { aspect-ratio: auto; height: 100%; min-height: 38rem; } }
.why-band__body { max-width: 50rem; padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gutter); }
.why-band h2 { color: var(--color-white); }
.why-band h2 .accent { color: var(--color-grass-300); }
.why-band > div > p { font-size: var(--text-lg); line-height: 1.5; }
.why-band a { color: var(--color-white); }
.why-band :focus-visible { outline-color: var(--color-grass-300); }
.why-list { display: grid; gap: var(--space-6) var(--space-5); margin-top: var(--space-7); }
@media (min-width: 40em) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.why-list .icon-circle { width: 3.5rem; height: 3.5rem; margin: 0; background: var(--color-white); color: var(--color-river-700); }
.why-list .icon-circle svg { width: 1.6rem; height: 1.6rem; }
.why-list h3 { margin: 0 0 var(--space-1); font-size: var(--text-xl); color: var(--color-white); }
.why-list p { margin: 0; }

/* ---- Self-assessment ----------------------------------------------------- */
.assess { display: grid; gap: var(--space-7); }
@media (min-width: 62em) { .assess { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; } }
.assess h2 .accent { color: var(--color-grass-ink); }
.assess__next {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.6);
}
.assess__next .avatar { width: 3rem; height: 3rem; background: var(--color-white); }
.assess legend { margin-bottom: var(--space-4); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--color-river-700); }
.assess fieldset { border: 0; margin: 0; padding: 0; }

/* ---- Steps (dark) -------------------------------------------------------- */
.steps { display: grid; gap: var(--space-7); position: relative; }
@media (min-width: 62em) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

/* Progress track that fills as the section scrolls into view */
.steps__track {
  display: none;
  position: absolute;
  top: calc(2.25rem - 2px); left: 2.25rem; right: 0;   /* runs behind the number circles */
  height: 4px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.14);
  overflow: hidden;
}
.steps__track span { position: absolute; inset: 0; background: var(--color-grass-300); border-radius: inherit; transform-origin: left; }
@media (min-width: 62em) { .steps__track { display: block; } }

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem; height: 4.5rem;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  background: var(--color-grass-300);
  box-shadow: 0 0 0 6px var(--color-river-800);
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-river-900);
}
.step__when {
  display: inline-block;
  margin-bottom: var(--space-4);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
}
.step h3 { font-size: var(--text-xl); }
.step p { color: var(--color-river-200); }
.step p strong { color: var(--color-white); }
.step a { color: var(--color-white); }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-8); }

/* ---- Reviews ------------------------------------------------------------- */
.reviews { grid-template-columns: 1fr; }
@media (min-width: 56em) {
  .reviews { grid-template-columns: 1fr 1fr; }
  .review--featured { grid-column: 1 / -1; }
}
.review { margin: 0; justify-content: space-between; gap: var(--space-6); }
.review__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: var(--text-lg); line-height: 1.5; }
.review--featured blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-river-800);
  max-width: 30em;
}
.review__who { display: flex; align-items: center; gap: var(--space-3); }
.review__who p { margin: 0; font-size: var(--text-sm); line-height: 1.35; color: var(--color-ink-muted); }
.review__who strong { display: block; font-size: var(--text-base); color: var(--color-river-700); }
.stars { display: inline-flex; flex: none; gap: 0.15rem; }
.stars svg { flex: none; }
.stars svg { width: 1.3rem; height: 1.3rem; fill: var(--color-river-700); }
.rating-chip { margin: 0; }
.rating-chip .stars svg { width: 1.05rem; height: 1.05rem; }

.sample-flag {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border: 1.5px dashed var(--color-river-600);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-river-700);
}

/* ---- Service area -------------------------------------------------------- */
.area { grid-template-columns: 1fr; }
@media (min-width: 62em) {
  .area { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; }
  .area__map { grid-row: 1 / span 2; }
}
.area__map { padding: 0; }
.area__map svg { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; }
.area__map figcaption { position: absolute; left: var(--space-4); bottom: var(--space-4); margin: 0; padding: 0.25rem 0.75rem; border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.88); }
@media (max-width: 47.99em) { .area__map figcaption { position: static; margin: var(--space-3); } }
.town-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.town-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.3rem 1rem 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-weight: 700;
  color: var(--color-river-700);
}
.town-chips li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--color-grass-300); box-shadow: 0 0 0 2px var(--color-river-700); }
.hospital-list { margin: 0; padding-left: 1.2rem; }
.hospital-list li + li { margin-top: var(--space-1); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-layout { display: grid; gap: var(--space-7); }
@media (min-width: 62em) {
  .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .faq-layout__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq-list { border-top: 1px solid var(--color-line); }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 5rem;
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-river-700);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--color-river-700), var(--color-river-700)) center / 1rem 2.5px no-repeat,
    linear-gradient(var(--color-river-700), var(--color-river-700)) center / 2.5px 1rem no-repeat,
    var(--color-grass-100);
  transition: transform 0.4s var(--ease-spring), background-color 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(135deg);
  background:
    linear-gradient(var(--color-river-900), var(--color-river-900)) center / 1rem 2.5px no-repeat,
    linear-gradient(var(--color-river-900), var(--color-river-900)) center / 2.5px 1rem no-repeat,
    var(--color-grass-300);
}
.faq-item summary:hover { color: var(--color-river-600); }
.faq-item__body { padding-bottom: var(--space-6); max-width: 40rem; }

/* ---- Contact (river panel) ----------------------------------------------- */
.contact { display: grid; gap: var(--space-7); }
.contact > *, .assess > *, .faq-layout > *, .split-head > *, .page-hero__grid > * { min-width: 0; }
@media (min-width: 62em) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.contact h2 .accent { color: var(--color-grass-300); }  /* light green on river-700: 5.29:1, large text */
.contact__lede { font-size: var(--text-lg); line-height: 1.5; max-width: 30em; color: var(--color-river-100); }
.big-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-block: var(--space-6) var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.big-phone:hover { color: var(--color-grass-300); }
.big-phone__icon {
  flex: none;
  display: grid; place-items: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--color-grass-300);
  color: var(--color-river-900);
}
.big-phone__icon svg { width: 1.6rem; height: 1.6rem; }
.contact__facts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.contact__facts li {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  font-size: var(--text-sm);
  color: var(--color-white);
}
.contact__facts a { color: var(--color-white); }
.contact__photo { --ratio: 16 / 10; margin-top: var(--space-7); max-width: 30rem; }
@media (max-width: 61.99em) { .contact__photo { display: none; } }


/* 10. INNER PAGES ========================================================= */

.page-hero { padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-hero__grid { display: grid; gap: var(--space-6) var(--space-8); align-items: end; }
@media (min-width: 62em) { .page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4.5fr); } }
.page-hero h1 { margin: 0; max-width: 12em; overflow-wrap: break-word; hyphens: auto; }   /* long words on small phones */
.page-hero h1 .accent { color: var(--color-river-600); }
.page-hero .btn { max-width: 100%; white-space: normal; }   /* wrap rather than overflow in the narrow column */

/* Photo banner at the top of inner pages, like the reference site's page headers.
   The overlay never drops below 74% so white text stays readable on any photo. */
.page-hero--photo {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
  background: var(--color-river-900);
  color: var(--color-white);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; border-radius: 0; aspect-ratio: auto; }
.page-hero__bg .photo-slot__note { display: none; }
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(8 37 49 / 0.93) 0%, rgb(8 37 49 / 0.85) 50%, rgb(8 37 49 / 0.74) 100%);
  pointer-events: none;
}
.page-hero--photo h1 { color: var(--color-white); }
.page-hero--photo h1 .accent, .page-hero--photo .chip { color: var(--color-grass-300); }
.page-hero--photo .crumbs { color: var(--color-river-100); }
.page-hero--photo .crumbs a, .page-hero--photo a:not(.btn) { color: var(--color-white); }
.page-hero--photo .crumbs li + li::before { color: var(--color-river-200); }
.page-hero--photo .hero__sub { color: var(--color-river-100); }
.page-hero--photo .btn--primary { background: var(--color-grass-300); color: var(--color-river-900); box-shadow: none; }
.page-hero--photo .btn--primary:hover { background: var(--color-grass-200); color: var(--color-river-900); }
.page-hero--photo .btn--primary .btn__knob { background: var(--color-river-900); color: var(--color-white); }
.page-hero--photo .btn--ghost { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.3); color: var(--color-white); }
.page-hero--photo .btn--ghost:hover { background: rgb(255 255 255 / 0.16); color: var(--color-white); }
.page-hero--photo .btn--ghost .btn__knob { background: var(--color-grass-300); color: var(--color-river-900); }
.page-hero--photo :focus-visible { outline-color: var(--color-grass-300); }
/* Space between a photo banner and the sticky sub-navigation below it */
.page-hero--photo + .subnav { margin-top: var(--space-5); }

.crumbs { margin-bottom: var(--space-5); font-size: var(--text-sm); color: var(--color-ink-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--color-line-strong); }
.crumbs a { display: inline-block; padding-block: 0.5rem; font-weight: 700; }

/* Sticky in-page navigation (chips) */
.subnav {
  position: sticky;
  top: calc(var(--header-h) + var(--inset));
  z-index: 40;
  margin-bottom: var(--space-6);
  pointer-events: none;
}
.subnav ul {
  display: flex;
  gap: var(--space-2);
  width: max-content;
  max-width: 100%;
  padding: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--radius-pill);
  background: rgb(251 249 245 / 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgb(19 76 101 / 0.09);
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
}
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding-inline: 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.subnav a:hover { background: var(--color-grass-50); }
.subnav a.is-active { background: var(--color-river-700); color: var(--color-white); }
@media (max-width: 40em) {
  .subnav { position: static; }
  .subnav ul { width: auto; }
}

/* Situation blocks (Services page) */
.situation-block { display: grid; gap: var(--space-6); padding-block: var(--space-8); border-top: 1px solid var(--color-line); }
.situation-block:first-of-type, .split-head + .situation-block { border-top: 0; padding-top: 0; }
@media (min-width: 62em) { .situation-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }
.situation-block .photo-slot { --ratio: 4 / 3; }
@media (min-width: 62em) { .situation-block .photo-slot { position: sticky; top: calc(var(--header-h) + 6rem); } }
.situation-block h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
.facts-grid { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 40em) { .facts-grid { grid-template-columns: 1fr 1fr; } }
.facts-grid .tile { gap: var(--space-2); padding: var(--space-5); }
.facts-grid h4 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-grass-ink); margin-bottom: var(--space-1); }
.facts-grid ul { margin: 0; padding-left: 1.15rem; }
.facts-grid li + li { margin-top: var(--space-1); }

/* Service cards (Services page) */
.service-group-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.service-group-head h2 { margin: 0; }
.service-cards { display: grid; gap: var(--space-3); }
@media (min-width: 56em) { .service-cards { grid-template-columns: 1fr 1fr; } }
.service-card { gap: var(--space-4); scroll-margin-top: calc(var(--header-h) + 6rem); }
.service-card h3 { padding: 0; margin: 0; }
.service-card__lede { font-size: var(--text-lg); line-height: 1.45; color: var(--color-ink); }
.service-card ul { margin: 0; padding-left: 1.2rem; color: var(--color-ink-muted); }
.service-card li + li { margin-top: var(--space-1); }
.service-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); border-top: 1px solid rgb(19 76 101 / 0.1); }
.meta-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); background: var(--color-white); font-size: var(--text-sm); font-weight: 700; color: var(--color-river-700); }
.meta-chip svg { width: 1rem; height: 1rem; }
.meta-chip--pay { background: var(--color-river-700); color: var(--color-white); }

.situation-block > * { min-width: 0; }
.facts-grid .tile--dark h4 { color: var(--color-grass-300); }   /* grass on river-900: 6.24:1 */
.tile--dark a:not(.btn), .tile--river a:not(.btn) { color: var(--color-white); }
.tile--dark .service-card__meta { border-top-color: rgb(255 255 255 / 0.15); }
.service-card .fine-print { margin: 0; }

/* Closing call-to-action band */
.cta-band { display: grid; gap: var(--space-6) var(--space-8); align-items: end; }
.cta-band > * { min-width: 0; }
@media (min-width: 62em) { .cta-band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.cta-band h2 { margin-bottom: var(--space-4); }
.cta-band h2 .accent { color: var(--color-grass-300); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 40em) { .cta-band__actions .btn { width: 100%; } }

/* Three-up bento (factors, ways to pay) */
.bento--3 { grid-template-columns: 1fr; }
@media (min-width: 48em) { .bento--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .bento--3 { grid-template-columns: repeat(3, 1fr); } }
.factor__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-grass-ink);
  margin-bottom: var(--space-4);
}
.tile--dark .factor__num { color: var(--color-grass-300); }
.tile--dark .fine-print, .tile--river .fine-print { color: var(--color-river-200); }

/* ---- Cost estimator ------------------------------------------------------ */
.estimator { display: grid; gap: var(--space-3); align-items: start; }
.estimator > * { min-width: 0; }
@media (min-width: 62em) {
  .estimator { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .estimator__result { position: sticky; top: calc(var(--header-h) + 6rem); }
}
.estimator__controls { gap: var(--space-6); }
.est-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-step legend, .est-step__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-river-700);
}
.est-step__num {
  flex: none;
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--color-grass-300);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-river-900);
  letter-spacing: 0;
}

.radio-pills { display: grid; gap: var(--space-2); }
@media (min-width: 40em) { .radio-pills { grid-template-columns: repeat(3, 1fr); } }
.radio-pill {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 4.5rem;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1.5px solid transparent;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring);
}
.radio-pill:hover { border-color: var(--color-river-600); }
.radio-pill:active { transform: scale(0.98); }
.radio-pill strong { display: block; color: var(--color-river-700); }
.radio-pill span { font-size: var(--text-sm); color: var(--color-ink-muted); }
.radio-pill input {
  appearance: none;
  flex: none;
  display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem;
  margin: 0.1rem 0 0;
  border: 2px solid var(--color-line-strong);
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
}
.radio-pill input::after { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--color-river-700); transform: scale(0); transition: transform 0.25s var(--ease-spring); }
.radio-pill input:checked { border-color: var(--color-river-700); }
.radio-pill input:checked::after { transform: scale(1); }
.radio-pill input:focus-visible { outline: 3px solid var(--color-river-600); outline-offset: 2px; }
.radio-pill:has(input:checked) { border-color: var(--color-river-700); background: var(--color-river-50); }

.est-hours { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); color: var(--color-ink-muted); font-size: var(--text-lg); }
.est-hours output {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-river-700);
  font-variant-numeric: tabular-nums;
}

/* Big, easy slider (48px thumb area) */
.range {
  --fill: 14.3%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-river-700) var(--fill), var(--color-river-100) var(--fill));
}
.range::-moz-range-track {
  height: 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-river-700) var(--fill), var(--color-river-100) var(--fill));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2.25rem; height: 2.25rem;
  margin-top: -0.75rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-river-700);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease-spring);
}
.range::-moz-range-thumb {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-river-700);
  box-shadow: var(--shadow-soft);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgb(28 98 131 / 0.35); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgb(28 98 131 / 0.35); }
.range-scale { display: flex; justify-content: space-between; margin-bottom: var(--space-4); font-size: var(--text-sm); color: var(--color-ink-muted); }
button.chip-link { font: inherit; font-weight: 700; cursor: pointer; }
button.chip-link[aria-pressed="true"] { background: var(--color-river-700); border-color: var(--color-river-700); color: var(--color-white); }

.estimator__result { gap: var(--space-4); }
.estimator__result .est-result__label { margin: 0; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-grass-300); }
.est-big { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); }
.est-big [data-month-hours] {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}
.est-big__unit { font-size: var(--text-lg); color: var(--color-river-200); }
.est-schedule { margin: 0; color: var(--color-river-200); }
.est-price { padding-block: var(--space-5); border-top: 1px solid rgb(255 255 255 / 0.15); border-bottom: 1px solid rgb(255 255 255 / 0.15); }
.est-price__label { margin-bottom: var(--space-1); font-size: var(--text-sm); font-weight: 700; color: var(--color-river-200); }
.estimator__result .est-price__value {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-grass-300);   /* 6.24:1 on river-900 */
}
.est-price__note { margin: 0; color: var(--color-river-200); }

/* Questions-to-ask list */
.qa-list { margin: 0; border-top: 1px solid var(--color-line); }
.qa-row { display: grid; gap: var(--space-2) var(--space-8); padding-block: var(--space-5); border-bottom: 1px solid var(--color-line); }
@media (min-width: 56em) { .qa-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.qa-row dt { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--color-river-700); }
.qa-row dd { margin: 0; font-size: var(--text-lg); line-height: 1.5; }
.qa-row .pay { margin-right: 0.35rem; }

/* Medicare criteria */
.criteria { display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .criteria { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .criteria { grid-template-columns: repeat(4, 1fr); } }
.criteria li { padding-top: var(--space-5); border-top: 2px solid rgb(165 208 122 / 0.5); }
.criteria__num {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--color-grass-300);
}
.criteria p { color: var(--color-river-200); }
.criteria strong { color: var(--color-white); }

/* ---- Self-assessment ("Is it time?") -------------------------------------- */
.page-hero--compact { padding-bottom: var(--space-6); }
.icon-flip { transform: scaleX(-1); }
.quiz-layout { display: grid; gap: var(--space-5); align-items: start; }
.quiz-layout > * { min-width: 0; }
@media (min-width: 62em) {
  .quiz-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .quiz-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.quiz-card { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); gap: var(--space-5); box-shadow: var(--shadow-lift); }
.quiz-progress__text { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-muted); }
.quiz-progress__bar { height: 0.5rem; border-radius: var(--radius-pill); background: var(--color-river-100); overflow: hidden; }
.quiz-progress__bar span { display: block; height: 100%; width: 16.6%; border-radius: inherit; background: var(--color-river-700); transition: width 0.45s var(--ease); }
.quiz-form { display: grid; gap: var(--space-5); }
.quiz-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-step[hidden] { display: none; }
.quiz-q {
  padding: 0;
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-river-700);
  text-wrap: balance;
}
.quiz-q:focus { outline: none; }
.quiz-q:focus-visible { outline: 3px solid var(--color-river-600); outline-offset: 6px; }
.quiz-hint { margin: calc(-1 * var(--space-3)) 0 var(--space-4); color: var(--color-ink-muted); }
.quiz-step .route-hint { margin-bottom: var(--space-4); }
.quiz-options { display: grid; gap: var(--space-2); }
@media (min-width: 40em) { .quiz-options--2 { grid-template-columns: 1fr 1fr; } }
.quiz-options .quiz-none { grid-column: 1 / -1; }
.quiz-card .check, .quiz-card .radio-pill { background: var(--color-sand); box-shadow: none; min-height: 4rem; align-items: center; }
.quiz-card .radio-pill span { font-size: var(--text-base); color: var(--color-ink-muted); }
.quiz-card .radio-pill strong { font-size: var(--text-base); }
.quiz-card .radio-pill:has(input:checked), .quiz-card .check:has(input:checked) { background: var(--color-river-50); }
.quiz-card textarea { min-height: 6rem; }
.quiz-error { margin: 0; }
.quiz-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.quiz-nav [data-quiz-next] { margin-left: auto; }
@media (max-width: 40em) { .quiz-nav .btn { flex: 1; } }
.quiz-aside { display: grid; gap: var(--space-3); }
.quiz-aside .tile h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.quiz-aside .tile .btn { margin-top: var(--space-3); align-self: flex-start; }
.quiz-urgent { margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: rgb(255 255 255 / 0.65); border-left: 5px solid var(--color-error); font-size: var(--text-sm); }

[data-quiz-result] { padding-top: var(--space-5); }
.result-grid { grid-template-columns: 1fr; }
@media (min-width: 62em) { .result-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.result-grid > * { min-width: 0; }
.result-main { gap: var(--space-4); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.result-main h2 { margin: 0; font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.result-main h2:focus { outline: none; }
.result-main h2 .accent { color: var(--color-grass-300); }
.result-lede { font-size: var(--text-lg); line-height: 1.5; }
.result-loved { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: rgb(255 255 255 / 0.07); }
.result-loved strong { color: var(--color-grass-300); }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: auto; padding-top: var(--space-4); }
@media (max-width: 40em) { .result-actions .btn { width: 100%; white-space: normal; } }
.result-side h3 { margin-bottom: var(--space-2); }
.suggest-list li[hidden] { display: none; }
.suggest-list a { display: block; padding-block: var(--space-4); border-bottom: 1px solid rgb(19 76 101 / 0.12); text-decoration: none; color: var(--color-ink-muted); }
.suggest-list a strong { display: block; margin-bottom: 0.15rem; font-size: var(--text-lg); color: var(--color-river-700); }
.suggest-list a strong::after { content: " →"; transition: margin 0.2s; }
.suggest-list a:hover strong { text-decoration: underline; }
.result-side .fine-print { margin-top: var(--space-4); }
.result-watch { grid-column: 1 / -1; }
.result-watch ul { margin: 0 0 var(--space-3); padding-left: 1.2rem; columns: 2 18rem; column-gap: var(--space-7); }
.answers { margin-top: var(--space-6); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.answers summary { display: flex; align-items: center; min-height: 3.5rem; font-weight: 700; color: var(--color-river-700); cursor: pointer; }
.answers__list { display: grid; gap: var(--space-1) var(--space-6); margin: 0 0 var(--space-5); }
@media (min-width: 56em) { .answers__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.answers__list dt { font-weight: 700; color: var(--color-river-700); }
.answers__list dd { margin: 0 0 var(--space-3); color: var(--color-ink-muted); }
.result-tools { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.result-disclaimer { margin-top: var(--space-4); }

.book-steps { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.book-steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-4); align-items: start; }
.book-steps li > span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--color-grass-300); font-weight: 700; color: var(--color-river-900); }
.book-steps p { margin: 0.35rem 0 0; color: var(--color-river-100); }
.book-steps strong { color: var(--color-white); }

/* Print or save the result (self-assessment) */
@media print {
  .toplinks, .site-header, .mobile-menu, .call-bar, .site-footer, .skip-link,
  .page-hero, [data-quiz-section], #book, .result-tools, .result-actions { display: none !important; }
  body { background: #fff; padding: 0; }
  .tile--dark, .tile--sand, .tile--line { background: #fff !important; color: #1D2A31 !important; border: 1px solid #999; }
  .tile--dark :is(h2, h3, p, strong, span), .result-main h2 .accent, .result-loved strong { color: #1D2A31 !important; }
  .tile::before { display: none !important; }
  .suggest-list a strong::after { content: ""; }
  .section { padding-block: 1rem; }
}

/* ---- Everyday-help groups (homepage + services) ------------------------- */
.help-groups { display: grid; gap: var(--space-3); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.help-groups > li { display: flex; }
.help-groups > li > .help-card { flex: 1; }
@media (min-width: 40em) { .help-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75em) { .help-groups { grid-template-columns: repeat(4, 1fr); } }
.help-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s var(--ease);
}
a.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--color-ink); }
.help-card .photo-slot { --ratio: 4 / 3; border-radius: 0; }
.help-card .photo-slot__note { font-size: 0.9375rem; padding: var(--space-3) var(--space-4); }
.help-card__body { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: var(--space-5); }
.help-card h3 { margin: 0; font-size: var(--text-xl); }
.help-card__count { font-size: var(--text-sm); font-weight: 700; color: var(--color-grass-ink); }
.help-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.help-card li { display: flex; gap: 0.6rem; line-height: 1.4; }
.help-card li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-top: 0.45em; border-radius: 50%; background: var(--color-grass-300); box-shadow: 0 0 0 2px var(--color-grass-100); }
.help-card__more { margin-top: auto; padding-top: var(--space-2); font-weight: 700; color: var(--color-river-700); }
.help-card__more::after { content: " →"; }

/* Service groups (Services page) */
.group-block { display: grid; gap: var(--space-6); padding-block: var(--space-8); border-top: 1px solid var(--color-line); scroll-margin-top: calc(var(--header-h) + 6rem); }
.group-block > * { min-width: 0; }
@media (min-width: 62em) {
  .group-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .group-block .photo-slot { position: sticky; top: calc(var(--header-h) + 6rem); }
}
.group-block .photo-slot { --ratio: 4 / 3; }
.group-block h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); }
.item-list { margin: var(--space-5) 0 0; border-top: 1px solid var(--color-line); }
.item-list > div { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-bottom: 1px solid var(--color-line); }
.item-list dt { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; color: var(--color-river-700); }
.item-list dd { margin: 0; color: var(--color-ink-muted); }

/* Two-way comparison inside a dark panel (Cost page: Medicare) */
.compare { display: grid; gap: var(--space-3); }
@media (min-width: 56em) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__tile { display: flex; flex-direction: column; gap: var(--space-3); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--radius-lg); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14); }
.compare__tile h3 { margin: 0; }
.compare__tile p, .compare__tile li { color: var(--color-river-200); }
.compare__tile ul { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--space-1); }
.compare__tile--ours { background: var(--color-grass-300); border-color: var(--color-grass-300); }
.compare__tile--ours :is(h3, p, li, strong) { color: var(--color-river-900); }
.compare__label { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-grass-200); }
.compare__tile--ours .compare__label { color: var(--color-river-900); }

/* Who-pays table */
.pay-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-line); background: var(--color-white); }
.pay-table { width: 100%; min-width: 40rem; border-collapse: collapse; }
.pay-table caption { text-align: left; padding: var(--space-5) var(--space-5) 0; font-size: var(--text-sm); color: var(--color-ink-muted); caption-side: bottom; padding-bottom: var(--space-5); }
.pay-table th, .pay-table td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.pay-table thead th { background: var(--color-sand); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink-muted); }
.pay-table tbody th { font-weight: 700; color: var(--color-river-700); width: 30%; }
.pay-table tbody tr:last-child > * { border-bottom: 0; }
.pay { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; }
.pay::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: none; }
.pay--yes::before { background: var(--color-grass-ink); }
.pay--some::before { background: transparent; box-shadow: inset 0 0 0 2.5px var(--color-river-600); }
.pay--no::before { background: var(--color-line-strong); }
.pay + span { display: block; font-size: var(--text-sm); color: var(--color-ink-muted); }


/* ---- Refer a Client ------------------------------------------------------- */
/* Referral lanes (phone / form / email) */
.lane { gap: var(--space-2); }
.lane__label { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-grass-ink); }
.tile--lime .lane__label { color: var(--color-river-900); }
.lane__big {
  margin-block: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-river-900);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.lane__big--sm { font-size: var(--text-lg); letter-spacing: -0.01em; overflow-wrap: anywhere; }
a.lane__big:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.lane .tile__foot { padding-top: var(--space-3); }

/* Who to refer: two tiles side by side */
.fit { display: grid; gap: var(--space-3); }
@media (min-width: 56em) { .fit { grid-template-columns: 1fr 1fr; } }
.fit ul { margin: var(--space-2) 0 0; padding-left: 1.2rem; display: grid; gap: var(--space-2); }
.fit__note { margin-top: var(--space-5); max-width: 46rem; font-size: var(--text-lg); }

/* Agency card: the facts a discharge planner keeps on file */
.agency { display: grid; gap: var(--space-7); }
.agency > * { min-width: 0; }
@media (min-width: 62em) { .agency { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.agency__card { margin: 0; padding: var(--space-2) clamp(1.25rem, 0.75rem + 2vw, 2.25rem); border-radius: var(--radius-lg); background: var(--color-white); box-shadow: var(--shadow-soft); }
.agency__card > div { display: grid; gap: var(--space-1) var(--space-5); padding-block: var(--space-4); border-bottom: 1px solid var(--color-line); }
.agency__card > div:last-child { border-bottom: 0; }
@media (min-width: 40em) { .agency__card > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.agency__card dt { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink-muted); padding-top: 0.2rem; }
.agency__card dd { margin: 0; overflow-wrap: anywhere; }
.agency__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (max-width: 40em) { .agency__actions .btn { width: 100%; white-space: normal; } }

/* What we ask for, beside the referral form */
.ask-list { display: grid; gap: var(--space-3); margin: var(--space-6) 0; }
.ask-list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-white); font-size: var(--text-lg); line-height: 1.4; }
.ask-list svg { flex: none; width: 1.6rem; height: 1.6rem; margin-top: 0.05rem; }
.contact__info .fine-print { color: var(--color-river-100); }
.contact__info .fine-print a { color: var(--color-white); }

/* ---- Getting Started ------------------------------------------------------ */
/* Four steps instead of three: 2 × 2 on laptops, one row on wide screens */
@media (min-width: 62em) {
  .steps--4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); }
  .steps--4 .steps__track { display: none; }
}
@media (min-width: 80em) {
  .steps--4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
  .steps--4 .steps__track { display: block; }
}

/* Checklist with tick icons, on light tiles */
.tick-list { display: grid; gap: var(--space-3); margin: var(--space-2) 0 0; }
.tick-list li { display: flex; gap: var(--space-3); align-items: flex-start; line-height: 1.45; }
.tick-list svg { flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; }

/* "What you don't need" list in a dark tile */
.cross-list { display: grid; gap: var(--space-2); margin: var(--space-2) 0 0; }
.cross-list li { display: flex; gap: var(--space-3); align-items: baseline; color: var(--color-white); font-weight: 700; }
.cross-list li::before { content: "✕" / ""; flex: none; color: var(--color-grass-300); }
.situation-block .tile--dark { margin-top: var(--space-6); }

/* ---- Legal pages (privacy, accessibility, nondiscrimination) ------------ */
.prose h2 { margin: var(--space-7) 0 var(--space-3); font-size: var(--text-xl); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-2); }
.prose p, .prose li { max-width: 42em; }

/* 11. FOOTER ============================================================== */

.site-footer {
  position: relative;
  overflow: clip;
  background: var(--color-river-900);
  color: var(--color-river-200);
}
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover { color: var(--color-grass-300); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--color-grass-300); }
.footer-main { display: grid; gap: var(--space-7); grid-template-columns: 1fr 1fr; padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--space-7); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 64em) {
  .footer-main { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-main > nav { padding-left: var(--space-6); border-left: 1px solid rgb(185 211 223 / 0.18); }
}
.footer-brand .logo { margin-bottom: var(--space-5); padding: 0.6rem 1rem 0.6rem 0.6rem; border-radius: var(--radius-md); background: var(--color-white); }
.footer-brand .logo__mark { width: 3.25rem; height: 3.25rem; }
.footer-brand .logo__name { color: var(--color-wordmark); }
.footer-brand .logo__tag { color: var(--color-logo-grey); }
.footer-contact { display: grid; gap: var(--space-2); margin: 0; font-style: normal; }
.footer-phone { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.site-footer h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-white);
}
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* Copyright bar: a slightly darker strip across the full width */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5);
  font-size: var(--text-sm);
  background: var(--color-river-950);
  box-shadow: 0 0 0 100vmax var(--color-river-950);
  clip-path: inset(0 -100vmax);
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-legal p { margin: 0; }


/* 12. MOTION ============================================================== */

/* Smooth cross-fade between pages (supporting browsers only) */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .steps__track span {
      animation: fill-x linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 55%;
    }
  }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(2rem) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes fill-x {
  from { transform: scaleX(0.04); }
  to   { transform: scaleX(1); }
}


/* 13. REVIEW MODE (?review) ============================================== */

/* Facts not confirmed yet ------------------------------------------------
   data-pending="KEY|KEY": hidden until every KEY has a value in tools/facts.json;
   fill-facts.mjs --write then removes the marker and the content shows.
   data-interim="KEY|KEY": the stand-in wording shown meanwhile; fill-facts.mjs
   deletes it at the same moment. In review mode the hidden facts show instead. */
html:not(.is-review) [data-pending] { display: none !important; }
/* A section written to sit flush under a now-hidden one gets its top spacing back */
html:not(.is-review) [data-pending] + .section--flush-top { padding-top: var(--section-pad); }
html.is-review [data-interim] { display: none !important; }
html.is-review [data-pending] { outline: 2px dashed #B38F00; outline-offset: 2px; }


mark.ph { background: #FFE97A; color: #1D2A31; padding: 0 0.15em; border-radius: 4px; box-shadow: 0 0 0 1.5px #B38F00; }
.review-badge {
  position: fixed;
  right: 1rem; bottom: 6.5rem;
  z-index: 60;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: #1D2A31;
  color: #FFE97A;
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 60.01em) { .review-badge { bottom: 1rem; } }
.review-badge button { margin-left: var(--space-3); padding: 0; border: 0; background: none; color: #fff; text-decoration: underline; }
.needs-confirm { outline: 2px dashed #B38F00; outline-offset: 4px; }
.confirm-tag {
  display: inline-block;
  width: fit-content;
  margin: 0 0.4em 0.3em 0;
  padding: 0.1em 0.55em;
  border-radius: 4px;
  background: #FFE97A;
  color: #1D2A31;
  font: 700 0.9375rem/1.3 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
