/* ==========================================================================
   Aghabegian Law Group — Marketing Site
   Design System: Warm Ivory + Ink
   Two-anchor color rule. Serif H + sans body + mono numerics.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Warm ivory + ink — strip sections lean off-white, not deeper beige */
  --color-bg: #f1ece3;            /* page ivory — base canvas */
  --color-bg-soft: #ffffff;       /* pure white strip */
  --color-bg-cream: #fbfaf6;      /* barely-warm white strip */
  --color-bg-taupe: #e6dcc7;      /* warm beige — punch strip */
  --color-bg-beige: #ddd0b6;      /* deeper beige — strong visual break */
  --color-ink: #1a1614;           /* warm near-black */
  --color-ink-soft: #2a2421;      /* slightly lighter ink for body */
  --color-ink-muted: rgba(26, 22, 20, 0.62);
  --color-ink-faint: rgba(26, 22, 20, 0.38);
  --color-rule: rgba(26, 22, 20, 0.16);
  --color-rule-soft: rgba(26, 22, 20, 0.08);
  --color-form-bg: #ffffff;
  --color-welcome-bg: rgba(122, 94, 74, 0.05);
  --color-accent: rgba(122, 94, 74, 1);   /* warm taupe */
  --color-accent-soft: rgba(122, 94, 74, 0.14);
  --color-accent-deep: #7a5e4a;
  --color-success: #1a1614;
  --color-warning: rgba(140, 70, 60, 1);

  --font-serif: ui-serif, Georgia, "Times New Roman", "Source Serif Pro", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, "SF Mono", monospace;

  --r-pill: 999px;
  --r-card: 12px;
  --r-button: 10px;
  --r-input: 8px;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lift: 0 10px 30px rgba(0,0,0,0.10);

  --t: 0.18s ease;

  --container: 1200px;
  --container-narrow: 720px;
  --container-prose: 760px;
}

/* ---------- Reset ---------- */
*, *::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-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t), color var(--t);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-ink); text-decoration: none; border-bottom: 1px solid var(--color-rule); transition: border-color var(--t), color var(--t); }
a:hover { border-bottom-color: var(--color-ink); }
a.plain, nav a, footer a, .btn, .pill, .nav-link, .icon-btn { border-bottom: none; }
nav a:hover, footer a:hover { color: var(--color-accent); }
hr { border: none; border-top: 1px solid var(--color-rule); margin: 2rem 0; }

/* Focus rings — visible, on-brand */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.6em;
  color: var(--color-ink);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2rem; }
h3 { font-size: 1.25rem; margin-top: 1.6rem; }
h4 { font-size: 1.05rem; margin-top: 1.4rem; }
p  { margin: 0 0 1rem; }
strong { font-weight: 700; }
small, .small { font-size: 0.875rem; color: var(--color-ink-muted); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-ink-muted);
  display: inline-block;
  margin-bottom: 0.6rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
  line-height: 1.55;
  max-width: 60ch;
}

ul, ol { padding-left: 1.2rem; margin: 0 0 1rem; }
ul li, ol li { margin: 0.35rem 0; }
ul.clean, ol.clean { list-style: none; padding-left: 0; }

blockquote {
  margin: 1.5rem 0;
  padding: 0.6rem 0 0.6rem 1.2rem;
  border-left: 3px solid var(--color-ink);
  color: var(--color-ink-muted);
  font-style: italic;
}

.mono { font-family: var(--font-mono); font-size: 0.92em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.container-prose { width: 100%; max-width: var(--container-prose); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-head { margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.section-tinted { background: var(--color-welcome-bg); }
.section-cream { background: var(--color-bg-cream); }
.section-taupe { background: var(--color-bg-taupe); }
.section-soft  { background: var(--color-bg-soft); }
.section-beige { background: var(--color-bg-beige); }
/* Subtle paper grain — only in light mode */
.section-grain {
  background-color: var(--color-bg-cream);
  background-image:
    radial-gradient(rgba(122,94,74,0.05) 1px, transparent 1px),
    radial-gradient(rgba(122,94,74,0.04) 1px, transparent 1px);
  background-size: 22px 22px, 13px 13px;
  background-position: 0 0, 11px 7px;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: 0.85rem; }
.stack-lg > * + * { margin-top: 1.5rem; }

.flex { display: flex; gap: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flex-center { display: flex; align-items: center; gap: 0.75rem; }
.flex-wrap { flex-wrap: wrap; }

.muted { color: var(--color-ink-muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-rule);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  border-bottom: none;
  line-height: 0;
  flex-shrink: 0;        /* never let the nav crush the brand */
}
.brand-logo {
  height: 52px;
  width: auto;
  max-width: none;       /* override global img max-width:100% so the logo can't get squished */
  display: block;
  flex-shrink: 0;
  transition: filter var(--t);
}
.site-header { /* give the wider wordmark room to breathe */ }
.site-header-inner { height: 80px; }
.site-footer .brand-logo { height: 64px; }
@media (max-width: 540px) {
  .brand-logo { height: 42px; }
  .site-header-inner { height: 70px; }
}

.primary-nav { display: flex; align-items: center; gap: 0.4rem; }
.primary-nav .nav-link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-ink);
  border-radius: 8px;
  transition: background var(--t), color var(--t);
}
.primary-nav .nav-link:hover { background: var(--color-rule-soft); color: var(--color-ink); }
.primary-nav .nav-link[aria-current="page"] { background: var(--color-ink); color: var(--color-bg); }
.primary-nav .nav-link[aria-haspopup="true"]::after {
  content: "";
  display: inline-block; vertical-align: middle;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.45rem; opacity: 0.7;
}

.nav-cta { display: flex; align-items: center; gap: 0.5rem; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  width: min(820px, 92vw);
  background: var(--color-form-bg);
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  padding: 1.4rem;
  display: none;
  z-index: 60;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem 1.4rem; }
.mega .mega-col h4 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-ink-muted);
  font-weight: 700;
}
.mega a {
  display: block;
  padding: 0.32rem 0;
  font-size: 0.92rem;
  color: var(--color-ink);
  border-bottom: none;
}
.mega a:hover { color: var(--color-accent); }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-button);
  border: 1px solid var(--color-rule);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mega { position: static; width: 100%; box-shadow: none; border: 1px solid var(--color-rule); margin-top: 0.5rem; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile header CTA tightening (V2.1.32) ----------
   On phones, the two text buttons + hamburger overflow the header.
   Hide the "Free Consultation" CTA (it's in the hamburger menu anyway)
   and collapse the phone button into a 44px icon. The original phone
   number text stays in the DOM for screen readers — it's just hidden
   visually with font-size:0 and color:transparent.
*/
@media (max-width: 720px) {
  .nav-cta a.btn-primary[href*="contact-us"] { display: none; }

  .nav-cta a.btn-secondary[href^="tel:"] {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    color: transparent;
    border-radius: var(--r-button);
    flex-shrink: 0;
    position: relative;
  }
  .nav-cta a.btn-secondary[href^="tel:"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1614' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: center;
  }
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-rule);
  background: var(--color-bg);
  padding: 1rem 1.5rem 1.4rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-rule-soft);
}
.mobile-nav details { margin: 0.4rem 0; }
.mobile-nav details summary { padding: 0.6rem 0; cursor: pointer; font-weight: 600; list-style: none; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details summary::after { content: "+"; float: right; opacity: 0.6; }
.mobile-nav details[open] summary::after { content: "−"; }
.mobile-nav .sub a { padding-left: 1rem; font-size: 0.94rem; color: var(--color-ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  border-radius: var(--r-button);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
}
.btn-secondary:hover { border-color: var(--color-ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: none;
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover { color: var(--color-accent); }

/* Urgent CTA — warm caramel-beige fill on ink. Used for "Call us now" prompts. */
.btn-urgent {
  background: var(--color-accent-beige, #cba27a);
  color: var(--color-ink);
  border: 1px solid transparent;
}
.btn-urgent:hover {
  background: #d8b289;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: progress; transform: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-button);
  border: 1px solid var(--color-rule);
  background: var(--color-form-bg);
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--t), border-color var(--t);
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--color-ink); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-form-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--t), box-shadow var(--t);
}
.card.tight { padding: 1.1rem; }
.card.lift:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.card .card-divider { border-top: 1px dashed var(--color-rule); margin: 1.1rem 0; }

/* ---------- Pills / Tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-rule-soft);
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
}
.pill.urgent { background: rgba(140, 70, 60, 0.10); color: var(--color-warning); border-color: rgba(140, 70, 60, 0.30); }
.pill.accent { background: var(--color-accent-soft); color: var(--color-ink); border-color: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--color-rule);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
}
.hero h1 { margin-bottom: 1rem; }
.hero .hero-sub { font-size: 1.2rem; color: var(--color-ink-muted); max-width: 60ch; line-height: 1.55; }
.hero .hero-cta { margin-top: 1.6rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero.compact { padding: 3rem 0 2rem; }

/* Hero with inline form (mirrors old site's right-rail consultation form) */
.hero-split {
  position: relative;
  padding: 4.5rem 0 3rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
  border-bottom: 1px solid var(--color-rule);
  overflow: hidden;
  isolation: isolate;
}
/* Background video — sits behind everything */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  /* Sharper image, punchier color — let the police lights pop */
  filter: saturate(1.35) contrast(1.08) brightness(1.02);
  transform: scale(1.01);
}
/* Warm dark overlay — lets the police lights pop, gives the headline a clean dark canvas.
   Bottom fades back into the cream "Why hire" section to mask the dark/light seam. */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* Left-side ink wash for headline legibility, lighter on the right where the form sits */
    linear-gradient(90deg, rgba(20,16,14,0.72) 0%, rgba(20,16,14,0.55) 55%, rgba(20,16,14,0.42) 100%),
    /* Vignette top + bottom for cinematic depth + smooth handoff to cream section below */
    linear-gradient(180deg, rgba(20,16,14,0.30) 0%, rgba(20,16,14,0.00) 35%, rgba(236,228,212,0.85) 100%);
}
/* Tighten the form card so it pops against the video */
.hero-split .hero-form {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(26,22,20,0.12);
  box-shadow: 0 12px 36px rgba(26,22,20,0.10);
}
/* Hero text reads on the dark overlay — flipped to ivory just inside .hero-split */
.hero-split h1 { color: #f6f1e8; text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.hero-split .hero-sub,
.hero-split .small { color: rgba(246,241,232,0.88); text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.hero-split .eyebrow { color: rgba(246,241,232,0.78); }
/* Secondary phone button needs lighter border on the dark hero — only inside the left column, not the form */
.hero-split-inner > div:first-child .btn-secondary {
  color: #f6f1e8;
  border-color: rgba(246,241,232,0.45);
  background: rgba(20,16,14,0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero-split-inner > div:first-child .btn-secondary:hover {
  border-color: #f6f1e8;
  background: rgba(20,16,14,0.32);
}
/* Primary CTA inverts to ivory on dark for stronger contrast */
.hero-split-inner > div:first-child .btn-primary {
  background: #f6f1e8;
  color: #1a1614;
}
.hero-split-inner > div:first-child .btn-primary:hover {
  background: #ffffff;
}
/* Respect motion preferences — show poster instead of playing */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
  .hero-split {
    background-image:
      linear-gradient(90deg, rgba(241,236,227,0.55) 0%, rgba(241,236,227,0.85) 100%),
      url("/web/assets/video/hero-towing-poster.jpg");
    background-size: cover;
    background-position: center;
  }
}
/* Mobile — overlay needs more wash because the form sits below, not beside, the headline */
@media (max-width: 980px) {
  .hero-bg-overlay {
    background:
      linear-gradient(180deg, rgba(20,16,14,0.45) 0%, rgba(20,16,14,0.55) 50%, rgba(20,16,14,0.65) 100%);
  }
}

/* ---------- Minimalist hero (single-column, big headline, one CTA) ---------- */
.hero-min {
  position: relative;
  padding: 4rem 0 3.5rem;     /* content-driven height; previously 78vh + 8rem padding */
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: none;
  background: var(--color-ink);
}
.hero-min .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  /* Slight blur + warm darkening so headline text has a calm canvas */
  filter: blur(3px) saturate(1.15) contrast(1.05) brightness(0.78);
  transform: scale(1.04);   /* hide blur edge */
}
.hero-min .hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,16,14,0.45) 0%, rgba(20,16,14,0.32) 35%, rgba(20,16,14,0.65) 100%);
}

/* Split hero — form on the left, headline/CTA pinned right */
.hero-min-split { padding: 3.25rem 0 3rem; }   /* tight to the form/text bounds */
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  gap: 3rem;
  align-items: center;
}
/* Dark glassmorphism intake card — sits on the blurred hero video */
.hero-split-grid .hero-form {
  background:
    linear-gradient(180deg, rgba(20,16,14,0.40) 0%, rgba(20,16,14,0.55) 100%);
  border: 1px solid rgba(246,241,232,0.18);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(246,241,232,0.10);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-radius: var(--r-card);
  padding: 1.6rem 1.5rem;
  color: #f6f1e8;
}
.hero-split-grid .hero-form h3 { color: #f6f1e8; margin-bottom: .35rem; }
.hero-split-grid .hero-form .helper-row { color: rgba(246,241,232,0.72); margin-bottom: 1rem; }
.hero-split-grid .hero-form .helper-row::before { background: var(--color-accent); }
.hero-split-grid .hero-form .field label {
  color: rgba(246,241,232,0.62);
}
.hero-split-grid .hero-form .field input,
.hero-split-grid .hero-form .field textarea {
  background: rgba(246,241,232,0.06);
  border: 1px solid rgba(246,241,232,0.18);
  color: #f6f1e8;
  caret-color: #f6f1e8;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.hero-split-grid .hero-form .field input::placeholder,
.hero-split-grid .hero-form .field textarea::placeholder {
  color: rgba(246,241,232,0.42);
}
.hero-split-grid .hero-form .field input:focus,
.hero-split-grid .hero-form .field textarea:focus {
  background: rgba(246,241,232,0.10);
  border-color: rgba(246,241,232,0.55);
  box-shadow: 0 0 0 2px rgba(246,241,232,0.18);
  outline: none;
}
.hero-split-grid .hero-form .btn-primary {
  background: #f6f1e8;
  color: var(--color-ink);
}
.hero-split-grid .hero-form .btn-primary:hover { background: #ffffff; }
.hero-split-grid .hero-form .fineprint { color: rgba(246,241,232,0.55); }
.hero-split-grid .hero-min-inner {
  /* Right-side text column inherits the right-aligned typography rules below. */
  max-width: 720px;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}
@media (max-width: 980px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-split-grid .hero-min-inner { text-align: left; max-width: none; margin: 0; }
  .hero-split-grid .hero-min-cta { justify-content: flex-start; }
  .hero-min h1 { text-wrap: balance; }
  /* Mobile order: brand/headline + buttons first, form last (V2.1.31) */
  .hero-split-grid .hero-min-inner { order: 1; }
  .hero-split-grid .hero-form      { order: 2; }
}
.hero-min-inner {
  max-width: 760px;        /* sized so the H1 wraps to two balanced lines */
  margin-left: auto;       /* anchor the whole block to the right edge */
  margin-right: 0;
  text-align: right;
}
.hero-min .eyebrow,
.hero-min h1,
.hero-min-sub,
.hero-min-cta { width: 100%; }                /* every element shares the same right edge */
.hero-min-cta { display: flex; justify-content: flex-end; }
.hero-min h1 {
  color: #f6f1e8;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  margin: 1rem 0 2rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
  font-weight: 700;
  text-wrap: balance;       /* even line lengths */
}
.hero-min h1 .hl-amp { color: rgba(246,241,232,0.55); font-weight: 400; padding: 0 .15em; }
.hero-min h1 .hl-italic { font-style: italic; font-weight: 400; }
.eyebrow-light { color: rgba(246,241,232,0.78) !important; }

.hero-min-sub {
  color: rgba(246,241,232,0.85);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  margin: 0 0 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.hero-min-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; letter-spacing: 0.02em; }
.btn-ghost-light {
  background: transparent;
  color: #f6f1e8;
  border: 1px solid rgba(246,241,232,0.45);
}
.btn-ghost-light:hover { border-color: #f6f1e8; background: rgba(20,16,14,0.18); transform: translateY(-1px); }

/* Hero-text-column primary CTA — warm beige fill so it doesn't blend into the dark video */
.hero-min-inner .btn-primary {
  background: var(--color-accent-beige, #cba27a);
  color: var(--color-ink);
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.hero-min-inner .btn-primary:hover {
  background: #d8b289;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}
@media (max-width: 720px) {
  .hero-min { padding: 3rem 0 2.5rem; }
  .hero-min h1 { font-size: clamp(2rem, 9vw, 3rem); }
}

/* ---------- Results strip (horizontal scroller of result tiles) ---------- */
.section-results { background: var(--color-bg-soft); }
.results-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1.5rem;
  padding: 0.5rem 1.5rem;
  margin: 0 -1.5rem;
  scrollbar-width: thin;
}
.results-strip::-webkit-scrollbar { height: 6px; }
.results-strip::-webkit-scrollbar-thumb { background: var(--color-rule); border-radius: 3px; }
@media (min-width: 900px) {
  .results-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    padding: 0;
    margin: 0;
  }
}
.result-tile {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 1.5rem 1.4rem 1.4rem;
  background: var(--color-form-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-rule);
  text-decoration: none;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.result-tile:hover { transform: translateY(-2px); border-color: var(--color-ink); box-shadow: var(--shadow-lift); }
.rt-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--color-accent-deep);
  margin-bottom: 1rem;
}
.rt-amount {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.65rem;
  line-height: 1;
}
.rt-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
  margin: 0;
}

/* ---------- About split (video/visual + copy) ---------- */
.section-about { background: var(--color-bg); }
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 2rem; } }
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--color-ink);
  box-shadow: var(--shadow-card);
}
.about-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}
.about-copy p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.1rem; }
.about-copy p:first-child { font-size: 1.18rem; line-height: 1.55; color: var(--color-ink); font-family: var(--font-serif); font-weight: 500; }
.about-copy .btn { margin-top: 1.4rem; }

/* ---------- Quote slider — auto-advancing testimonials ---------- */
.section-quote { background: var(--color-bg-taupe); padding: 6rem 0; }
.quote-slider {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.quote-track {
  position: relative;
  min-height: 240px;        /* prevents layout jump as slides swap */
}
.quote-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.quote-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;       /* the active slide also drives the wrapper height */
}
.quote-slide blockquote {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--color-ink);
  letter-spacing: -0.005em;
}
.quote-slide blockquote::before { content: "\201C"; font-size: 1.4em; line-height: 0.4; vertical-align: -0.3em; opacity: 0.45; margin-right: 0.05em; }
.quote-slide blockquote::after  { content: "\201D"; font-size: 1.4em; line-height: 0; vertical-align: -0.4em; opacity: 0.45; margin-left: 0.05em; }
.quote-slide figcaption {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  font-weight: 600;
}
.quote-slide figcaption span { color: var(--color-ink-muted); font-weight: 400; }

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
}
.quote-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(26,22,20,0.45);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.quote-dot:hover { border-color: var(--color-ink); }
.quote-dot.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  transform: scale(1.15);
}
@media (prefers-reduced-motion: reduce) {
  .quote-slide { transition: none; }
}

/* ---------- CTA band — simpler stacked layout ---------- */
.cta-band .cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.cta-band .cta-inner h2 { margin: 0; max-width: 24ch; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band .cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Stats banner (intro to Our Results) ----------
   Warm dark grey — same weight as before, none of the funeral-black harshness. */
.stats-banner {
  background: #262727;       /* neutral dark grey — softer than #1a1614, no warm/brown cast */
  color: var(--color-bg);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.stats-banner-head,
.stats-banner-foot {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stats-banner-foot { margin: 2.5rem 0 0; }
.stats-banner-head h2,
.stats-banner-foot p {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-bg);
}
.stats-rule {
  display: block;
  flex: 1;
  height: 1px;
  background: rgba(241, 236, 227, 0.32);
}
/* Three equal cells, vertical hairline dividers via border-left on cells 2 & 3 */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;   /* middle cell takes a touch more room */
  align-items: center;
  padding: 2rem 0 1rem;
}
.stat-cell {
  position: relative;
  padding: 0.6rem 2rem;
  text-align: center;
}
.stat-cell + .stat-cell { border-left: 1px solid rgba(241, 236, 227, 0.22); }
.stat-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 .65rem;
  color: var(--color-bg);
  white-space: nowrap;
}
.stat-cell-lg .stat-num {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  letter-spacing: -0.025em;
  color: var(--color-accent-beige);
}

/* Warm accent tones */
:root {
  --color-accent-beige: #cba27a;   /* warm caramel beige */
  --color-accent-bronze: #8a5e3c;  /* deeper warm bronze */
}
.accent-beige { color: var(--color-accent-beige); }

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(241, 236, 227, 0.72);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: 1fr; gap: 1.6rem; padding-bottom: 0; }
  .stat-cell { padding: 0.4rem 0; }
  .stat-cell + .stat-cell { border-left: none; border-top: 1px solid rgba(241, 236, 227, 0.18); padding-top: 1.4rem; }
}
.stats-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(241,236,227,0.6);
  margin: 1.6rem 0 0;
}

/* ---------- Marquee — infinite seamless scroll for the result tiles ---------- */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft mask at the edges so cards don't pop in/out abruptly */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  padding: 1rem 0 1.5rem;
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  /* Animate -50% because the children are duplicated — a 50% shift = exactly one set */
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* Override result-tile for marquee context — fixed width, no grid behavior */
.marquee .result-tile {
  flex: 0 0 320px;
  width: 320px;
  min-height: 220px;
}
@media (max-width: 600px) {
  .marquee .result-tile { flex-basis: 260px; width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
.section-results { padding-bottom: 4rem; }
.section-results .section-head { text-align: center; margin-bottom: 0; padding-top: .5rem; }
.hero-split-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 980px) {
  .hero-split-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.hero-form {
  background: var(--color-form-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.hero-form h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-family: var(--font-serif);
}
.hero-form .helper-row { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--color-ink-muted); margin-bottom: 1rem; }
.hero-form .helper-row::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent-deep);
}
.hero-form .field { margin-bottom: .75rem; }
.hero-form .field label { font-size: .68rem; }
.hero-form .field input, .hero-form .field textarea { padding: .65rem .8rem; font-size: .95rem; }
.hero-form .field textarea { min-height: 84px; }
.hero-form .btn { width: 100%; }
.hero-form .fineprint { font-size: .75rem; color: var(--color-ink-muted); margin: .75rem 0 0; line-height: 1.45; }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-rule);
}

/* Why Hire Us — 4 highlight cards (mirrors old "Why Hire" section) */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
@media (max-width: 900px) { .highlight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .highlight-grid { grid-template-columns: 1fr; } }
.highlight {
  background: var(--color-form-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  padding: 1.5rem 1.25rem;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform var(--t), box-shadow var(--t);
}
.highlight:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.highlight .h-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0 0 .35rem;
  line-height: 1.05;
}
.highlight .h-title {
  font-size: .94rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0;
}
.highlight .h-meta {
  font-size: .78rem;
  color: var(--color-ink-muted);
  margin: .35rem 0 0;
  line-height: 1.45;
}

/* Recent victories — case-result cards in a tight grid */
.victories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
@media (max-width: 900px) { .victories-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .victories-grid { grid-template-columns: 1fr; } }
.victory {
  position: relative;
  padding: 1.4rem 1.25rem;
  background: var(--color-form-bg);
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  border-left: 3px solid var(--color-ink);
  transition: transform var(--t), box-shadow var(--t);
}
.victory:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.victory .v-amount {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.1;
}
.victory .v-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent-deep);
  font-weight: 700;
  margin: .35rem 0 .55rem;
}
.victory .v-desc {
  font-size: .92rem;
  color: var(--color-ink-muted);
  margin: 0;
  line-height: 1.5;
}
.trust-strip .stat { text-align: left; }
.trust-strip .stat .num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.trust-strip .stat .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-muted);
  margin-top: 0.3rem;
}
@media (max-width: 700px) { .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* ---------- Article / Prose ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
}
.prose { max-width: 70ch; }
.prose p { font-size: 1.02rem; line-height: 1.7; }
.prose h2 { padding-top: 0.5rem; }
.prose ul li, .prose ol li { margin: 0.45rem 0; }

.aside-card { position: sticky; top: 90px; }
.aside-card .card { padding: 1.5rem; }
.aside-card h3 { margin-top: 0; font-size: 1.1rem; }
.aside-card .contact-line { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0; font-size: 0.95rem; }
.aside-card .contact-line .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-ink-muted); }
.aside-card a.btn { width: 100%; margin-top: 0.85rem; }

/* ---------- Practice area grid ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
@media (max-width: 900px) { .practice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .practice-grid { grid-template-columns: 1fr; } }
.practice-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  background: var(--color-form-bg);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-rule);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.practice-card:hover { transform: translateY(-1px); border-color: var(--color-ink); box-shadow: var(--shadow-card); }
.practice-card .pa-eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-ink-muted); font-weight: 700;
}
.practice-card .pa-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin: 0.3rem 0 0.5rem; }
.practice-card .pa-meta { font-size: 0.78rem; color: var(--color-ink-muted); }

/* ---------- Attorney cards ---------- */
.attorney-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .attorney-grid { grid-template-columns: 1fr; } }
.attorney-card {
  display: flex; gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  background: var(--color-form-bg);
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-ink);
  transition: transform var(--t), box-shadow var(--t);
}
.attorney-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.attorney-card .avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
}
.attorney-card .at-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin: 0; }
.attorney-card .at-role { font-size: 0.85rem; color: var(--color-ink-muted); margin: 0.15rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--color-welcome-bg);
  border-radius: var(--r-card);
  padding: 1.4rem 1.5rem;
  border-left: 3px solid var(--color-ink);
  margin: 1rem 0;
}
.testimonial p { margin: 0 0 0.6rem; font-style: italic; }
.testimonial .source { font-size: 0.85rem; color: var(--color-ink-muted); font-style: normal; }
.testimonial .stars { color: var(--color-ink); letter-spacing: 0.1em; font-size: 0.95rem; }

/* ---------- Case results ---------- */
.case-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .case-results { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .case-results { grid-template-columns: 1fr; } }
.case-card {
  border: 1px solid var(--color-rule);
  border-radius: var(--r-card);
  padding: 1.25rem;
  background: var(--color-form-bg);
}
.case-card .case-amount { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--color-ink); margin: 0; letter-spacing: -0.01em; }
.case-card .case-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-ink-muted); margin: 0.3rem 0 0.6rem; font-weight: 700; }
.case-card .case-desc { font-size: 0.93rem; color: var(--color-ink-muted); margin: 0; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--color-form-bg);
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
  border-radius: var(--r-input);
  padding: 0.78rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 2px var(--color-rule);
}
.field .helper { font-size: 0.85rem; color: var(--color-ink-muted); margin-top: 0.3rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 5rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--color-rule);
  background: var(--color-bg);
  color: var(--color-ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-ink-muted);
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.footer-grid a { display: block; padding: 0.22rem 0; font-size: 0.92rem; color: var(--color-ink); border-bottom: none; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid var(--color-rule);
  font-size: 0.82rem; color: var(--color-ink-muted);
}
.footer-bottom a { border-bottom: none; color: var(--color-ink-muted); }
.footer-bottom a:hover { color: var(--color-ink); }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 4rem 0 0;
  padding: 3rem 0;
  background: var(--color-ink);
  color: var(--color-bg);
}
.cta-band h2 { color: var(--color-bg); margin: 0 0 0.6rem; }
.cta-band .lead { color: rgba(241, 236, 227, 0.75); }
.cta-band .btn-primary { background: var(--color-bg); color: var(--color-ink); }
.cta-band .btn-secondary { color: var(--color-bg); border-color: rgba(241, 236, 227, 0.4); }
.cta-band .btn-secondary:hover { border-color: var(--color-bg); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--color-ink-muted);
  padding: 1rem 0 0;
}
.breadcrumbs a { color: var(--color-ink-muted); border-bottom: none; }
.breadcrumbs a:hover { color: var(--color-ink); }
.breadcrumbs .sep { margin: 0 0.4rem; opacity: 0.5; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -40px; left: 1rem;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  border-radius: var(--r-button);
  border-bottom: none;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- RTL: lock chrome to LTR per brief ---------- */
html[dir="rtl"] .brand,
html[dir="rtl"] .site-header-inner,
html[dir="rtl"] .nav-cta,
html[dir="rtl"] .primary-nav,
html[dir="rtl"] .icon-btn { direction: ltr; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .icon-btn { display: none !important; }
  body { background: white; color: black; }
}

/* ==========================================================================
   Mobile polish (V2.1.30)
   ==========================================================================
   The base site is already responsive — viewport meta, hamburger nav, 15+
   breakpoints, fluid typography. These rules close the remaining small-screen
   gaps surfaced during a 380px audit:
     1. global horizontal-overflow guard (a single rogue element can't break
        the whole page on a phone)
     2. tighten section padding on phones (5.5rem top/bottom is too much
        vertical scroll on a 5" screen)
     3. let elements with `white-space: nowrap` wrap when the screen is too
        narrow (stats banner, breadcrumbs)
     4. ensure tap targets are ≥44px (Apple HIG / Google Material)
     5. prevent iOS Safari zoom-on-focus by guaranteeing form input font-size
        ≥16px on mobile
     6. break long words / URLs in prose so they can't shoot off the side
   ========================================================================== */

/* 1. global overflow guard ------------------------------------------------- */
html, body { overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }

/* 6. break long words in prose -------------------------------------------- */
.prose, .article-layout, .footer-grid, .breadcrumbs {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 720px) {
  /* 2. tighten vertical rhythm on phones */
  .section          { padding: 3.5rem 0; }
  .section-tight    { padding: 2rem 0; }
  .hero             { padding: 3rem 0 2rem; }
  .hero.compact     { padding: 2rem 0 1.5rem; }
  .stats-banner     { padding: 3rem 0 2.5rem; }
  .cta-band         { margin: 2.5rem 0 0; padding: 2.25rem 0; }
  .site-footer      { margin-top: 3rem; padding: 2.5rem 0 1.5rem; }

  /* 3. let nowrap headings wrap if forced + keep them centered */
  .stats-banner-head h2,
  .stats-banner-foot p { white-space: normal; text-align: center; }
  .stats-banner-head, .stats-banner-foot {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;   /* center horizontally on mobile */
  }
  .stats-banner-head h2, .stats-banner-foot p { width: 100%; }   /* fill row so text-align centers */
  .stats-rule { display: none; }                  /* the horizontal rule loses meaning when stacked */
  .breadcrumbs { font-size: 0.78rem; line-height: 1.5; }

  /* container padding — slightly tighter so cards have more room */
  .container, .container-narrow, .container-prose { padding: 0 1rem; }

  /* hero-form padding */
  .hero-form { padding: 1.25rem; }
  .hero-split-grid .hero-form { padding: 1.25rem 1.1rem; }

  /* 4. tap targets ≥ 44px */
  .mobile-nav a       { padding: 0.85rem 0; min-height: 44px; }
  .mobile-nav details summary { padding: 0.85rem 0; min-height: 44px; }
  .btn                { min-height: 44px; }
  .icon-btn           { width: 44px; height: 44px; }
  .nav-toggle         { width: 44px; height: 44px; }

  /* hero CTAs — make each button full-width so they don't squish side-by-side
     on 320–380px viewports. Buttons retain their min-height from above. */
  .hero-min-cta .btn,
  .hero .hero-cta .btn { flex: 1 1 100%; }

  /* footer bottom links — give the legal row a bit of breathing room */
  .footer-bottom { font-size: 0.78rem; gap: 0.6rem; }
  .footer-bottom > * { width: 100%; }
}

/* 5. iOS Safari zoom-on-focus guard ---------------------------------------- */
@media (max-width: 540px) {
  .field input,
  .field select,
  .field textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  textarea,
  select { font-size: 16px; }   /* ≥16px disables iOS auto-zoom on focus */
}

/* small-phone (≤380px) — last-mile typography squeeze ---------------------- */
@media (max-width: 380px) {
  body { font-size: 16px; }
  .hero-min h1   { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .hero h1       { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .lead          { font-size: 1rem; }
  .section-head h2 { font-size: 1.4rem; }
}
