/* ==========================================================================
   Selectives Home Care — single stylesheet
   Hand-authored. No preprocessor, no framework.
   Sections:
     1.  Design tokens (:root)
     2.  Reset & base
     3.  Typography
     4.  Layout primitives
     5.  Buttons & links
     6.  Site header + primary nav + mega-menu
     7.  Mobile nav panel
     8.  Sticky mobile CTA bar
     9.  Hero (intake + standard)
     10. Trust bar
     11. Cards (service / article / area)
     12. Step module
     13. Stat band
     14. FAQ (native <details>)
     15. Forms (standard + multi-step intake)
     16. CTA band
     17. Site footer
     18. Utilities, focus, reduced motion, print
   ========================================================================== */

/* 1. DESIGN TOKENS ========================================================= */
:root {
  /* Brand — greens sampled from the SelectivesCARE logo.
     [CONFIRM] exact hex against the official brand sheet if one exists. */
  --brand:        #2F9E41;   /* leaf green — fills, icons, accents on dark */
  --brand-deep:   #1F6E2D;   /* AA on --surface; use for brand-coloured text + hovers */
  --brand-soft:   #EAF4EA;   /* ~10% tint — section backgrounds */
  --brand-lime:   #8DC63F;   /* logo lime — decorative only, never text */

  /* Accent — warm terracotta-amber. Used ONLY for primary CTAs.
     White text on --accent clears WCAG AA (>= 4.5:1). Not red = not alarm. */
  --accent:       #B45F1E;
  --accent-deep:  #8F4A16;   /* hover / active */
  --accent-soft:  #F6E9DD;   /* tint */

  /* Neutrals — warm-shifted greys, never pure black/white */
  --ink:          #1D1B19;
  --ink-muted:    #55504B;   /* body copy — AAA on --surface */
  --surface:      #FDFBF8;
  --surface-alt:  #F5F1EB;
  --line:         #E4DDD3;
  --white:        #FFFFFF;

  /* Feedback */
  --error:        #A6301B;
  --error-soft:   #FBEAE6;
  --ok:           #1F6E2D;

  /* Typography — self-hosted families named first, safe fallbacks after.
     Drop woff2 files into /assets/fonts/ and enable the @font-face block below;
     until then the fallbacks render and the performance budget improves. */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
                  Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --step-0:  clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.6vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.8rem + 2.4vw, 3.5rem);

  /* Spacing rhythm — 96px desktop / 64px mobile between major sections */
  --section-y: clamp(4rem, 3rem + 6vw, 6rem);
  --gap:       clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --wrap:      72rem;   /* 1152px */
  --wrap-narrow: 46rem; /* ~736px — prose */

  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(29, 27, 25, 0.06), 0 8px 24px rgba(29, 27, 25, 0.08);
  --shadow-sm: 0 1px 2px rgba(29, 27, 25, 0.08);

  --focus:     3px solid var(--brand-deep);
  --focus-offset: 2px;
}

/* Self-hosted fonts — uncomment once the woff2 files exist in /assets/fonts/.
   See /assets/fonts/README.md for the recommended open-source families.
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}
*/

/* 2. RESET & BASE ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  font-size: 112.5%;               /* 18px base — audience is 45–70 */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-muted);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

ul[class], ol[class] { list-style: none; padding: 0; }

a { color: var(--brand-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-deep); }

button, input, select, textarea { font: inherit; color: inherit; }

:target { scroll-margin-top: 6rem; }

/* 3. TYPOGRAPHY ========================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { font-size: var(--step-0); line-height: 1.7; max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.25em; display: grid; gap: 0.4em; }
.prose li { max-width: 66ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 0.75rem;
}
.lede { font-size: var(--step-1); color: var(--ink); max-width: 60ch; }

/* 4. LAYOUT PRIMITIVES ================================================== */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { --wrap: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--brand-soft); }
.section--alt  { background: var(--surface-alt); }
.section--ink  { background: var(--ink); color: #EDE7DF; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }

.stack > * + * { margin-top: var(--gap); }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head p { margin-top: 0.75rem; }
.center { text-align: center; margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

/* 5. BUTTONS & LINKS ==================================================== */
.btn {
  --btn-bg: var(--brand-deep);   /* white text clears WCAG AA (6.3:1) */
  --btn-bg-hover: #164A1C;
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { color: var(--btn-fg); background: var(--btn-bg-hover, var(--brand-deep)); }
.btn:active { transform: translateY(1px); }

.btn--accent   { --btn-bg: var(--accent); --btn-bg-hover: var(--accent-deep); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-deep);
  border-color: currentColor;
}
.btn--ghost:hover { --btn-fg: var(--accent-deep); background: var(--surface-alt); }
.btn--on-dark { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bg-hover: #EDE7DF; }
.btn--lg { min-height: 60px; padding: 1rem 2rem; font-size: var(--step-1); }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.tel-link { font-weight: 700; white-space: nowrap; text-decoration: none; }

/* 6. SITE HEADER + PRIMARY NAV + MEGA-MENU ============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 76px;
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo { gap: .55rem; text-decoration: none; }
.site-logo .brand-mark { height: 44px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1; letter-spacing: -.01em; color: #3A3A3C; white-space: nowrap; }
.brand-word b { font-weight: 700; color: #2F9E41; }
.site-logo--light .brand-word { color: #fff; }
.site-logo--light .brand-word b { color: var(--brand-lime); }

.primary-nav { margin-left: auto; flex-shrink: 0; }
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.3rem;
  font-weight: 600;
  font-size: var(--step--1);
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.has-mega > a::after {
  content: "\25BE";
  font-size: 0.7em;
  margin-left: 0.1em;
  color: var(--ink-muted);
}
.primary-nav > ul > li > a { position: relative; padding: 0.55rem 0.45rem; letter-spacing: 0.005em; font-size: clamp(0.875rem, 0.7rem + 0.2vw, 0.95rem); }
.primary-nav > ul > li > a::before {
  content: "";
  position: absolute;
  left: 0.45rem; right: 0.45rem; bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav > ul > li:hover > a::before,
.primary-nav > ul > li:focus-within > a::before,
.primary-nav > ul > li > a[aria-current="page"]::before { transform: scaleX(1); }
.primary-nav > ul > li > a[aria-current="page"]::before { background: var(--brand-deep); }
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li:focus-within > a,
.primary-nav > ul > li > a[aria-current="page"] { color: var(--brand-deep); background: transparent; }
.primary-nav .mega a:hover,
.primary-nav .mega a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); }
.primary-nav a:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .primary-nav > ul > li > a::before, .mega { transition: none; } }

.has-mega { position: relative; }
.mega {
  position: absolute;
  left: 0;
  top: calc(100% + 0.25rem);
  width: min(46rem, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(31, 40, 30, 0.12);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.75rem;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity 0.15s ease, translate 0.15s ease, visibility 0s linear 0.15s;
}
.mega--narrow { width: 20rem; grid-template-columns: 1fr; gap: 1rem; }
.mega--narrow .mega__links { columns: 1; }
.has-mega:nth-last-child(-n+2) .mega { left: auto; right: 0; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -0.5rem; height: 0.5rem; }
.has-mega[data-dismissed] > .mega { opacity: 0 !important; visibility: hidden !important; }
.has-mega:hover > .mega,
.has-mega:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition-delay: 0s;
}
.mega__links { columns: 2; column-gap: 1.5rem; }
.mega__links a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: var(--step--1);
  break-inside: avoid;
}
.mega__feature {
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.mega__feature img { border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.mega__feature h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; }

.header-cta .btn { padding-inline: 1.1rem; }
.header-cta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; margin-left: 0.5rem; padding-left: 0.9rem; border-left: 1px solid var(--line); }
.header-cta .tel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: none;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* >= ~1416px shows the full horizontal nav; below = hamburger + mobile panel */
@media (max-width: 88.5rem) {
  .primary-nav { display: none; }
  .nav-hamburger { display: inline-flex; }
  .header-cta { margin-left: auto; padding-left: 0; border-left: 0; }
}
@media (max-width: 46rem) {
  .header-cta .btn { display: none; }
}
/* Phones: header keeps logo + phone + hamburger; Request lives in the sticky bar */
@media (max-width: 33rem) {
  .site-header__bar { gap: 0.3rem; width: min(100% - 1rem, 78rem); }
  .site-logo .brand-mark { height: 36px; } .brand-word { font-size: 1.3rem; }
  /* Simple phone header: logo + menu. Calling stays one tap away (sticky bar + menu). */
  .header-cta { display: none; }
  .nav-hamburger { margin-left: auto; }
    .header-cta .tel-link { padding: 0.4rem 0.1rem; font-size: 0.9375rem; gap: 0.2rem; }
  .header-cta .tel-link svg { display: none; }
  .nav-hamburger { width: 44px; height: 44px; }
}
/* Very narrow (≤360px): trim the logo wordmark room a touch more */
@media (max-width: 22.5rem) {
  .site-header__bar { width: min(100% - 0.5rem, 78rem); gap: 0.2rem; }
  .site-logo .brand-mark { height: 32px; } .brand-word { font-size: 1.15rem; }
  .header-cta .tel-link { font-size: 0.875rem; padding: 0.4rem 0; }
  .nav-hamburger { width: 44px; height: 44px; }
}

/* 7. MOBILE NAV PANEL ================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}
.mobile-nav[data-open="true"] { transform: translateX(0); }
/* With JS, the closed panel is also invisible to keyboard + screen readers
   (it's only off-screen otherwise, so Tab would walk through hidden links).
   visibility flips after the slide-out so the animation is unchanged. */
.js .mobile-nav:not([data-open="true"]) {
  visibility: hidden;
  transition: transform 0.2s ease, visibility 0s linear 0.2s;
}
/* No-JS fallback: the hamburger is an <a href="#mobile-nav"> and :target opens it. */
.no-js .mobile-nav:target { transform: translateX(0); }
.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.mobile-nav__close {
  width: 48px; height: 48px;
  background: none; border: 2px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
}
.mobile-nav__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  margin-bottom: 1.25rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: var(--step-1);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav > ul > li > a,
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary { color: var(--brand-deep); }
.mobile-nav details ul { padding: 0 0 0.75rem 0.75rem; }
.mobile-nav details li a {
  display: block;
  padding: 0.6rem 0.25rem;
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}
.mobile-nav__cta { margin-top: 1.5rem; }
body[data-nav-open] { overflow: hidden; }

/* 8. STICKY MOBILE CTA BAR =========================================== */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
}
.sticky-cta a:first-child { color: var(--brand-deep); background: var(--surface); }
.sticky-cta a:last-child  { color: var(--white); background: var(--accent); }
@media (max-width: 68rem) {
  .sticky-cta { display: grid; }
  body:not(.no-sticky-cta) { padding-bottom: 56px; }
}
body.no-sticky-cta .sticky-cta { display: none; }

/* 9. HERO ============================================================ */
.hero {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
  padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem);
}
.hero--split { grid-template-columns: 1.05fr 0.95fr; }
@media (max-width: 52rem) { .hero--split { grid-template-columns: 1fr; } }
/* When a split hero is used as a content block inside a .section, don't
   stack the section padding and the hero's own padding. */
.section > .hero { padding-block: 0; }
.hero__media img {
  width: 100%;
  max-height: 34rem;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}
@media (max-width: 52rem) { .hero__media img { max-height: 26rem; } }
/* Feathered hero photo — no card frame; every edge of the photo dissolves into
   the page background so there is no visible rectangle. A soft feather on all
   four sides (two linear gradients intersected) plus a gentle corner vignette.
   Used on the homepage hero and every other hero built around the
   caregiver-hugging-senior-woman photo (personal care, our caregivers). */
.hero__media--blend { align-self: stretch; }
.hero__media--blend img {
  border-radius: 0;
  box-shadow: none;
  max-height: 44rem;
  object-fit: cover;
  object-position: 56% 20%;
  --feather-x: linear-gradient(to right,  transparent 0%, #000 16%, #000 84%, transparent 100%);
  --feather-y: linear-gradient(to bottom, transparent 0%, #000 13%, #000 70%, transparent 100%);
  --vignette:  radial-gradient(115% 90% at 55% 40%, #000 55%, rgba(0,0,0,0.15) 100%);
  -webkit-mask-image: var(--feather-x), var(--feather-y), var(--vignette);
          mask-image: var(--feather-x), var(--feather-y), var(--vignette);
  -webkit-mask-composite: source-in, source-in;
          mask-composite: intersect, intersect;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}
@media (max-width: 52rem) {
  .hero__media--blend img {
    max-height: 27rem;
    object-position: 52% 16%;
    --feather-x: linear-gradient(to right,  transparent 0%, #000 12%, #000 88%, transparent 100%);
    --feather-y: linear-gradient(to bottom, transparent 0%, #000 10%, #000 78%, transparent 100%);
  }
}
/* Homepage "Why families choose Selectives": photo left of copy on desktop;
   on phones the photo sits between the copy and the "Read our story" link.
   Image: old_care_home-*.{avif,webp,jpg}, cropped (both people, full height)
   from the untouched original assets/img/og/old_care_home.png. */
.why-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-areas: "media copy" "media cta";
  grid-template-rows: auto 1fr;
  column-gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  row-gap: 1rem;
  align-items: center;
}
.why-split__copy { grid-area: copy; align-self: end; }
.why-split__copy > * + * { margin-top: 1rem; }
.why-split__media { grid-area: media; display: block; }
.why-split__cta { grid-area: cta; align-self: start; margin: 0; }
.why-split__media img {
  display: block;
  width: 100%;
  height: auto;               /* natural 1158×724 proportions — no crop, no stretch */
  aspect-ratio: 1158 / 724;   /* reserves space before load (no layout shift) */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 52rem) {
  .why-split {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media" "cta";
    grid-template-rows: auto;
    row-gap: 1.5rem;
  }
}
/* Group photo (selectives-care-team-and-clients): every face is in the top
   half, so crop from the bottom instead of the centre — keeps the standing
   caregivers' faces in frame. */
.hero__media--group img { object-position: 50% 8%; }
/* Tablets/phones: a wide strip would cut the seated couple's faces — use a
   square frame (keeps all five faces) instead of the 26rem-high strip. */
@media (max-width: 52rem) {
  .hero__media--group img { aspect-ratio: 1 / 1; max-height: none; max-width: 34rem; margin-inline: auto; }
}
/* About-page cards show people: a 16:10 strip cuts faces, so these use 4:3
   and each photo is anchored where its faces are. */
.people-cards .article-card img { aspect-ratio: 4 / 3; }
.article-card img.img--group { object-position: 50% 16%; }  /* team + clients: faces in top half */
.article-card img.img--upper { object-position: 50% 20%; }  /* hug: caregiver's face near the top */
.article-card img.img--top   { object-position: 50% 0%; }   /* reading: caregiver's head at the top edge */
/* Lower-resolution approved photos: show near their natural size, don't upscale to fill. */
.hero__media--sm { align-self: center; }
.hero__media--sm img { max-width: 26rem; margin-inline: auto; }
/* [CONFIRM] replace 350px thumbnail photos with hero-resolution photography of real Selectives caregivers. */
.hero__body h1 { margin-bottom: 1rem; }
.hero__body .lede { margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero__trust {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.hero__trust strong { color: var(--ink); }

/* Standard inner-page hero */
.page-hero { background: var(--brand-soft); padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.breadcrumb { font-size: var(--step--1); margin-bottom: 0.75rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 0.35rem; color: var(--ink-muted); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb [aria-current="page"] { color: var(--ink-muted); }

/* Embedded intake step 1 on the homepage hero */
.intake-step1 { margin-top: 1.25rem; }
.intake-step1__label { font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; }
.intake-step1__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.choice-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 64px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.choice-card:hover, .choice-card:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}
.choice-card__icon { flex-shrink: 0; color: var(--brand-deep); }
/* Narrow phones: icon above a centred label so "My parent" doesn't break mid-phrase */
@media (max-width: 30rem) {
  .intake-step1__grid .choice-card {
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.25;
  }
}
.step-indicator { font-size: var(--step--1); color: var(--ink-muted); margin-top: 0.75rem; }

/* 10. TRUST BAR ===================================================== */
.trust-bar { background: var(--ink); color: #EDE7DF; }
.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  list-style: none;
  margin: 0;
  padding-block: 1rem;
  font-size: var(--step--1);
  text-align: center;
}
.trust-bar li { display: flex; align-items: center; gap: 0.5rem; }
/* Phones: a centred, ragged wrap is hard to scan — use a left-aligned
   list with the checkmarks in one column. */
@media (max-width: 40rem) {
  .trust-bar ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    width: fit-content;
    margin-inline: auto;
    padding-block: 1.1rem;
    text-align: left;
  }
  .trust-bar li { align-items: flex-start; }
  .trust-bar svg { margin-top: 0.2em; }
}
.trust-bar svg { color: var(--brand-lime); flex-shrink: 0; }

/* 11. CARDS ======================================================== */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card--link { text-decoration: none; color: inherit; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card h3 { font-size: var(--step-1); }
.card p { font-size: var(--step--1); color: var(--ink-muted); }

.service-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
}
.service-card .link-arrow { margin-top: auto; font-size: var(--step--1); }

.article-card img { border-radius: var(--radius-sm); aspect-ratio: 16 / 10; object-fit: cover; }
.article-card__meta { font-size: var(--step--1); color: var(--ink-muted); }

.area-card { gap: 0.5rem; }
.area-card h3 { font-size: var(--step-1); }
.area-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.area-card__county { font-size: var(--step--1); color: var(--ink-muted); }

/* Two-column list of service links on an area page */
.area-services { list-style: none; margin: 0 0 1em; padding: 0; columns: 2; column-gap: 2rem; }
.area-services li { break-inside: avoid; padding: 0.3rem 0; }
@media (max-width: 32rem) { .area-services { columns: 1; } }

/* Service-area map (contact page) — inline SVG, zero network requests */
.area-map { margin: 0; }
.area-map svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.area-map figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.area-map__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}


/* 12. STEP MODULE ================================================== */
.steps { counter-reset: step; display: grid; gap: var(--gap); }
.steps--row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 52rem) { .steps--row { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  background: var(--brand-deep);
  border-radius: 50%;
  margin-bottom: 0.75rem;
}
.step h3 { font-size: var(--step-1); }
.step p { font-size: var(--step--1); color: var(--ink-muted); }

/* 13. STAT BAND ================================================== */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--gap); text-align: center; }
.stat__value { font-family: var(--font-display); font-size: var(--step-3); color: var(--brand-deep); font-weight: 700; }
.stat__label { font-size: var(--step--1); color: var(--ink-muted); }

/* 14. FAQ (native <details>) ==================================== */
.faq { display: grid; gap: 0.75rem; max-width: 48rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 1.25rem;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5em;
  line-height: 1;
  color: var(--brand-deep);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--brand-deep); }
.faq details > *:not(summary) { padding-bottom: 1.1rem; }
.faq p { font-size: var(--step-0); }
.faq p + p { margin-top: 0.75em; }

/* 15. FORMS ==================================================== */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.field > label { font-weight: 700; color: var(--ink); font-size: var(--step--1); }
.field .hint { font-size: var(--step--1); color: var(--ink-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: var(--focus); outline-offset: var(--focus-offset); border-color: var(--brand); }
.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: var(--error); background: var(--error-soft); }
.field__error { color: var(--error); font-size: var(--step--1); font-weight: 600; }

.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-row input { width: 24px; height: 24px; min-height: 0; flex-shrink: 0; margin-top: 0.15rem; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Multi-step intake */
.intake { max-width: 40rem; margin-inline: auto; }
.intake__progress { margin-bottom: 1.5rem; }
.intake__progress-track { height: 8px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
.intake__progress-fill { height: 100%; background: var(--brand); transition: width 0.25s ease; }
.intake__progress-text { font-size: var(--step--1); color: var(--ink-muted); margin-top: 0.5rem; }

.intake__step { display: none; }
.intake__step[data-active="true"] { display: block; }
.no-js .intake__step { display: block; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.5rem; }
.no-js .intake__nav { display: none; }

.intake fieldset { border: 0; padding: 0; margin: 0; }
.intake legend { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); margin-bottom: 1rem; }

.option-cards { display: grid; gap: 0.75rem; }
.option-cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 32rem) { .option-cards--2 { grid-template-columns: 1fr; } }
.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 60px;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.option-card:has(input:focus-visible) { outline: var(--focus); outline-offset: var(--focus-offset); }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }

.intake__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.intake__nav .btn--back { --btn-bg: transparent; --btn-fg: var(--ink-muted); border-color: var(--line); }

.intake__legend-hint { font-family: var(--font-body); font-size: var(--step--1); color: var(--ink-muted); margin-bottom: 1rem; }
.intake__names { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 32rem) { .intake__names { grid-template-columns: 1fr; } }
.intake__area-msg { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: var(--step--1); max-width: 34rem; }
.intake__area-msg--ok  { background: var(--brand-soft); color: var(--brand-deep); }
.intake__area-msg--out { background: var(--accent-soft); color: var(--accent-deep); }
.intake noscript { display: block; margin-bottom: 1.5rem; padding: 1rem; background: var(--surface-alt); border-radius: var(--radius-sm); font-size: var(--step--1); }
.intake noscript p { margin: 0; }
.intake [data-intake-submit] { margin-top: 1.5rem; }
.no-js .intake [data-intake-submit] { margin-top: 1.5rem; }


/* 16. CTA BAND ================================================ */
.cta-band {
  background: var(--brand-deep);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #E6F2E6; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 1.5rem; }

/* 17. SITE FOOTER =========================================== */
.site-footer { background: var(--ink); color: #C9C3BB; font-size: var(--step--1); }
.site-footer a { color: #E7E1D8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-block: var(--section-y);
}
@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 32rem) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__brand .site-logo { margin-bottom: 1rem; }
.site-footer__brand .site-logo .brand-mark { height: 44px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer__legal {
  border-top: 1px solid #3A3733;
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.site-footer__legal nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
/* Discreet designer credit: its own line, bottom right, small and muted. */
.site-credit { flex-basis: 100%; max-width: none; margin: 0; text-align: right; font-size: 0.8125rem; color: #C9C3BB; }
.site-credit a { color: inherit; text-underline-offset: 0.15em; }
.site-credit a:hover { color: #E7E1D8; }

/* Phone tap targets: 44px minimum for standalone links (not links inside
   running text). List gaps shrink so the taller rows add little height. */
@media (max-width: 48rem) {
  .site-logo, .tel-link, .link-arrow { min-height: 44px; }
  .link-arrow { display: inline-flex; align-items: center; }
  .site-footer li a, .site-footer address a, .site-footer__legal a,
  .breadcrumb a, nav[aria-label="FAQ sections"] a, nav[aria-label="Popular pages"] a, .area-services a, .area-card li a {
    display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  }
  .site-footer ul, .area-card ul { gap: 0; }
  .area-services li, .area-card li { padding: 0; margin: 0; }
  nav[aria-label="FAQ sections"] li, nav[aria-label="Popular pages"] li { margin: 0; }
}

/* 18. UTILITIES / FOCUS / MOTION / PRINT =================== */
/* Licence number and phone must never break at their hyphens (set at build time). */
.nowrap { white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
[hidden] { display: none !important; }
.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;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flow > * + * { margin-top: 1em; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

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

@media print {
  .site-header, .sticky-cta, .mobile-nav, .cta-band, .intake__nav { display: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

/* Keep both contact email addresses readable on narrow screens. */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* PROCESS STRIP (home) ============================================ */
.process-strip { padding-block: 1.25rem; background: var(--surface); border-block: 1px solid var(--line); }
.process-strip__list { list-style: none; margin: 0; padding: 0; counter-reset: ps; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.process-strip__list li { counter-increment: ps; position: relative; text-align: center; font-weight: 600; font-size: var(--step--1); color: var(--brand-deep); padding: 0.5rem 0.25rem; }
.process-strip__list li::before { content: counter(ps); display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 0.4rem; border-radius: 50%; background: var(--brand-deep); color: var(--white); font-family: var(--font-display); font-size: 0.9rem; }
.process-strip__list li:not(:last-child)::after { content: ""; position: absolute; top: 1.15rem; left: calc(50% + 24px); width: calc(100% - 48px); border-top: 2px dotted var(--line); }
@media (max-width: 52rem) {
  .process-strip__list { grid-template-columns: repeat(2, 1fr); }
  .process-strip__list li:not(:last-child)::after { display: none; }
}

/* Credentials + payment block (homepage). Understated: numbers are reference data, not headlines. */
.payment-line { font-size: var(--step--1); color: var(--ink-muted); letter-spacing: 0.01em; }
.payment-line strong { color: var(--brand-deep); }
.credentials h3 { font-family: var(--font-body); font-size: var(--step-1); }
.cred-list { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; }
.cred-list > div { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: 0.25rem 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.cred-list dt { color: var(--ink-muted); font-size: var(--step--1); }
.cred-list dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 30rem) { .cred-list > div { grid-template-columns: 1fr; } }
