/* ============================================================================
   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.
   ============================================================================ */

/* Brand fonts: Fraunces (warm display serif, echoes the logo wordmark) +
   Nunito Sans (soft, friendly, readable body). CSP allows fonts.googleapis.com. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Nunito+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Site supports both schemes — flips via the dark block below + the paired
     dark seeds bootstrap.php injects. Also tells the browser to render native
     controls/scrollbars in the active scheme. */
  color-scheme: light dark;

  /* Brand seeds — DEFAULTS only. bootstrap.php overrides these from config.
     Don't edit values here for a single client; edit site-config.php → 'theme'. */
  --brand-primary:    #0a5cff;
  --brand-accent:     #ff6b35;
  --brand-neutral:    #0f1115;
  --brand-bg:         #ffffff;
  --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);

  /* 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 — Nunito Sans body + Fraunces display, with system fallbacks
     so text paints before the webfont loads. */
  --font-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Tertiary brand pop — sage green from the logo leaves (used sparingly) */
  --c-sage: #8E9A5E;
  --c-sage-soft: color-mix(in oklch, var(--c-sage) 16%, var(--brand-bg));
  --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;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Flip the seeds — neutral becomes light, bg becomes near-black.
       Everything derived above re-mixes correctly against the new seeds. */
    --brand-neutral: #f4f5f7;
    --brand-bg:      #0b0d12;
    --color-bg-elev: #181c25;
    --nav-bg:        color-mix(in oklch, var(--brand-bg) 78%, transparent);
    --nav-border:    color-mix(in oklch, var(--brand-neutral) 10%, transparent);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================================================
   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);
}

/* ============================================================================
   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 svg { width: 32px; height: 32px; border-radius: 9px; }

.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 — Popover API. A popover toggles display:none<->block, which
   snaps unless we transition `display`/`overlay` with allow-discrete and give
   an @starting-style for the entry. Closed state = slid off-canvas + faded;
   :popover-open = on-screen. Reduced-motion users get the instant version via
   the global prefers-reduced-motion block below. */
.nav-mobile {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 90vw);
  height: 100vh;
  margin: 0;
  border: none;
  /* sp-16 top so the first menu item clears the absolutely-positioned
     close button (top sp-3 + 40px tall); sp-12 was too tight and overlapped. */
  padding: var(--sp-16) 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-out),
    overlay   var(--dur-base) var(--ease-out) allow-discrete,
    display   var(--dur-base) var(--ease-out) 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) var(--ease) allow-discrete,
    display          var(--dur-base) var(--ease) 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);
  }
}
.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; } }

/* Stack the footer brand: logo on top, name under it, then tagline. */
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.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; }
.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 section */
.cta-band {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  background: linear-gradient(135deg, var(--color-primary), color-mix(in oklch, var(--color-primary) 70%, var(--color-accent)));
  color: var(--brand-on-primary);
  border-radius: var(--radius-xl);
  margin-block: var(--sp-16);
}
.cta-band h2 { color: var(--brand-on-primary); margin-top: 0; }
.cta-band p { color: color-mix(in oklch, var(--brand-on-primary) 85%, transparent); margin-inline: auto; max-width: 50ch; font-size: var(--fs-lead); }
.cta-band .btn-primary { background: var(--brand-on-primary); color: var(--color-primary); margin-top: var(--sp-6); }
.cta-band .btn-primary:hover { background: color-mix(in oklch, var(--brand-on-primary) 90%, var(--brand-neutral)); color: var(--color-primary-hover); }

/* 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;
}

/* ============================================================================
   ============================================================================
   APPLE BLOSSOM GROOMING - project styles (prefix .abg-)
   Warm "Spa Blossom" extensions on top of the Spark native design system.
   All colors come from brand tokens (--brand-*/--color-*/--c-sage); ASCII only.
   ============================================================================
   ============================================================================ */

/* Softer, more elegant serif weight for a calm spa feel (Fraunces tops at 700) */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.018em; }
.hero h1 { font-weight: 600; letter-spacing: -0.022em; }

/* Eyebrow: small sage-into-caramel label used across the site */
.eyebrow { color: var(--color-primary); }
.eyebrow.abg-sage { color: var(--c-sage); }

/* Warm the section rhythm a touch on this site */
section + section { margin-top: var(--sp-16); }

/* ---- Reveal-on-scroll (cheap: opacity + transform only) ------------------ */
/* Hidden state is gated behind html.js so content is ALWAYS visible when JS
   is off/blocked/slow (no-JS users + crawlers). JS adds .js to <html>. */
.reveal { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); will-change: opacity, transform; }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* ---- Remove the template hero grid overlay (keep the soft warm glow) ----- */
.hero::after { display: none; }

/* ---- Decorative blossom (inline SVG, brand-tinted) ----------------------- */
.abg-blossom { color: var(--color-accent); display: inline-block; }
.abg-blossom svg { width: 100%; height: 100%; display: block; }

/* ============================================================================
   HERO - warm, centered, with the real logo in a soft white badge
   ============================================================================ */
.abg-hero { padding-block: var(--sp-20) var(--sp-16); }
.abg-hero .container { position: relative; z-index: 1; }
.abg-hero-badge {
  width: clamp(160px, 24vw, 240px);
  aspect-ratio: 1 / 1;
  margin: 0 auto var(--sp-6);
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  border: 1px solid color-mix(in oklch, var(--brand-primary) 14%, transparent);
}
.abg-hero-badge img { width: 100%; height: auto; }
.abg-hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  color: var(--color-primary);
  margin: 0 auto var(--sp-3);
  max-width: 60ch;
  text-align: center;
}
/* floating blossoms behind the hero (decorative, motion-safe) */
.abg-hero-petal { position: absolute; z-index: 0; opacity: 0.5; pointer-events: none; width: 64px; height: 64px; color: var(--color-accent); }
.abg-hero-petal.p1 { top: 8%;  left: 6%;  width: 70px; height: 70px; animation: abg-float 9s ease-in-out infinite; }
.abg-hero-petal.p2 { top: 18%; right: 8%; width: 52px; height: 52px; color: var(--c-sage); opacity: 0.45; animation: abg-float 11s ease-in-out infinite reverse; }
.abg-hero-petal.p3 { bottom: 10%; left: 12%; width: 44px; height: 44px; animation: abg-float 10s ease-in-out infinite 1s; }
@keyframes abg-float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .abg-hero-petal { animation: none !important; } }
@media (max-width: 700px) {
  /* Keep the blossoms on mobile - just smaller and tucked into the corners so
     they decorate the hero without crowding the centered copy. The hero is
     position:relative + overflow:hidden, so they stay clipped (no h-scroll),
     and they sit behind the text (z-index 0, pointer-events none). */
  .abg-hero-petal    { opacity: 0.38; }
  .abg-hero-petal.p1 { width: 46px; height: 46px; top: 3%;  left: 1%; }
  .abg-hero-petal.p2 { width: 38px; height: 38px; top: 8%;  right: 1%; }
  .abg-hero-petal.p3 { width: 30px; height: 30px; bottom: 5%; left: 3%; }
}
/* host the petals on sub-page heroes (subhero intros + legal pages) so they anchor + clip */
.abg-subhero, .abg-petalhost { position: relative; overflow: hidden; }

/* ============================================================================
   FEATURE GRID ("Why Apple Blossom") - icon + heading + text
   ============================================================================ */
.abg-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); }
.abg-feature {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.abg-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.abg-feature__icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
  color: var(--color-primary);
}
.abg-feature__icon svg { width: 28px; height: 28px; }
.abg-feature h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-h3); }
.abg-feature p { color: var(--color-text-muted); margin: 0; }

/* ============================================================================
   SPLIT ROW (image-slot + story) - alternating sides
   ============================================================================ */
.abg-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.abg-split.alt .abg-split__media { order: 2; }
@media (max-width: 820px) { .abg-split { grid-template-columns: 1fr; gap: var(--sp-8); } .abg-split.alt .abg-split__media { order: 0; } }
.abg-split__text h2 { margin-top: 0; }

/* ============================================================================
   IMAGE SLOT - attractive blossom-gradient frame where real photos drop in.
   Looks intentional on the live site; swap the inner markup for an <img>.
   ============================================================================ */
.abg-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(70% 60% at 25% 20%, var(--color-accent-soft), transparent 70%),
    radial-gradient(70% 60% at 85% 90%, var(--c-sage-soft), transparent 70%),
    linear-gradient(135deg, color-mix(in oklch, var(--brand-primary) 8%, var(--brand-bg)), color-mix(in oklch, var(--brand-accent) 8%, var(--brand-bg)));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-primary);
}
.abg-media img { width: 100%; height: 100%; object-fit: cover; }
.abg-media__inner { padding: var(--sp-8); display: grid; gap: var(--sp-3); justify-items: center; }
.abg-media__inner .abg-blossom { width: 64px; height: 64px; opacity: 0.85; }
.abg-media__cap { font-size: var(--fs-small); color: var(--color-text-muted); max-width: 30ch; }
.abg-media.tall { aspect-ratio: 3 / 4; }

/* ============================================================================
   SERVICE BLOCKS (services page)
   ============================================================================ */
.abg-service {
  scroll-margin-top: calc(var(--nav-height) + var(--sp-6));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--shadow-sm);
}
.abg-service + .abg-service { margin-top: var(--sp-6); }
.abg-service__head { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.abg-service__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
  color: var(--color-primary);
}
.abg-service__icon svg { width: 26px; height: 26px; }
.abg-service h2 { margin: 0; font-size: var(--fs-h3); }
.abg-service__tag {
  margin-left: auto;
  font-size: var(--fs-small); font-weight: 700;
  color: var(--c-sage);
  background: var(--c-sage-soft);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill, 999px);
}
.abg-included { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-2); }
.abg-included li { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--color-text-muted); }
.abg-included li::before {
  content: ""; flex-shrink: 0; margin-top: 0.35em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-primary-soft);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

/* Card grid of service teasers (home) - reuse .cards/.card, add a tag chip */
.card .abg-card-tag { display: inline-block; margin-top: var(--sp-3); font-size: var(--fs-small); font-weight: 700; color: var(--color-primary); }

/* ---- Services split: headline+text (left) + 2x2 parallax card grid (right) -- */
.abg-services-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.abg-services-split__text h2 { margin-top: 0; }
.abg-services-split__text .lead { color: var(--color-text-muted); font-size: var(--fs-lead); margin-bottom: var(--sp-6); }
.abg-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.abg-services-grid .abg-px { will-change: transform; }
.abg-services-grid .card { height: 100%; }
/* Stagger the right column down a touch so the 2x2 reads as layered (desktop). */
@media (min-width: 901px) {
  .abg-services-grid .abg-px:nth-child(2),
  .abg-services-grid .abg-px:nth-child(4) { margin-top: var(--sp-10); }
}
@media (max-width: 900px) { .abg-services-split { grid-template-columns: 1fr; gap: var(--sp-10); } }
@media (max-width: 520px) { .abg-services-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .abg-services-grid .abg-px { transform: none !important; } }

/* ============================================================================
   STEPS (how booking works)
   ============================================================================ */
.abg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); counter-reset: step; }
.abg-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); box-shadow: var(--shadow-sm); }
.abg-step__num {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  background: var(--color-primary); color: var(--brand-on-primary);
}
.abg-step__num::before { content: counter(step); }
.abg-step h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-h4); }
.abg-step p { color: var(--color-text-muted); margin: 0; }

/* ============================================================================
   KIND WORDS (real customer comments, no fabricated names/stars)
   ============================================================================ */
.abg-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-6); }
.abg-quote {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.abg-quote p { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lead); color: var(--color-text); margin: 0; }
.abg-quote .abg-blossom { width: 30px; height: 30px; margin-bottom: var(--sp-3); color: var(--color-accent); }

/* ---- Google reviews (real, named, starred) ------------------------------ */
.abg-rating { display: inline-flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.abg-rating__score { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--color-text); }
.abg-stars { display: inline-flex; gap: 2px; color: #E7B24A; line-height: 0; }
.abg-stars svg { width: 20px; height: 20px; }
.abg-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--sp-6); align-items: stretch; }
.abg-review {
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.abg-review .abg-stars svg { width: 18px; height: 18px; }
.abg-review p { margin: 0; color: var(--color-text); }
.abg-review__by { margin-top: auto; padding-top: var(--sp-3); display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; font-size: var(--fs-small); color: var(--color-text-muted); }
.abg-review__name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--color-text); }

/* ============================================================================
   INFO STRIP (hours / location / phone)
   ============================================================================ */
.abg-info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-8);
  padding: var(--sp-10);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.abg-info__item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.abg-info__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); }
.abg-info__icon svg { width: 22px; height: 22px; }
.abg-info h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-h4); }
.abg-info p, .abg-info address { margin: 0; color: var(--color-text-muted); font-style: normal; line-height: 1.6; }
.abg-info a { color: var(--color-text); font-weight: 600; }
.abg-info a:hover { color: var(--color-primary); }

/* Map */
.abg-map { border: 0; width: 100%; height: 380px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }

/* Contact layout: details + form side by side */
.abg-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-12); align-items: start; }
@media (max-width: 860px) { .abg-contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); } }
.abg-contact-grid .form { max-width: none; }

/* Centered sub-page hero (services / contact intro): roomy top padding,
   controlled gap below the subheadline. */
.abg-subhero { text-align: center; padding-block: var(--sp-16) var(--sp-10); }
.abg-subhero .lead { margin-left: auto; margin-right: auto; margin-bottom: var(--sp-4); }
.abg-subhero + section { margin-top: 0; }

/* Prose helper for legal pages */
.abg-legal { max-width: var(--reading-max); margin-inline: auto; padding-top: var(--sp-16); }
.abg-legal h2 { font-size: var(--fs-h3); }
.abg-legal ul { padding-left: 1.25rem; }
.abg-legal li { margin-bottom: var(--sp-2); }

/* ============================================================================
   COOKIE / CONSENT BANNER (mandatory on every Lingo build)
   ============================================================================ */
.abg-consent {
  position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  z-index: 200;
  max-width: 420px;
  background: var(--color-bg-elev);
  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;
}
/* Desktop: anchor bottom-left so it never covers the centered hero CTAs. */
@media (min-width: 600px) { .abg-consent { right: auto; } }
.abg-consent.is-open { display: block; }
.abg-consent p { font-size: var(--fs-small); color: var(--color-text-muted); margin: 0 0 var(--sp-4); }
.abg-consent a { font-weight: 600; }
.abg-consent__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.abg-consent .btn { font-size: var(--fs-small); padding: var(--sp-2) var(--sp-5); }

/* ============================================================================
   FOOTER - frame the full logo in a white badge so it reads on the warm bg
   ============================================================================ */
.abg-footer-logo {
  display: inline-grid; place-items: center;
  width: 96px; height: 96px; padding: 10px;
  background: #ffffff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: var(--sp-3);
}
.abg-footer-logo img { width: 100%; height: auto; }

/* The two logo badges use a light backing so the colored logo reads. In dark
   mode soften the stark white to a warm off-white so it isn't a harsh slab. */
@media (prefers-color-scheme: dark) {
  .abg-hero-badge,
  .abg-footer-logo { background: #f4ece2; }
}

/* Powered by Spark credit mark - mandatory. Fixed brand orange (#f15924);
   inline-aligned so the surrounding word spacing is preserved. */
.spark-mark { display: inline-block; width: 1.6em; height: 1.6em; margin-left: 0.15em; vertical-align: -0.5em; }
