/* ==========================================================================
   LALEJ Services Limited — Design System
   Zero dependencies. No CDN. No webfonts. Mobile-first. WCAG 2.2 AA.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep, calm, credible. Used by both divisions. */
  --brand-950: #062B27;
  --brand-900: #0B3D38;
  --brand-800: #0F4A44;
  --brand-700: #12564F;
  --brand-600: #17685F;
  --brand-500: #1E7A70;
  --brand-300: #7FBDB4;
  --brand-100: #D6EBE7;
  --brand-050: #EFF7F5;

  /* Child care accent — warm terracotta. Energy, warmth, play. */
  --child-700: #A8441C;
  --child-600: #C25325;
  --child-500: #D9622B;
  --child-200: #F6D4C4;
  --child-050: #FDF1EB;

  /* Adult care accent — steady blue. Calm, clinical trust, dignity. */
  --adult-700: #1F5480;
  --adult-600: #256394;
  --adult-500: #2B6CA3;
  --adult-200: #C7DCEC;
  --adult-050: #EEF5FA;

  /* Cleaning accent — fresh green. Clean, practical, non-clinical. */
  --clean-700: #2A6B39;
  --clean-600: #327E44;
  --clean-500: #3D8B4F;
  --clean-200: #C8E2CE;
  --clean-050: #EDF6EF;

  /* Neutrals — warm-tinted greys, never cold clinical grey */
  --ink-900: #1A1815;
  --ink-800: #2C2925;
  --ink-700: #44403A;
  --ink-600: #5C574F;
  --ink-500: #78716A;
  --ink-400: #A8A29A;
  --ink-300: #D3CEC6;
  --ink-200: #E7E3DC;
  --ink-100: #F2EFE9;
  --paper:   #FBFAF7;
  --white:   #FFFFFF;

  /* Semantic */
  --ok-700: #1F6A44;
  --ok-050: #E9F5EE;
  --warn-700: #8A5A0B;
  --warn-050: #FDF4E3;
  --alert-700: #9B2C2C;
  --alert-050: #FCEDED;

  /* Surfaces (remapped in dark mode) */
  --bg: var(--paper);
  --bg-raised: var(--white);
  --bg-sunken: var(--ink-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --text-subtle: var(--ink-500);
  --line: var(--ink-200);
  --line-strong: var(--ink-300);

  /* Contextual accent — service pages override these */
  --accent-700: var(--brand-800);
  --accent-500: var(--brand-600);
  --accent-050: var(--brand-050);
  --accent-200: var(--brand-100);

  /* Typography */
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
                  "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale — 1.2 mobile / 1.25 desktop */
  --t-xs:   clamp(0.75rem, 0.73rem + 0.10vw, 0.8125rem);
  --t-sm:   clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --t-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-lg:   clamp(1.125rem, 1.07rem + 0.28vw, 1.25rem);
  --t-xl:   clamp(1.3rem, 1.2rem + 0.5vw, 1.5rem);
  --t-2xl:  clamp(1.55rem, 1.35rem + 1vw, 2rem);
  --t-3xl:  clamp(1.85rem, 1.5rem + 1.7vw, 2.6rem);
  --t-4xl:  clamp(2.2rem, 1.6rem + 2.8vw, 3.5rem);

  /* Spacing — 4px base */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.25rem;  --s-6: 1.5rem;   --s-8: 2rem;     --s-10: 2.5rem;
  --s-12: 3rem;    --s-16: 4rem;    --s-20: 5rem;    --s-24: 6rem;
  --s-section: clamp(3rem, 2rem + 5vw, 6rem);

  /* Layout */
  --wrap: 76rem;
  --wrap-narrow: 46rem;
  --wrap-wide: 88rem;
  --gutter: clamp(1.125rem, 0.8rem + 1.6vw, 2rem);

  /* Radius & shadow */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(26,24,21,.06), 0 1px 3px rgba(26,24,21,.05);
  --shadow-md: 0 2px 4px rgba(26,24,21,.05), 0 6px 16px -4px rgba(26,24,21,.10);
  --shadow-lg: 0 4px 8px rgba(26,24,21,.04), 0 16px 40px -8px rgba(26,24,21,.14);

  --ring: 0 0 0 3px var(--bg), 0 0 0 6px var(--brand-500);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Contextual accent themes */
.theme-child {
  --accent-700: var(--child-700);
  --accent-500: var(--child-500);
  --accent-050: var(--child-050);
  --accent-200: var(--child-200);
}
.theme-adult {
  --accent-700: var(--adult-700);
  --accent-500: var(--adult-500);
  --accent-050: var(--adult-050);
  --accent-200: var(--adult-200);
}
.theme-clean {
  --accent-700: var(--clean-700);
  --accent-500: var(--clean-500);
  --accent-050: var(--clean-050);
  --accent-200: var(--clean-200);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120F;
    --bg-raised: #1E1B17;
    --bg-sunken: #0E0C0A;
    --text: #F5F2EC;
    --text-muted: #C3BDB3;
    --text-subtle: #9A948B;
    --line: #322D27;
    --line-strong: #453F37;
    --brand-050: #10312D;
    --brand-100: #17433D;
    --child-050: #2E1A11;
    --child-200: #4A2A1A;
    --adult-050: #10222F;
    --adult-200: #1B3A52;
    --clean-050: #122A17;
    --clean-200: #1F4427;
    --ok-050: #10261A;
    --warn-050: #2A2009;
    --alert-050: #2B1414;
    /* Semantic foregrounds must lighten in dark mode or they render
       dark-on-dark. Verified against the dark surfaces in build/verify.py. */
    --ok-700: #6FCF9A;
    --warn-700: #E8B860;
    --alert-700: #F0968F;
    --accent-500: var(--brand-300);
    --accent-700: var(--brand-300);
    --accent-200: #1E5A52;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,.45);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
  }
  :root:not([data-theme="light"]) .theme-child { --accent-500: #F0906A; --accent-700: #F6B294; }
  :root:not([data-theme="light"]) .theme-adult { --accent-500: #7FB4DC; --accent-700: #A9CEEB; }
  :root:not([data-theme="light"]) .theme-clean { --accent-500: #7BC98D; --accent-700: #A2DCAF; }

  /* Accent backgrounds LIGHTEN in dark mode, so white button text would sit
     light-on-light. Flip the label to the page's darkest surface instead. */
  :root:not([data-theme="light"]) .btn-accent { color: var(--bg-sunken); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--t-4xl); letter-spacing: -0.025em; }
h2 { font-size: var(--t-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { text-wrap: pretty; }

a { color: var(--accent-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

::selection { background: var(--brand-100); color: var(--brand-950); }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.wrap-wide { max-width: var(--wrap-wide); }

.section { padding-block: var(--s-section); }
.section-sm { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.section-sunken { background: var(--bg-sunken); }
.section-brand { background: var(--brand-900); color: var(--brand-section-text); }
.section-brand h2, .section-brand h3 { color: #FFFFFF; }
.section-accent { background: var(--accent-050); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-8); }

.grid { display: grid; gap: var(--s-6); }
.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%, 13rem), 1fr)); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 999;
  background: var(--brand-900); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

.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;
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-utility {
  background: var(--brand-900); color: #CFE5E1;
  font-size: var(--t-xs); padding-block: var(--s-2);
}
.header-utility .wrap {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: center; justify-content: space-between;
}
.header-utility a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.header-utility a:hover { text-decoration: underline; }
.header-utility-list { display: flex; gap: var(--s-4); flex-wrap: wrap; list-style: none; padding: 0; }

.header-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding-block: var(--s-3);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 60px; }
.site-footer .brand-logo { height: 54px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); padding: var(--s-2) var(--s-3);
  font-size: var(--t-sm); font-weight: 600;
}
.nav-toggle-bars { display: grid; gap: 3px; }
.nav-toggle-bars span { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; flex-direction: column; gap: 2px; }
.primary-nav a {
  display: block; text-decoration: none; color: var(--text);
  font-weight: 600; font-size: var(--t-sm);
  padding: var(--s-3) var(--s-3); border-radius: var(--r-md);
}
.primary-nav a:hover { background: var(--bg-sunken); }
.primary-nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-050); }
.nav-group > span {
  display: block; font-size: var(--t-xs); font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-subtle);
  padding: var(--s-4) var(--s-3) var(--s-1);
}
.nav-group ul a { font-weight: 500; padding-left: var(--s-5); color: var(--text-muted); }

.header-cta { display: none; }

/* Mobile-menu CTAs. Hidden at base scope so they fail CLOSED — if a media
   query never matches, or a stale stylesheet is cached, they stay hidden
   rather than dumping two full-width buttons across the header. */
.nav-cta { display: none; }

@media (max-width: 69.99em) {
  /* The nav is a flex child of .header-main. Without wrapping it gets squeezed
     into whatever space is left between the logo and the toggle. It has to
     break onto its own full-width row. */
  .header-main { flex-wrap: wrap; }

  .primary-nav {
    display: none;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin-top: var(--s-3);
    border-top: 1px solid var(--line);
    padding-block: var(--s-4) var(--s-2);
    max-height: calc(100dvh - 12rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.is-open { display: block; }

  /* The dropdown trigger is a desktop affordance. On mobile every group shows
     its label AND all its links, so the button would duplicate the label. */
  .nav-group > button { display: none; }

  .primary-nav > ul > li + li { border-top: 1px solid var(--line); }
  .primary-nav > ul > li > a { padding: var(--s-4) var(--s-2); font-size: var(--t-base); }
  .nav-group > span { padding: var(--s-4) var(--s-2) var(--s-1); }
  .nav-group > ul { padding-bottom: var(--s-3); }
  .nav-group ul a { padding: var(--s-3) var(--s-2) var(--s-3) var(--s-4); }

  /* Header CTAs are hidden on mobile, so surface them inside the menu. */
  .nav-cta {
    display: grid; gap: var(--s-3);
    padding: var(--s-5) var(--s-2) var(--s-2);
    border-top: 1px solid var(--line-strong);
    margin-top: var(--s-2);
  }
  body.nav-locked { overflow: hidden; }
}
/* The band just above the nav breakpoint is tight: logo + seven nav items +
   two CTA pills do not fit at 1024px and the page overflows sideways. Drop the
   secondary "Call us" pill and tighten nav padding until there is room. */
@media (min-width: 70em) and (max-width: 81.99em) {
  .header-cta .btn-outline { display: none; }
  .primary-nav > ul > li > a,
  .nav-group > button { padding-inline: var(--s-2); }
  .primary-nav > ul { gap: 0; }
}

@media (min-width: 70em) {
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; gap: var(--s-3); align-items: center; }
  .header-cta .btn { white-space: nowrap; }
  .primary-nav { display: block; }
  .primary-nav > ul { flex-direction: row; gap: var(--s-1); align-items: center; }
  .primary-nav > ul > li { position: relative; }
  .primary-nav > ul > li > a,
  .nav-group > button {
    padding: var(--s-2) var(--s-3); white-space: nowrap;
  }
  .nav-group > span { display: none; }
  .nav-group > button {
    display: inline-flex; align-items: center; gap: var(--s-1);
    background: none; border: 0; font-weight: 600; font-size: var(--t-sm);
    color: var(--text); border-radius: var(--r-md);
  }
  .nav-group > button:hover { background: var(--bg-sunken); }
  .nav-group > button::after {
    content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
  }
  .nav-group > ul {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 17rem;
    background: var(--bg-raised); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    padding: var(--s-2); opacity: 0; visibility: hidden;
    transform: translateY(-6px); transition: all .18s var(--ease);
  }
  .nav-group:hover > ul,
  .nav-group:focus-within > ul,
  .nav-group > button[aria-expanded="true"] + ul {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-group ul a { padding: var(--s-2) var(--s-3); }
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-weight: 650; font-size: var(--t-sm); line-height: 1.2;
  padding: 0.8125rem 1.375rem; border-radius: var(--r-full);
  border: 1.5px solid transparent; text-decoration: none;
  transition: transform .15s var(--ease), background-color .15s var(--ease),
              box-shadow .15s var(--ease), border-color .15s var(--ease);
  min-height: 48px; /* WCAG 2.2 target size */
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-800); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(1.08); box-shadow: var(--shadow-md); }

.btn-outline { border-color: var(--line-strong); color: var(--text); background: var(--bg-raised); }
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-700); }

.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--bg-sunken); }

.btn-light { background: #fff; color: var(--brand-900); }
.btn-light:hover { background: var(--brand-050); }

.btn-lg { font-size: var(--t-base); padding: 1rem 1.75rem; min-height: 54px; }
.btn-sm { font-size: var(--t-xs); padding: 0.5rem 0.875rem; min-height: 40px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58rem 34rem at 78% -10%, var(--accent-050), transparent 62%),
    radial-gradient(46rem 30rem at 4% 108%, var(--brand-050), transparent 60%);
}
.hero-grid { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 60em) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: var(--s-16); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-700);
  background: var(--accent-050); border: 1px solid var(--accent-200);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-full);
}
.hero-lede {
  font-size: var(--t-lg); color: var(--text-muted);
  max-width: 40ch; line-height: 1.6;
}

.hero-panel {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s-8);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   7. TRUST BAR / BADGES
   -------------------------------------------------------------------------- */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  align-items: center; padding-block: var(--s-5);
  border-block: 1px solid var(--line);
}
.trust-item {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm); font-weight: 600; color: var(--text-muted);
}
.trust-item svg { flex: none; color: var(--brand-600); }

.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em;
  padding: var(--s-1) var(--s-3); border-radius: var(--r-full);
  background: var(--brand-050); color: var(--brand-800);
  border: 1px solid var(--brand-100);
}
.badge-ofsted { background: var(--child-050); color: var(--child-700); border-color: var(--child-200); }
.badge-cqc { background: var(--adult-050); color: var(--adult-700); border-color: var(--adult-200); }
.badge-clean { background: var(--clean-050); color: var(--clean-700); border-color: var(--clean-200); }
.badge-ok { background: var(--ok-050); color: var(--ok-700); border-color: transparent; }

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--accent-200);
}
.card h3 { font-size: var(--t-lg); }
.card p { font-size: var(--t-sm); color: var(--text-muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-050); color: var(--accent-700);
  border: 1px solid var(--accent-200);
}
.card-more {
  margin-top: auto; padding-top: var(--s-2);
  font-size: var(--t-sm); font-weight: 700; color: var(--accent-700);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.card-link:hover .card-more { gap: var(--s-3); }

.card-feature { border-color: var(--accent-200); background: var(--accent-050); }

/* Pillar split cards on homepage */
.pillar-card {
  border-radius: var(--r-xl); padding: var(--s-8); border: 1px solid var(--line);
  background: var(--bg-raised); display: flex; flex-direction: column; gap: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.pillar-card ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.pillar-card li { display: flex; gap: var(--s-3); font-size: var(--t-sm); align-items: flex-start; }
.pillar-card li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px;
  border-radius: 50%; background: var(--accent-050);
  border: 1.5px solid var(--accent-500);
}

/* --------------------------------------------------------------------------
   9. AEO — DIRECT ANSWER BLOCK
   -------------------------------------------------------------------------- */
.answer {
  background: var(--accent-050);
  border: 1px solid var(--accent-200);
  border-left: 4px solid var(--accent-500);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  margin-block: var(--s-5);
}
.answer p { margin: 0; font-size: var(--t-lg); line-height: 1.55; color: var(--text); }
.answer-label {
  display: block; font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: var(--s-2);
}

.definition {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5); background: var(--bg-sunken);
  margin-block: var(--s-4);
}
.definition dt { font-weight: 700; font-family: var(--font-display); font-size: var(--t-lg); }
.definition dd { margin: var(--s-1) 0 0; color: var(--text-muted); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   10. PROSE
   -------------------------------------------------------------------------- */
.prose { max-width: min(68ch, 100%); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-12); font-size: var(--t-2xl); }
.prose h3 { margin-top: var(--s-8); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--accent-500); }
.prose strong { font-weight: 650; color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--accent-500); padding-left: var(--s-5);
  font-family: var(--font-display); font-size: var(--t-lg); color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   10b. ARTICLE LAYOUT — prose + sticky table of contents
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid; gap: var(--s-10); align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62em) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--s-16); }
  .article-aside { position: sticky; top: 7.5rem; }
}
.article-grid .prose { max-width: min(72ch, 100%); min-width: 0; }

.toc {
  border-left: 2px solid var(--line);
  padding-left: var(--s-5);
  margin-bottom: var(--s-8);
}
.toc-title {
  font-family: var(--font-body); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle);
  margin-bottom: var(--s-4);
}
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.toc a {
  color: var(--text-muted); text-decoration: none; font-size: var(--t-sm);
  line-height: 1.4; display: block;
}
.toc a:hover { color: var(--accent-700); text-decoration: underline; }

.aside-cta {
  background: var(--accent-050); border: 1px solid var(--accent-200);
  border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-3);
}
.aside-cta h2 { font-size: var(--t-lg); }
.aside-cta p { font-size: var(--t-sm); color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   11. TABLES
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-block: var(--s-6); background: var(--bg-raised);
}
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
caption {
  text-align: left; padding: var(--s-4) var(--s-5); font-weight: 700;
  font-family: var(--font-display); font-size: var(--t-lg);
  border-bottom: 1px solid var(--line);
}
th, td { padding: var(--s-3) var(--s-5); text-align: left; vertical-align: top; }
thead th {
  background: var(--bg-sunken); font-weight: 700; font-size: var(--t-xs);
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--line-strong);
}
tbody tr + tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 650; }

/* --------------------------------------------------------------------------
   12. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-raised); overflow: hidden;
}
.faq details[open] { border-color: var(--accent-200); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5);
  font-weight: 650; font-size: var(--t-base); display: flex;
  align-items: flex-start; justify-content: space-between; gap: var(--s-4);
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px;
  border-right: 2px solid var(--accent-500); border-bottom: 2px solid var(--accent-500);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--bg-sunken); }
.faq-body { padding: 0 var(--s-5) var(--s-5); color: var(--text-muted); font-size: var(--t-sm); }
.faq-body > * + * { margin-top: var(--s-3); }

/* --------------------------------------------------------------------------
   13. STEPS / PROCESS
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--s-6); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-700); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg);
}
.step h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.step p { color: var(--text-muted); font-size: var(--t-sm); margin: 0; }

/* --------------------------------------------------------------------------
   14. STATS
   -------------------------------------------------------------------------- */
.stat {
  padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--bg-raised); border: 1px solid var(--line);
}
.stat-value {
  font-family: var(--font-display); font-size: var(--t-3xl);
  font-weight: 700; color: var(--accent-700); line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label { font-size: var(--t-sm); color: var(--text-muted); margin-top: var(--s-2); }
.section-brand .stat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.section-brand .stat-value { color: #FFFFFF; }
.section-brand .stat-label { color: var(--brand-section-text); }

/* --------------------------------------------------------------------------
   15. TESTIMONIALS
   -------------------------------------------------------------------------- */
.quote {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.quote-text { font-family: var(--font-display); font-size: var(--t-lg); line-height: 1.5; }
.quote-meta { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--accent-050); color: var(--accent-700);
  display: grid; place-items: center; font-weight: 700;
  border: 1px solid var(--accent-200);
}
.quote-name { font-weight: 650; font-size: var(--t-sm); }
.quote-role { font-size: var(--t-xs); color: var(--text-subtle); }
.stars { color: var(--star); letter-spacing: 2px; font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   16. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs { padding-block: var(--s-4); font-size: var(--t-xs); }
.breadcrumbs ol {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap;
  gap: var(--s-2); align-items: center;
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--s-2); color: var(--text-subtle); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-700); text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-950));
  color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  display: grid; gap: var(--s-6); align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -8rem; top: -8rem;
  width: 26rem; height: 26rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.09), transparent 68%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: var(--brand-section-text); position: relative; max-width: 52ch; }
.cta-band .btn-row { position: relative; }
@media (min-width: 52em) { .cta-band { grid-template-columns: 1.6fr auto; } }

/* --------------------------------------------------------------------------
   18. FORMS
   -------------------------------------------------------------------------- */
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.field label { font-weight: 650; font-size: var(--t-sm); }
.field .hint { font-size: var(--t-xs); color: var(--text-subtle); }
.field .req { color: var(--alert-700); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: 0.8125rem var(--s-4);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--bg-raised); font-size: var(--t-base); min-height: 48px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
textarea { min-height: 8rem; resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px; background-repeat: no-repeat;
}

.choice-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%,13rem),1fr)); }
.choice {
  position: relative; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); padding: var(--s-4); cursor: pointer;
  display: flex; gap: var(--s-3); align-items: flex-start;
  background: var(--bg-raised); transition: all .15s var(--ease);
}
.choice:hover { border-color: var(--brand-500); }
.choice input { margin-top: 3px; accent-color: var(--brand-600); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--brand-600); background: var(--brand-050); }
.choice-title { font-weight: 650; font-size: var(--t-sm); display: block; }
.choice-desc { font-size: var(--t-xs); color: var(--text-subtle); }

.form-step { display: none; }
.form-step.is-active { display: block; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.progress { display: flex; gap: var(--s-2); margin-bottom: var(--s-8); }
.progress-seg { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.progress-seg.is-done { background: var(--brand-600); }
.progress-label { font-size: var(--t-xs); color: var(--text-subtle); margin-bottom: var(--s-2); font-weight: 650; }

.form-nav { display: flex; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-6); }
.form-note {
  font-size: var(--t-xs); color: var(--text-subtle);
  background: var(--bg-sunken); padding: var(--s-4); border-radius: var(--r-md);
  margin-top: var(--s-5);
}
.error-msg { color: var(--alert-700); font-size: var(--t-xs); font-weight: 650; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--alert-700); }

/* --------------------------------------------------------------------------
   19. PLACEHOLDER MARKER — visible until real details are added
   -------------------------------------------------------------------------- */
.ph {
  background: var(--warn-050); color: var(--warn-700);
  border-bottom: 1.5px dashed currentColor; font-weight: 650;
  padding: 0 3px; border-radius: 3px;
  /* No nowrap: long placeholder text would push narrow viewports sideways. */
  overflow-wrap: anywhere;
}
.ph-notice {
  background: var(--warn-050); border: 1px solid #E8CF9A;
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm); color: var(--warn-700); margin-block: var(--s-5);
}
.ph-notice strong { color: var(--warn-700); }

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--brand-950); color: var(--footer-text); padding-block: var(--s-16) var(--s-8); margin-top: var(--s-section); }
.footer-grid { display: grid; gap: var(--s-8); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: var(--t-sm); font-family: var(--font-body);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--footer-text); text-decoration: none; font-size: var(--t-sm); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { font-size: var(--t-xs); color: var(--footer-subtle); line-height: 1.7; }
.footer-bottom {
  margin-top: var(--s-10); padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  justify-content: space-between; font-size: var(--t-xs); color: var(--footer-subtle);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; padding: 0; }
.footer-reg {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md); padding: var(--s-4); margin-top: var(--s-5);
  font-size: var(--t-xs); line-height: 1.7;
}

/* --------------------------------------------------------------------------
   21. STICKY MOBILE CALL BAR
   -------------------------------------------------------------------------- */
.call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--bg-raised); border-top: 1px solid var(--line);
  padding: var(--s-3) var(--gutter); display: flex; gap: var(--s-3);
  box-shadow: 0 -4px 20px rgba(26,24,21,.10);
}
.call-bar .btn { flex: 1; }
@media (min-width: 48em) { .call-bar { display: none; } }
/* The sticky call bar would otherwise float over the open mobile menu. */
body.nav-locked .call-bar { display: none; }
@media (max-width: 47.99em) { body { padding-bottom: 5rem; } }

/* --------------------------------------------------------------------------
   22. UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.lede { font-size: var(--t-lg); color: var(--text-muted); line-height: 1.6; }
.mt-0 { margin-top: 0; }
.mb-8 { margin-bottom: var(--s-8); }
.max-60 { max-width: 60ch; }
.section-head { max-width: 56ch; margin-bottom: var(--s-10); }
.section-head.text-center { margin-inline: auto; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s-10); }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }
.pill {
  font-size: var(--t-xs); font-weight: 650; padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full); background: var(--bg-sunken);
  border: 1px solid var(--line); color: var(--text-muted); text-decoration: none;
}
a.pill:hover { border-color: var(--accent-500); color: var(--accent-700); }

@media print {
  .site-header, .site-footer, .call-bar, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}
