/* ==========================================================================
   CounselorBrandy.com — Design Tokens
   Single source of truth. This is the ONLY file in the project permitted to
   contain raw color values; everything else references var(--...).

   Architecture: primitive -> semantic -> component
   Direction: Minimalism / Swiss. Variance 2 (centred, minimal),
   motion 2 (subtle), density 3 (spacious).
   Every foreground/background pair below is verified >= 4.5:1 (see G13).
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     LAYER 1 — PRIMITIVES (raw values, never used directly in components)
     --------------------------------------------------------------------- */

  /* Forest — the grounded, clinical-calm core of the brand */
  --forest-900: #1f2a26;
  --forest-800: #24483e;
  --forest-700: #2f5d50;
  --forest-600: #3d7263;

  /* Sage — quiet tints for section separation */
  --sage-300: #c9d6cc;
  --sage-200: #dde6de;
  --sage-100: #e8ede8;

  /* Stone — warm paper, so the page never reads clinical-cold */
  --stone-700: #4f5b55;
  --stone-300: #e3ded3;
  --stone-200: #efebe3;
  --stone-100: #f7f5f0;
  --stone-000: #ffffff;

  /* Clay — the single warm accent. CTA and emphasis only, never decoration */
  --clay-800: #8f4423;
  --clay-700: #9a4a27;
  --clay-600: #a8512c;

  /* Signal */
  --red-700: #9b2c23;
  --amber-100: #fdf6e7;
  --amber-700: #8a6200;

  /* ---------------------------------------------------------------------
     LAYER 2 — SEMANTIC (purpose aliases; what components actually consume)
     --------------------------------------------------------------------- */

  --color-bg: var(--stone-100);
  --color-bg-alt: var(--sage-100);
  --color-bg-inverse: var(--forest-900);
  --color-surface: var(--stone-000);
  --color-surface-sunken: var(--stone-200);

  --color-text: var(--forest-900);           /* 13.6:1 on bg  */
  --color-text-muted: var(--stone-700);      /*  6.5:1 on bg  */
  --color-text-on-dark: var(--stone-100);    /* 13.6:1 on inverse */
  --color-text-on-dark-muted: var(--sage-300);/* 9.9:1 on inverse */

  --color-primary: var(--forest-700);        /*  6.9:1 on bg  */
  --color-primary-strong: var(--forest-800); /*  9.3:1 on bg  */
  --color-primary-hover: var(--forest-800);
  --color-on-primary: var(--stone-000);      /*  7.5:1 on primary */

  --color-accent: var(--clay-700);           /* CTA fill; white text 6.2:1 */
  --color-accent-hover: var(--clay-800);
  --color-accent-text: var(--clay-800);      /*  6.4:1 on bg, for inline links */
  --color-on-accent: var(--stone-000);

  --color-border: var(--stone-300);
  --color-border-strong: var(--sage-300);
  --color-focus: var(--clay-700);

  --color-danger: var(--red-700);
  --color-notice-bg: var(--amber-100);
  --color-notice-border: var(--amber-700);

  /* ---------------------------------------------------------------------
     TYPOGRAPHY
     Lora  — headings: warm, credible, human. A serif signals a practitioner,
             not a lead-gen funnel.
     Source Sans 3 — body: chosen for readability/accessibility.
     --------------------------------------------------------------------- */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Fluid scale, 1.25 ratio at desktop. Body never below 17px. */
  --text-xs: 0.8125rem;   /* 13px — legal/footnote only */
  --text-sm: 0.9375rem;   /* 15px — captions, meta */
  --text-base: 1.0625rem; /* 17px — body */
  --text-lg: clamp(1.125rem, 0.5vw + 1rem, 1.25rem);
  --text-xl: clamp(1.3rem, 0.8vw + 1.1rem, 1.5rem);
  --text-2xl: clamp(1.55rem, 1.2vw + 1.2rem, 1.9rem);
  --text-3xl: clamp(1.85rem, 2vw + 1.3rem, 2.5rem);
  --text-4xl: clamp(2.1rem, 3.2vw + 1.3rem, 3.25rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.72;

  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;

  --measure: 68ch;        /* long-form reading width */
  --measure-narrow: 54ch; /* intro/lede width */

  /* ---------------------------------------------------------------------
     SPACE — density 3 (spacious)
     --------------------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --container: 72rem;
  --container-narrow: 44rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* ---------------------------------------------------------------------
     SHAPE / DEPTH — Swiss: sharp, restrained. Shadows are almost absent.
     --------------------------------------------------------------------- */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(31, 42, 38, 0.06);
  --shadow-md: 0 2px 10px rgba(31, 42, 38, 0.07);
  --shadow-lg: 0 10px 34px rgba(31, 42, 38, 0.1);

  --border-hairline: 1px solid var(--color-border);

  /* ---------------------------------------------------------------------
     MOTION — subtle tier. Honour prefers-reduced-motion everywhere.
     --------------------------------------------------------------------- */
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --focus-ring: 3px solid var(--color-focus);
  --focus-offset: 2px;

  --z-header: 50;
  --z-skip: 90;

  /* ---------------------------------------------------------------------
     LAYER 3 — COMPONENT TOKENS
     --------------------------------------------------------------------- */

  /* Button */
  --btn-min-height: 48px;   /* >= 44px tap target (G14) */
  --btn-pad-y: 0.8rem;
  --btn-pad-x: 1.5rem;
  --btn-radius: var(--radius-pill);
  /* Small variant, used for the header CTA. A pill needs more side padding
     than a rectangle to look balanced. */
  --btn-sm-min-height: 44px;
  --btn-sm-pad-y: 0.5rem;
  --btn-sm-pad-x: 1.25rem;
  --btn-font: var(--font-body);
  --btn-weight: var(--weight-semibold);

  --btn-primary-bg: var(--color-accent);
  --btn-primary-fg: var(--color-on-accent);
  --btn-primary-bg-hover: var(--color-accent-hover);

  --btn-secondary-bg: transparent;
  --btn-secondary-fg: var(--color-primary-strong);
  --btn-secondary-border: 1.5px solid var(--color-primary);
  --btn-secondary-bg-hover: var(--sage-100);

  --btn-inverse-bg: var(--stone-000);
  --btn-inverse-fg: var(--forest-800);

  /* Card */
  --card-bg: var(--color-surface);
  --card-border: var(--border-hairline);
  --card-radius: var(--radius-lg);
  --card-pad: clamp(1.5rem, 3vw, 2.25rem);
  --card-shadow: var(--shadow-sm);
  --card-shadow-hover: var(--shadow-md);

  /* Header */
  --header-height: 76px;
  --header-bg: rgba(247, 245, 240, 0.92);
  --header-border: var(--border-hairline);

  /* Form controls */
  --field-min-height: 48px;
  --field-bg: var(--color-surface);
  --field-border: 1.5px solid var(--color-border-strong);
  --field-border-focus: 1.5px solid var(--color-primary);
  --field-radius: var(--radius-md);
  --field-pad-x: 0.875rem;
  --label-weight: var(--weight-semibold);

  /* Legal / compliance notice block */
  --notice-bg: var(--color-notice-bg);
  --notice-border-width: 3px;
  --notice-pad: var(--space-5);

  /* Eyebrow / kicker label */
  --eyebrow-size: var(--text-sm);
  --eyebrow-tracking: var(--tracking-wide);
  --eyebrow-weight: var(--weight-semibold);
  --eyebrow-color: var(--color-primary);
}

/* ==========================================================================
   CounselorBrandy.com — layout, components, responsive behavior.
   Every value references a token from tokens.css. No raw hex lives here.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--color-surface-sunken); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p  { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

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

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }
strong { font-weight: var(--weight-semibold); }
hr { border: 0; border-top: var(--border-hairline); margin: var(--space-7) 0; }

/* ---------- Skip link ---------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  z-index: var(--z-skip);
  background: var(--color-primary-strong); color: var(--color-on-primary);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  text-decoration: none; font-weight: var(--weight-semibold);
}
.skip-link:focus { top: var(--space-4); color: var(--color-on-primary); }

/* ---------- Shell -------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-narrow { max-width: var(--container-narrow); }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: var(--header-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--color-text); flex-shrink: 0;
}
.brand-mark { width: 30px; height: 35px; fill: var(--color-primary); flex: none; }
.brand-mark-lg { width: 40px; height: 47px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 1.2rem; letter-spacing: var(--tracking-tight);
}
.brand-sub { font-size: var(--text-xs); color: var(--color-text-muted); }

.site-nav ul {
  display: flex; align-items: center; gap: var(--space-5);
  list-style: none; margin: 0; padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a:not(.btn) {
  color: var(--color-text); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  padding: var(--space-3) 0; display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.site-nav a:not(.btn):hover { color: var(--color-primary-strong); border-bottom-color: var(--color-border-strong); }
.site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--color-accent); }
/* The nav CTA is a button, not a nav link: `:not(.btn)` above keeps the nav
   link rules off it so .btn / .btn-sm apply cleanly. */

.nav-toggle {
  display: none; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-3);
  background: transparent; border: var(--border-hairline); border-radius: var(--radius-md);
  font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--color-text); cursor: pointer;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bars span { height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--btn-min-height);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  font-family: var(--btn-font); font-weight: var(--btn-weight);
  font-size: var(--text-base); line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0;
  text-align: center;
  transition: background-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-sm {
  min-height: var(--btn-sm-min-height);
  padding: var(--btn-sm-pad-y) var(--btn-sm-pad-x);
  font-size: var(--text-sm);
}
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); color: var(--btn-primary-fg); }
.btn-secondary {
  background: var(--btn-secondary-bg); color: var(--btn-secondary-fg);
  border: var(--btn-secondary-border);
}
.btn-secondary:hover { background: var(--btn-secondary-bg-hover); color: var(--btn-secondary-fg); }
.btn-inverse { background: var(--btn-inverse-bg); color: var(--btn-inverse-fg); }
.btn-inverse:hover { background: var(--sage-200); color: var(--btn-inverse-fg); }

/* ---------- Breadcrumbs -------------------------------------------------- */
.breadcrumbs { padding-top: var(--space-5); font-size: var(--text-sm); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; color: var(--color-text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--color-border-strong); }
.breadcrumbs a { color: var(--color-text-muted); }

/* ---------- Hero --------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-inner { display: grid; gap: var(--space-7); align-items: center; }
.hero-split .hero-inner { grid-template-columns: 1fr; }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lede {
  font-size: var(--text-lg); color: var(--color-text-muted);
  max-width: var(--measure-narrow); line-height: var(--leading-relaxed);
}
.hero .lede p { margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-note {
  margin-top: var(--space-5); font-size: var(--text-sm);
  color: var(--color-text-muted); max-width: var(--measure-narrow);
}
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2; object-fit: cover; width: 100%;
}
.hero-plain { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- Sections ----------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--color-bg-alt); }
.section-surface { background: var(--color-surface); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-title { max-width: 24ch; }
.section-lede {
  font-size: var(--text-lg); color: var(--color-text-muted);
  max-width: var(--measure-narrow); margin-bottom: var(--space-7);
  line-height: var(--leading-relaxed);
}
.eyebrow {
  font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-tracking);
  font-weight: var(--eyebrow-weight); text-transform: uppercase;
  color: var(--eyebrow-color); margin: 0 0 var(--space-3);
}

/* ---------- Prose -------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); font-size: var(--text-2xl); }
.prose h3 { margin-top: var(--space-6); font-size: var(--text-lg); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li { line-height: var(--leading-relaxed); }
.prose blockquote {
  margin: var(--space-6) 0; padding-left: var(--space-5);
  border-left: 3px solid var(--color-border-strong);
  font-style: italic; color: var(--color-text-muted);
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table-wrap { overflow-x: auto; margin-block: var(--space-5); }
.prose th, .prose td {
  text-align: left; padding: var(--space-3); border-bottom: var(--border-hairline);
  vertical-align: top;
}
.prose th { font-weight: var(--weight-semibold); background: var(--color-bg-alt); }

/* ---------- Cards -------------------------------------------------------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.cards-2 { grid-template-columns: 1fr; }
.cards-3 { grid-template-columns: 1fr; }
.card {
  margin: 0; background: var(--card-bg); border: var(--card-border);
  border-radius: var(--card-radius); padding: var(--card-pad);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { box-shadow: var(--card-shadow-hover); }
.card h3 { margin-bottom: var(--space-3); font-size: var(--text-lg); }
.card h3 a { color: var(--color-text); text-decoration: none; }
.card h3 a:hover { color: var(--color-primary-strong); text-decoration: underline; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card-cta { margin-top: var(--space-4) !important; font-weight: var(--weight-semibold); }
.card-cta a { text-decoration: none; }
.card-cta a:hover { text-decoration: underline; }
.icon { width: 26px; height: 26px; fill: var(--color-primary); margin-bottom: var(--space-4); }

/* ---------- Steps -------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); margin: 0; }
.step-num {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  background: var(--color-primary); color: var(--color-on-primary);
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: var(--text-lg); flex: none;
}
.step-body h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.step-body p { color: var(--color-text-muted); }
.step-meta {
  margin-top: var(--space-2) !important; font-size: var(--text-sm);
  color: var(--color-primary-strong); font-weight: var(--weight-semibold);
}

/* ---------- Notice ------------------------------------------------------- */
.notice {
  margin-block: var(--space-6); padding: var(--notice-pad);
  border-left: var(--notice-border-width) solid var(--color-primary);
  background: var(--color-surface); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: var(--measure);
}
.notice-warn { border-left-color: var(--color-danger); }
.notice-note { border-left-color: var(--color-notice-border); background: var(--notice-bg); }
.notice-title { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.notice-body ul { padding-left: var(--space-5); margin-bottom: 0; }
.notice-body li { color: var(--color-text-muted); }
.notice-body li strong { color: var(--color-text); }
.notice-cite {
  margin-top: var(--space-4); font-size: var(--text-sm);
  color: var(--color-text-muted); border-top: var(--border-hairline);
  padding-top: var(--space-3);
}

/* ---------- FAQ ---------------------------------------------------------- */
.faq { max-width: var(--measure); border-top: var(--border-hairline); }
.faq-item { border-bottom: var(--border-hairline); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: var(--space-5) var(--space-6) var(--space-5) 0;
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: var(--weight-semibold); position: relative; min-height: 44px;
  display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: var(--space-2); top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg); transition: transform var(--dur-base) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--color-primary-strong); }
.faq-answer { padding-bottom: var(--space-5); color: var(--color-text-muted); max-width: var(--measure); }
.faq-answer > * + * { margin-top: var(--space-3); }

/* ---------- Stats -------------------------------------------------------- */
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5);
  border-top: var(--border-hairline); padding-top: var(--space-6);
}
.stats li { margin: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.stat-figure {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: var(--weight-semibold); color: var(--color-primary-strong);
  line-height: 1;
}
.stat-label { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Quotes ------------------------------------------------------- */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.quotes-3 { grid-template-columns: 1fr; }
.quote {
  margin: 0; background: var(--color-surface); border: var(--border-hairline);
  border-radius: var(--card-radius); padding: var(--card-pad);
}
.quote blockquote { margin: 0 0 var(--space-4); }
.quote blockquote p {
  font-family: var(--font-display); font-size: var(--text-lg);
  line-height: var(--leading-snug); margin: 0;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote-by { display: flex; flex-direction: column; margin: 0; font-size: var(--text-sm); }
.quote-name { font-weight: var(--weight-semibold); }
.quote-cred { color: var(--color-text-muted); }

/* ---------- Figure ------------------------------------------------------- */
.figure { margin: var(--space-7) 0; }
.figure img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure figcaption {
  margin-top: var(--space-3); font-size: var(--text-sm);
  color: var(--color-text-muted); max-width: var(--measure);
}

/* ---------- CTA band ----------------------------------------------------- */
.cta-band { background: var(--color-bg-inverse); color: var(--color-text-on-dark); padding-block: var(--section-y); }
.cta-inner { display: grid; gap: var(--space-6); align-items: center; }
.cta-band h2 { color: var(--color-text-on-dark); margin-bottom: var(--space-3); }
.cta-band p { color: var(--color-text-on-dark-muted); max-width: 52ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.cta-phone { color: var(--color-text-on-dark-muted); font-weight: var(--weight-semibold); white-space: nowrap; }
.cta-phone:hover { color: var(--color-text-on-dark); }

/* ---------- Contact / forms ---------------------------------------------- */
.field { display: block; margin-bottom: var(--space-5); max-width: 36rem; }
.field > span { display: block; font-weight: var(--label-weight); margin-bottom: var(--space-2); }
.field .hint { font-weight: var(--weight-regular); color: var(--color-text-muted); font-size: var(--text-sm); }
.field input, .field textarea, .field select {
  width: 100%; min-height: var(--field-min-height);
  padding: var(--space-3) var(--field-pad-x);
  background: var(--field-bg); border: var(--field-border);
  border-radius: var(--field-radius);
  font: inherit; color: var(--color-text);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { border: var(--field-border-focus); }

.contact-grid { display: grid; gap: var(--space-7); align-items: start; }
.contact-direct {
  background: var(--color-surface); border: var(--border-hairline);
  border-radius: var(--card-radius); padding: var(--card-pad);
}
.contact-direct dl { margin: 0; }
.contact-direct dt {
  font-size: var(--text-sm); text-transform: uppercase;
  letter-spacing: var(--tracking-wide); color: var(--color-text-muted);
  margin-top: var(--space-5);
}
.contact-direct dt:first-child { margin-top: 0; }
.contact-direct dd {
  margin: var(--space-1) 0 0; font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}
.contact-direct dd a { text-decoration: none; }
.contact-direct dd a:hover { text-decoration: underline; }

/* ---------- Checklist ---------------------------------------------------- */
.checklist { list-style: none; padding: 0; max-width: var(--measure); }
.checklist li {
  position: relative; padding-left: var(--space-6); margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 11px; height: 6px; border-left: 2.5px solid var(--color-primary);
  border-bottom: 2.5px solid var(--color-primary); transform: rotate(-45deg);
}
.checklist-x li::before {
  width: 12px; height: 12px; top: 0.42em; transform: none;
  border: 0; background:
    linear-gradient(to bottom right, transparent 44%, var(--color-danger) 44%, var(--color-danger) 56%, transparent 56%),
    linear-gradient(to top right, transparent 44%, var(--color-danger) 44%, var(--color-danger) 56%, transparent 56%);
}

/* ---------- Local links -------------------------------------------------- */
.pill-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill-links li { margin: 0; }
.pill-links a {
  display: inline-block; padding: var(--space-2) var(--space-4);
  min-height: 40px; line-height: 24px;
  background: var(--color-surface); border: var(--border-hairline);
  border-radius: var(--radius-pill); text-decoration: none;
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.pill-links a:hover { border-color: var(--color-primary); color: var(--color-primary-strong); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-inverse); color: var(--color-text-on-dark-muted);
  padding-block: var(--space-8) var(--space-6); margin-bottom: 64px;
}
.footer-top { display: grid; gap: var(--space-7); }
.footer-brand .brand-mark { fill: var(--color-text-on-dark); margin-bottom: var(--space-4); }
.footer-name {
  font-family: var(--font-display); font-size: var(--text-lg);
  color: var(--color-text-on-dark); margin-bottom: var(--space-2);
}
.footer-license { font-size: var(--text-sm); margin-bottom: var(--space-4); }
.footer-contact { margin-bottom: var(--space-4); line-height: 1.9; }
.footer-contact a { color: var(--color-text-on-dark); font-weight: var(--weight-semibold); }
.footer-meta { font-size: var(--text-sm); }
.footer-heading {
  font-family: var(--font-body); font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--color-text-on-dark); margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--space-3); }
.footer-col a { color: var(--color-text-on-dark-muted); text-decoration: none; font-size: var(--text-sm); }
.footer-col a:hover { color: var(--color-text-on-dark); text-decoration: underline; }
.footer-legal {
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid var(--color-primary);
  font-size: var(--text-sm); max-width: var(--measure);
}
.footer-legal a { color: var(--color-text-on-dark); }
.footer-fine { margin-top: var(--space-5); font-size: var(--text-xs); }

/* ---------- Sticky mobile contact bar ------------------------------------ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  display: flex; gap: 1px; background: var(--color-border);
  border-top: var(--border-hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 56px; text-decoration: none;
  font-weight: var(--weight-semibold); font-size: var(--text-base);
}
.mobile-bar-call { background: var(--color-primary-strong); color: var(--color-on-primary); }
.mobile-bar-call:hover { color: var(--color-on-primary); }
.mobile-bar-call svg { width: 20px; height: 20px; fill: currentColor; }
.mobile-bar-start { background: var(--color-accent); color: var(--color-on-accent); flex: 0 0 34%; }
.mobile-bar-start:hover { color: var(--color-on-accent); }

/* ==========================================================================
   Responsive — mobile first above, enhancements below.
   ========================================================================== */

@media (max-width: 859px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-bg); border-bottom: var(--border-hairline);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-3) var(--gutter) var(--space-5); }
  .site-nav li { border-bottom: var(--border-hairline); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a:not(.btn) { display: block; padding: var(--space-4) 0; border-bottom: 0; font-size: var(--text-base); }
  .site-nav a:not(.btn)[aria-current="page"] { border-bottom: 0; color: var(--color-primary-strong); }
  .nav-cta { margin-top: var(--space-4); }
  .nav-cta a { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
}

@media (min-width: 560px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 860px) {
  .site-footer { margin-bottom: 0; }
  .mobile-bar { display: none; }
  .hero-split .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .quotes-3 { grid-template-columns: repeat(3, 1fr); }
  .steps-2col { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1.4fr auto; }
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; }
  .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); gap: var(--space-6); }
}

/* ---------- Motion ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print -------------------------------------------------------- */
@media print {
  .site-header, .mobile-bar, .cta-band, .nav-toggle { display: none !important; }
  body { background: var(--color-surface); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
