/* ============================================================================
   theme.css — single styling source of truth for the entire site.

   To REBRAND: edit site-config.php → 'theme' (primary, accent, optional
   neutral and bg). bootstrap.php injects those as --brand-* custom props
   into <head>; everything else in this file derives from them via color-mix.
   To restyle a section, edit the section blocks below.
   ============================================================================ */

/*
  DESIGN DIRECTION - Abbacy Care of Arkansas, Inc.
  Personality:      warm, hopeful, dignified
  Inspiration:      (1) soft "aurora" gradient field behind a quiet, centered hero with
                    a hand-drawn community-ring motif that gently draws in on load -
                    signals connection without stock photography;
                    (2) editorial founder-story split with an offset coral frame behind
                    the portrait slot, so the page reads personal, not corporate.
  Hero pattern:     Story Opener (centered statement) over a living warm-gradient field
                    + bespoke "care ring" SVG. No hero photo - the brand has none yet,
                    so warmth comes from color, type, and a drawn human motif.
  Signature moment: Custom "care ring" - overlapping figures forming a community circle,
                    stroke-draw + soft float on load. Fits a provider whose whole promise
                    is connection and belonging. One per page (hero).
  Section order:    HERO -> WELCOME/EMPATHY (you belong here) -> WHAT WE DO (service cards)
                    -> FOUNDER STORY (Sally & Charlie, offset split) -> LICENSE/TRUST strip
                    -> COMMUNITY -> HOW TO START (3 steps) -> CTA band. Welcome-led remix
                    because the client's #1 priority is that visitors feel safe and glad
                    they came.
  Font pair:        Lexend (display/headings) + Nunito Sans (body). Lexend is engineered
                    to improve reading proficiency - a deliberate, on-mission choice for an
                    organization serving people with intellectual/developmental disabilities
                    and their families. Nunito Sans is warm, rounded, highly legible.
  Color recipe:     Warm & Hopeful (custom) - deep soft teal-green primary #137468,
                    warm coral accent #F47C5C, warm cream base #FBF8F2, warm charcoal
                    text #23302E.
  Shape language:   Soft - 16-24px radii on cards/media, pill buttons, no hard dividers;
                    section separation by tinted bands + generous space.
*/

:root {
  /* Light only — this site does not use a dark theme. Locking color-scheme keeps
     UA widgets (form controls, scrollbars) light regardless of OS preference. */
  color-scheme: light;

  /* Brand seeds. bootstrap.php also injects these from site-config.php -> 'theme';
     kept in sync here so brand-guide.html and any non-config context render on-brand. */
  --brand-primary:    #137468;  /* deep soft teal-green - calm, trust, growth */
  --brand-accent:     #f47c5c;  /* warm coral - humanity, warmth */
  --brand-neutral:    #23302e;  /* warm charcoal text base */
  --brand-bg:         #fbf8f2;  /* warm cream page background */
  --brand-on-primary: #ffffff;  /* text color that reads on top of --brand-primary */

  /* Brand — derived (do not hardcode brand colors below this line) */
  --color-primary:        var(--brand-primary);
  --color-primary-hover:  color-mix(in oklch, var(--brand-primary) 85%, black);
  --color-primary-soft:   color-mix(in oklch, var(--brand-primary) 12%, transparent);
  --color-primary-ring:   color-mix(in oklch, var(--brand-primary) 35%, transparent);
  --color-accent:         var(--brand-accent);
  --color-accent-soft:    color-mix(in oklch, var(--brand-accent) 12%, transparent);
  /* The warm coral is a NON-TEXT color. On the cream page it is only 2.51:1, so it
     legally cannot carry text (WCAG 1.4.3 wants 4.5:1) - but as a fill, rule, dot or
     icon stroke it only owes 3:1, so --color-accent stays bright everywhere it is not
     text. This deepened, hue-preserving variant is the ONLY one allowed as a text
     color. 4.50:1 on the cream #fbf8f2 and on white. Do not use it for fills. */
  --color-accent-text:    #d5380e;

  /* Neutrals — derived from --brand-neutral + --brand-bg */
  --color-text:        var(--brand-neutral);
  --color-text-muted:  color-mix(in oklch, var(--brand-neutral) 60%, var(--brand-bg));
  --color-bg:          var(--brand-bg);
  --color-bg-alt:      color-mix(in oklch, var(--brand-neutral) 4%, var(--brand-bg));
  --color-bg-elev:     var(--brand-bg);
  --color-border:      color-mix(in oklch, var(--brand-neutral) 10%, var(--brand-bg));

  /* Status */
  --color-success: #0e9c6d;
  --color-error: #e0413a;

  /* Typography — Lexend (headings, reading-accessibility) + Nunito Sans (body).
     Loaded via <link> in header.php; system stack falls back before webfont paints. */
  --font-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Lexend", "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --fs-display: clamp(2.75rem, 5vw + 1rem, 4.75rem);
  --fs-h1: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  --fs-h3: clamp(1.375rem, 1.5vw + 1rem, 1.625rem);
  --fs-h4: 1.0625rem;
  --fs-body: 1rem;
  --fs-lead: 1.1875rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-normal: 1.65;

  /* Spacing scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.25rem; --sp-6: 1.5rem;
  --sp-8: 2rem;     --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;   --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --content-max: 72rem;
  --reading-max: 42rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Header */
  --nav-height: 72px;
  --nav-bg:     color-mix(in oklch, var(--brand-bg) 78%, transparent);
  --nav-blur:   16px;
  --nav-border: color-mix(in oklch, var(--brand-neutral) 8%, transparent);

  /* Shadows — tinted with the brand neutral so they match cool/warm palettes */
  --shadow-sm: 0 1px 2px  color-mix(in oklch, var(--brand-neutral) 4%, transparent);
  --shadow-md: 0 4px 16px color-mix(in oklch, var(--brand-neutral) 6%, transparent),
               0 1px 3px  color-mix(in oklch, var(--brand-neutral) 4%, transparent);
  --shadow-lg: 0 24px 48px -12px color-mix(in oklch, var(--brand-neutral) 18%, transparent);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 500ms;
}

/* ============================================================================
   Reset + base
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + 1rem); }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--color-primary); color: var(--brand-on-primary);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ============================================================================
   Typography
   ============================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  font-weight: 750;
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); margin-block: var(--sp-6) var(--sp-4); }
h2 { font-size: var(--fs-h2); margin-block: var(--sp-12) var(--sp-5); letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); margin-block: var(--sp-8) var(--sp-3); letter-spacing: -0.018em; }
h4 { font-size: var(--fs-h4); margin-block: var(--sp-5) var(--sp-2); letter-spacing: -0.005em; font-weight: 700; }

p { margin-block: 0 var(--sp-4); max-width: 70ch; }

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-primary-hover); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--color-primary); color: var(--brand-on-primary); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* ============================================================================
   Layout
   ============================================================================ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

main { display: block; min-height: 60vh; }
section + section { margin-top: var(--sp-12); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}
/* An eyebrow is a label for the heading that follows it, so the heading's large
   top margin (h1/h2/h3 margin-block start) double-spaces them — the eyebrow's own
   margin-bottom (--sp-3) is the intended gap. Zero the heading's top margin
   whenever it directly follows an eyebrow. Applies site-wide. */
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3, .eyebrow + h4 { margin-top: 0; }

/* ============================================================================
   Header / nav
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.025em;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand:hover { text-decoration: none; color: var(--color-primary); }
.brand__mark { display: inline-flex; flex-shrink: 0; }
.brand__mark picture { display: inline-flex; }
.brand__mark img { display: block; width: auto; height: 48px; }

.nav-desktop { display: none; }
@media (min-width: 880px) {
  .nav-desktop { display: flex; align-items: center; gap: var(--sp-2); }
}
.nav-desktop ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: var(--sp-1);
}
.nav-desktop a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-desktop a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  text-decoration: none;
}
.nav-desktop a[aria-current="page"] { color: var(--color-primary); }
.nav-desktop a.cta {
  background: var(--color-primary);
  color: var(--brand-on-primary);
  margin-left: var(--sp-3);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--brand-primary) 30%, transparent);
}
.nav-desktop a.cta:hover {
  background: var(--color-primary-hover);
  color: var(--brand-on-primary);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--brand-primary) 35%, transparent);
  transform: translateY(-1px);
}

/* Desktop dropdowns */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 0.4em;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  vertical-align: middle;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  list-style: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.dropdown a { display: block; padding: var(--sp-2) var(--sp-3); font-size: 0.9375rem; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
}
.nav-toggle:hover { background: var(--color-bg-alt); }
@media (min-width: 880px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer — native popover; animated open/close via the modern
   :popover-open + @starting-style + allow-discrete pattern. Closed/exit state
   is the base rule (slid off-canvas + transparent); the popover UA style still
   owns display, so transition `display`/`overlay` with allow-discrete so the
   element stays rendered through the exit animation. Reveal/motion tokens match
   the site's .reveal language (var(--dur-base), --ease/--ease-out). */
.nav-mobile {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 90vw);
  height: 100vh;
  margin: 0;
  border: none;
  padding: var(--sp-12) var(--sp-6) var(--sp-6);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity   var(--dur-base) var(--ease),
    overlay   var(--dur-base) allow-discrete,
    display   var(--dur-base) allow-discrete;
}
.nav-mobile:popover-open { transform: translateX(0); opacity: 1; }
@starting-style {
  .nav-mobile:popover-open { transform: translateX(100%); opacity: 0; }
}
.nav-mobile::backdrop {
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  transition:
    background       var(--dur-base) var(--ease),
    backdrop-filter  var(--dur-base) var(--ease),
    overlay          var(--dur-base) allow-discrete,
    display          var(--dur-base) allow-discrete;
}
.nav-mobile:popover-open::backdrop { background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
@starting-style {
  .nav-mobile:popover-open::backdrop { background: rgba(0,0,0,0); backdrop-filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-mobile, .nav-mobile::backdrop { transition: none; }
}
.nav-mobile__close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--color-text);
}
.nav-mobile__close:hover { background: var(--color-bg-alt); }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.nav-mobile a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
}
.nav-mobile a:hover { background: var(--color-bg-alt); text-decoration: none; }
.nav-mobile a[aria-current="page"] { color: var(--color-primary); background: var(--color-bg-alt); }
.nav-mobile details summary {
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-mobile details summary::-webkit-details-marker { display: none; }
.nav-mobile details summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform var(--dur-base) var(--ease);
}
.nav-mobile details[open] summary::after { transform: rotate(45deg); }
.nav-mobile details[open] summary { color: var(--color-primary); }
.nav-mobile details ul { padding-left: var(--sp-4); margin-top: var(--sp-1); margin-bottom: var(--sp-3); }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-20) var(--sp-8);
  margin-top: var(--sp-32);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-12);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__tagline { margin-top: var(--sp-3); color: var(--color-text-muted); }
.site-footer__address {
  font-style: normal;
  margin-top: var(--sp-4);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.site-footer h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 var(--sp-4);
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.site-footer a { color: var(--color-text); font-size: 0.9375rem; }
.site-footer a:hover { color: var(--color-primary); }
.site-footer__bottom {
  max-width: var(--content-max);
  margin: var(--sp-16) auto 0;
  padding: var(--sp-6) var(--sp-6) 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--brand-on-primary);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--brand-primary) 30%, transparent);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--brand-on-primary);
  box-shadow: 0 8px 16px color-mix(in oklch, var(--brand-primary) 25%, transparent);
}
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-alt); }

.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 1rem; }

/* ============================================================================
   Forms
   ============================================================================ */
.form { display: grid; gap: var(--sp-5); max-width: 36rem; }
.form-row { display: grid; gap: var(--sp-2); }
.form label { font-weight: 500; font-size: 0.9375rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand-primary) 18%, transparent);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
.form-help { font-size: var(--fs-small); color: var(--color-text-muted); }
.form-status { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); display: none; font-size: 0.9375rem; }
.form-status[data-state="ok"]    { display: block; background: color-mix(in oklch, var(--color-success) 12%, transparent); color: var(--color-success); border: 1px solid color-mix(in oklch, var(--color-success) 30%, transparent); }
.form-status[data-state="error"] { display: block; background: color-mix(in oklch, var(--color-error) 12%, transparent);   color: var(--color-error);   border: 1px solid color-mix(in oklch, var(--color-error) 30%, transparent); }

/* ============================================================================
   Hero — the "beautiful" landing section
   ============================================================================ */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--sp-24) var(--sp-20);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -2;
  background:
    radial-gradient(45% 55% at 18% 20%,  color-mix(in oklch, var(--brand-primary) 20%, transparent), transparent 70%),
    radial-gradient(40% 50% at 85% 25%,  color-mix(in oklch, var(--brand-accent) 16%, transparent),  transparent 70%),
    radial-gradient(50% 50% at 50% 110%, color-mix(in oklch, var(--brand-primary) 12%, transparent), transparent 70%);
  filter: blur(2px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right,  color-mix(in oklch, var(--brand-neutral) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--brand-neutral) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
          mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 800;
  margin-block: 0 var(--sp-6);
  max-width: 18ch;
  margin-inline: auto;
}
.hero p.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  line-height: 1.55;
}
.hero__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

.hero__highlight {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* ============================================================================
   Cards / sections
   ============================================================================ */
.section-title {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.section-title h2 { margin-top: 0; }
.section-title p { margin-inline: auto; color: var(--color-text-muted); font-size: var(--fs-lead); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.card {
  position: relative;
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card h3 { margin-top: var(--sp-3); margin-bottom: var(--sp-2); }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
/* Cards that are whole-card links (e.g. home service cards -> services page anchors) */
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover .card__tag { text-decoration: underline; }
a.card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
  color: var(--color-primary);
}
.card__icon svg { width: 22px; height: 22px; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-6);
  padding: var(--sp-10);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats__label { color: var(--color-text-muted); font-size: var(--fs-small); margin-top: var(--sp-1); }

/* CTA — bespoke "warm note" card (replaces the stock centered gradient band).
   Reads like a handwritten note from the family: cream card, coral header ribbon,
   a beating heart by the headline, and a hand-drawn coral underline that draws on
   when the card scrolls into view. */
.abc-cta-note {
  position: relative;
  max-width: 660px;
  margin: var(--sp-16) auto;
  padding: var(--sp-12) var(--sp-8) var(--sp-10);
  text-align: center;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 64px -30px color-mix(in oklch, var(--brand-neutral) 60%, transparent);
  overflow: hidden;
}
/* coral ribbon across the top edge — the "flap" of the note */
.abc-cta-note::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, var(--color-accent), color-mix(in oklch, var(--color-accent) 60%, var(--color-primary)));
}
/* faint paper "stitch" rule just below the ribbon */
.abc-cta-note::after {
  content: "";
  position: absolute;
  inset: 22px var(--sp-8) auto;
  height: 0;
  border-top: 2px dashed var(--color-accent-soft);
}
.abc-cta-note__title {
  margin: var(--sp-3) 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.abc-cta-note__heart {
  width: 0.95em; height: 0.95em;
  flex: none;
  fill: var(--color-accent);
  transform-origin: center;
  animation: abc-beat 2.8s ease-in-out infinite;
}
.abc-cta-note__underline {
  display: block;
  width: 190px; max-width: 62%;
  height: 12px;
  margin: var(--sp-2) auto var(--sp-5);
}
.abc-cta-note__underline path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1s var(--ease-out) 0.25s;
}
.js .abc-cta-note.is-visible .abc-cta-note__underline path { stroke-dashoffset: 0; }
:root:not(.js) .abc-cta-note__underline path { stroke-dashoffset: 0; }
.abc-cta-note p {
  color: var(--color-text-muted);
  margin-inline: auto;
  max-width: 48ch;
  font-size: var(--fs-lead);
}
.abc-cta-note .btn-primary { margin-top: var(--sp-6); }
@media (prefers-reduced-motion: reduce) {
  .abc-cta-note__heart { animation: none; }
  .abc-cta-note__underline path { stroke-dashoffset: 0; transition: none; }
}

/* Reading content (about/service body) */
.prose { max-width: var(--reading-max); margin-inline: auto; }
.prose h2:first-child, .prose h1:first-child { margin-top: 0; }

/* Anchor offset for sticky header */
:target { scroll-margin-top: calc(var(--nav-height) + var(--sp-6)); }

/* ============================================================================
   Breadcrumbs
   ============================================================================ */
.breadcrumbs {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: var(--sp-12);
  margin-bottom: 0;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--color-text-muted);
  opacity: 0.55;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* ============================================================================
   Accessibility & motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================================
   ABBACY CARE — project styles (abc-*). Extends the native design system above.
   Everything here references --brand-* / --color-* tokens (no hardcoded brand).
   ============================================================================ */

/* Soft, friendly shape language: pill buttons, warmer link weight */
.btn { border-radius: 999px; font-family: var(--font-display); letter-spacing: -0.01em; }
.eyebrow { color: var(--color-primary); }
strong { font-weight: 700; }
.brand__name { white-space: nowrap; font-size: clamp(1rem, 4.2vw, 1.1875rem); }

/* --- Reveal-on-scroll workhorse (only hides when JS is present; no-JS shows all) -- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--d1 { transition-delay: 0.08s; }
.js .reveal--d2 { transition-delay: 0.16s; }
.js .reveal--d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* --- Hero: warm "aurora" field + slow drift (signature backdrop) ---------------- */
.abc-hero { padding-block: var(--sp-24) var(--sp-8); }
/* The hero is .hero (not .abc-section), so the global `section + section` 48px
   margin (line ~219) applied between it and the welcome band, showing as a flat
   cream strip. Zero it so the welcome band sits flush under the hero. */
.abc-hero + section { margin-top: 0; }
/* Remove the base grid-line overlay (.hero::after) on the hero - aurora only */
.abc-hero::after { content: none; }
.abc-hero::before {
  background:
    radial-gradient(48% 56% at 16% 18%, color-mix(in oklch, var(--brand-primary) 26%, transparent), transparent 70%),
    radial-gradient(42% 52% at 86% 22%, color-mix(in oklch, var(--brand-accent)  30%, transparent), transparent 72%),
    radial-gradient(54% 54% at 50% 112%, color-mix(in oklch, var(--brand-primary) 16%, transparent), transparent 70%);
  background-size: 160% 160%;
  animation: abc-aurora 24s ease-in-out infinite;
}
@keyframes abc-aurora {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 100%; }
  50%      { background-position: 30% 20%, 70% 10%, 50% 90%; }
}
@media (prefers-reduced-motion: reduce) { .abc-hero::before { animation: none; } }
/* Eyebrow is TEXT, so it takes the deepened accent, not the raw coral (2.51:1 = fail). */
.abc-hero .eyebrow { color: var(--color-accent-text); }

/* --- Care-ring signature motif --------------------------------------------------- */
.abc-care-ring { width: min(320px, 70vw); height: auto; margin: var(--sp-8) auto 0; display: block; }
.abc-care-ring .ring-track { fill: none; stroke: color-mix(in oklch, var(--brand-primary) 30%, transparent); stroke-width: 2; }
.abc-care-ring .ring-arc   { fill: none; stroke: var(--color-primary); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 760; stroke-dashoffset: 760; animation: abc-draw 2.4s var(--ease-out) 0.2s forwards; }
.abc-care-ring .figure     { fill: var(--color-accent); opacity: 0; animation: abc-pop 0.5s var(--ease-out) forwards; }
.abc-care-ring .figure--alt { fill: var(--color-primary); }
.abc-care-ring .figure:nth-of-type(1){animation-delay:.5s} .abc-care-ring .figure:nth-of-type(2){animation-delay:.7s}
.abc-care-ring .figure:nth-of-type(3){animation-delay:.9s} .abc-care-ring .figure:nth-of-type(4){animation-delay:1.1s}
.abc-care-ring .figure:nth-of-type(5){animation-delay:1.3s} .abc-care-ring .figure:nth-of-type(6){animation-delay:1.5s}
.abc-care-ring .heart { fill: var(--color-accent); transform-origin: center; animation: abc-beat 2.8s ease-in-out 1.7s infinite; }
@keyframes abc-draw { to { stroke-dashoffset: 0; } }
@keyframes abc-pop  { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes abc-beat { 0%,100%{transform:scale(1)} 12%{transform:scale(1.12)} 24%{transform:scale(1)} }
@media (prefers-reduced-motion: reduce) {
  .abc-care-ring .ring-arc { stroke-dashoffset: 0; animation: none; }
  .abc-care-ring .figure { opacity: 1; animation: none; }
  .abc-care-ring .heart { animation: none; }
}

/* --- Tinted section bands -------------------------------------------------------- */
.abc-band { background: var(--color-bg-alt); }
.abc-band--soft { background: color-mix(in oklch, var(--brand-primary) 6%, var(--brand-bg)); }
.abc-band--accent { background: color-mix(in oklch, var(--brand-accent) 9%, var(--brand-bg)); }
.abc-section { padding-block: var(--sp-20); }
section.abc-section + section.abc-section { margin-top: 0; }

/* --- Generic two-column split (founder story, who-we-serve) ---------------------- */
.abc-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }
.abc-split--narrowmedia { grid-template-columns: 0.85fr 1.15fr; }
.abc-split__media { position: relative; }
.abc-split--rev .abc-split__media { order: 2; }
@media (max-width: 820px) { .abc-split, .abc-split--narrowmedia { grid-template-columns: 1fr; gap: var(--sp-8); }
  .abc-split--rev .abc-split__media { order: 0; } }

/* Offset coral frame behind a media/portrait slot */
/* isolation:isolate gives the frame a permanent stacking context, so the
   z-index:-1 offset frame stays put. Without it the frame only showed while the
   reveal animation's transform created a temporary context, then vanished. */
.abc-framed { position: relative; isolation: isolate; border-radius: var(--radius-xl); }
.abc-framed::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translate(18px, 18px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand-accent) 80%, transparent), var(--color-primary-soft));
}
/* img() emits <picture><source><img>, so the photo is a grandchild here. */
.abc-framed > picture { display: block; }
.abc-framed > img, .abc-framed > picture > img, .abc-framed > .abc-imgslot {
  border-radius: var(--radius-xl); width: 100%;
}
.abc-framed > img, .abc-framed > picture > img {
  display: block; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
}

/* Image-slot placeholder (client photos drop in later) */
.abc-imgslot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
  aspect-ratio: 4 / 3; padding: var(--sp-8); text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, color-mix(in oklch, var(--brand-primary) 5%, transparent) 14px, color-mix(in oklch, var(--brand-primary) 5%, transparent) 28px),
    var(--color-bg-alt);
  border: 1px dashed color-mix(in oklch, var(--brand-neutral) 22%, var(--brand-bg));
  color: var(--color-text-muted); font-size: var(--fs-small);
}
.abc-imgslot svg { width: 40px; height: 40px; color: color-mix(in oklch, var(--brand-primary) 55%, var(--brand-bg)); }

/* --- Service / value cards with iconography (reuses .cards/.card) ---------------- */
.abc-card-list { list-style: none; padding: 0; margin: 0; }
.card__icon svg { width: 24px; height: 24px; }
.card__tag { display: inline-block; margin-top: var(--sp-3); font-size: var(--fs-small); font-weight: 700;
  color: var(--color-primary); }

/* --- "How to start" numbered steps ---------------------------------------------- */
.abc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); counter-reset: step; }
@media (max-width: 760px) { .abc-steps { grid-template-columns: 1fr; } }
.abc-step { position: relative; padding: var(--sp-8) var(--sp-6); background: var(--color-bg-elev);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.abc-step__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  background: var(--color-primary); color: var(--brand-on-primary); margin-bottom: var(--sp-3); }
.abc-step h3 { margin-top: 0; }
.abc-step p { color: var(--color-text-muted); margin-bottom: 0; }

/* --- License / trust strip ------------------------------------------------------- */
.abc-trust { display: flex; align-items: center; gap: var(--sp-8); flex-wrap: wrap; justify-content: center;
  padding: var(--sp-10); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--color-primary-soft), var(--color-accent-soft));
  border: 1px solid var(--color-border); text-align: center; }
.abc-trust__badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  border-radius: 999px; background: var(--color-bg-elev); color: var(--color-primary); box-shadow: var(--shadow-md); flex-shrink: 0; }
.abc-trust__badge svg { width: 34px; height: 34px; }
.abc-trust__text { max-width: 56ch; text-align: left; }
.abc-trust__text p { margin-bottom: 0; color: var(--color-text-muted); }
@media (max-width: 600px) { .abc-trust__text { text-align: center; } }

/* --- Contact detail tiles -------------------------------------------------------- */
.abc-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5); }
.abc-contact-tile { padding: var(--sp-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-bg-elev); }
.abc-contact-tile .card__icon { margin-bottom: var(--sp-3); }
.abc-contact-tile h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-h4); }
.abc-contact-tile p, .abc-contact-tile a { margin: 0; color: var(--color-text-muted); }
.abc-map { width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); display: block; }

/* --- Bulleted check list --------------------------------------------------------- */
.abc-checks { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-3); }
.abc-checks li { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); align-items: start; }
.abc-checks svg { width: 22px; height: 22px; color: var(--color-primary); margin-top: 2px; }

/* --- FAQ accordion (services page; content comes from site-config 'faq') --------- */
.abc-faq { display: grid; gap: var(--sp-3); max-width: 52rem; margin-inline: auto; }
.abc-faq__item {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding-inline: var(--sp-6);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease-out);
}
.abc-faq__item:hover { border-color: color-mix(in oklch, var(--brand-primary) 24%, var(--brand-bg)); }
.abc-faq__item[open] {
  border-color: color-mix(in oklch, var(--brand-primary) 30%, var(--brand-bg));
  box-shadow: var(--shadow-md);
}
/* summary = the question row */
.abc-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  cursor: pointer;
  list-style: none;           /* hide the default disclosure marker */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: var(--lh-snug);
  letter-spacing: -0.012em;
  color: var(--color-text);
  transition: color var(--dur-fast) var(--ease);
}
.abc-faq__q::-webkit-details-marker { display: none; }
.abc-faq__q:hover { color: var(--color-primary); }
.abc-faq__q:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
.abc-faq__item[open] .abc-faq__q { color: var(--color-primary); }
/* soft "+" badge that rotates into an "x" when the answer opens */
.abc-faq__q::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease);
}
.abc-faq__item[open] .abc-faq__q::after {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-primary-soft));
}
.abc-faq__a { padding-bottom: var(--sp-6); }
.abc-faq__a p { margin-bottom: 0; max-width: 64ch; color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) { .abc-faq__q::after { transition: none; } }

/* --- Cookie / consent banner (mandatory on every Lingo build) -------------------- */
.abc-consent {
  position: fixed; inset: auto var(--sp-4) var(--sp-4) var(--sp-4); z-index: 80;
  max-width: 520px; margin-inline: auto;
  background: var(--color-bg-elev); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-5) var(--sp-6);
  display: none;
}
.abc-consent.is-open { display: block; }
.abc-consent p { font-size: var(--fs-small); margin-bottom: var(--sp-4); color: var(--color-text-muted); }
.abc-consent__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.abc-consent .btn { padding: var(--sp-2) var(--sp-5); font-size: var(--fs-small); }

/* --- 404 helper ------------------------------------------------------------------ */
.abc-404 { text-align: center; padding-block: var(--sp-24); }
.abc-404__code { font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(4rem, 16vw, 9rem);
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
