/*
Theme Name: Raccoon Eviction Squad
Theme URI: https://raccoonevictionsquad.com
Author: Sonic 777
Description: Custom brutalist theme for Raccoon Eviction Squad, Chicago IL. Implements the locked Brutalist Bold / Neubrutalism Design DNA and the two-beat feeling system from STYLE-GUIDE.md.
Version: 1.7.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: res
*/

/* =========================================================================
   1. TOKENS  (locked: .factory/config/design-dna.json + STYLE-GUIDE.md)
   ========================================================================= */
:root {
  /* Core, locked by Design DNA */
  --paper:       #F4F1EA;
  --ink:         #111111;
  --orange:      #FF3B00;

  /* Extended, decided in STYLE-GUIDE.md */
  --navy:        #10275C;
  --yellow:      #FFC400;
  --green:       #2E6B3C;

  /* Neutrals */
  --white:       #FFFFFF;
  --paper-shade: #E3DFD4;
  --muted:       #8C877C;
  --soft-ink:    #2B2B2B;

  /* Shape language: 0 radius, 3px borders, hard offset shadows */
  --bd:      3px solid var(--ink);
  --bd-thin: 2px solid var(--ink);
  --sh:      6px 6px 0 var(--ink);
  --sh-sm:   3px 3px 0 var(--ink);
  --sh-lg:   10px 10px 0 var(--ink);
  --radius:  0;

  /* Motion: hard translation along the shadow axis */
  --dur:  200ms;
  --dur-fast: 120ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* easeOutExpo */

  /* Fluid rhythm */
  --gap:     clamp(1rem, 3vw, 1.75rem);
  --section: clamp(3.5rem, 9vw, 7rem);

  /* Raccoon mark knockout, overridden per context */
  --mark-knockout: var(--paper);

  --font-display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --font-body:    'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}

/* =========================================================================
   2. RESET + RESPONSIVE FOUNDATION  (mobile-first, built once)
   Breakpoints: 640 / 768 / 1024 / 1280. Never redefined per page.
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* guard against 320px horizontal scroll */
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }

img, video, iframe, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black has one weight. Never fake-bold. */
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.25rem); line-height: 0.9; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 5vw, 3.25rem); line-height: 0.95; text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.1; }
h4 { font-size: 1.0625rem; line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: 68ch; } /* brutalist gets illegible at full width */
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* Long unbreakable tokens (emails, URLs) must never force horizontal scroll at 320px. */
p, li, a, td, th, h1, h2, h3, h4 { overflow-wrap: break-word; }

ul, ol { padding-left: 1.15rem; }
li { margin-bottom: 0.45em; max-width: 66ch; }

/* One container. Every section uses it. */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}
.container--wide { max-width: 1360px; }

.section { padding-block: var(--section); }

/* Reusable grids. Pages compose these; they never invent their own. */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.grid > * { min-width: 0; } /* lets auto-fit reach full column count */
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Asymmetric splits. The DNA bans symmetrical default layouts. */
@media (min-width: 1024px) {
  .split-7-5 { grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); }
  .split-5-7 { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); }
  .split-8-4 { grid-template-columns: 8fr 4fr; gap: clamp(2rem, 5vw, 4rem); }
}

/* Neutralise WP constrained-layout clamping custom containers to 720px */
.container.is-layout-constrained > *,
.entry-content.is-layout-constrained > * { max-width: none; margin-left: 0; margin-right: 0; }

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

/* =========================================================================
   3. ACCESSIBILITY BASELINE
   ========================================================================= */
:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 999;
  background: var(--yellow); color: var(--ink); border: var(--bd);
  padding: 0.75rem 1.25rem; font-family: var(--font-display);
  text-transform: uppercase; text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 8px; }

/* =========================================================================
   4. BUTTONS
   CTA is INK on ORANGE. White on orange is 3.6:1 and fails AA. Do not change.
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.0625rem);
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  padding: 1rem 1.5rem;
  min-height: 56px; /* tap target */
  border: var(--bd); border-radius: var(--radius);
  box-shadow: var(--sh);
  background: var(--paper); color: var(--ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  text-align: center;
}
.btn:hover, .btn:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: var(--sh-sm);
}
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--ghost   { background: var(--paper);  color: var(--ink); }
.btn--navy    { background: var(--navy);   color: var(--white); }
.btn--yellow  { background: var(--yellow); color: var(--ink); }
.btn--lg      { padding: 1.15rem 2rem; font-size: clamp(1rem, 2.6vw, 1.25rem); min-height: 64px; }
.btn--block   { display: flex; width: 100%; }

@media (min-width: 640px) { .btn--block { display: inline-flex; width: auto; } }

/* =========================================================================
   5. SHARED COMPONENTS
   ========================================================================= */

/* Section label: hard-bordered tag, hangs into the left margin on desktop */
.label {
  display: inline-block;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.16em;
  padding: 0.4rem 0.8rem;
  border: var(--bd-thin); background: var(--paper); color: var(--ink);
  margin-bottom: 1.25rem;
}
.label--yellow { background: var(--yellow); }
.label--orange { background: var(--orange); }
.label--onnavy { background: transparent; border-color: var(--paper); color: var(--paper); }
@media (min-width: 1280px) { .section--hang .label { margin-left: -3.25rem; } }

/* Hard card */
.card {
  background: var(--white);
  color: var(--ink); /* explicit: a white card dropped inside .beat2 or .band--ink
                        would otherwise inherit paper text and become unreadable */
  border: var(--bd); border-radius: var(--radius);
  box-shadow: var(--sh);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.card a { color: var(--ink); }
.card--paper { background: var(--paper); }
.card--navy  { background: var(--navy); color: var(--paper); --mark-knockout: var(--navy); }
.card--navy a { color: var(--yellow); }
.card--green { background: var(--green); color: var(--white); --mark-knockout: var(--green); }
.card__n {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem); line-height: 0.8;
  display: block; margin-bottom: 0.6rem; color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.card--green .card__n { color: var(--paper); }
.card h3 { margin-bottom: 0.5rem; text-transform: uppercase; }
.card p:last-child { margin-bottom: 0; }

/* Icons. Hard size ceilings, always max-width AND max-height. */
.icon      { display: block; max-width: 24px;  max-height: 24px;  width: 24px;  height: 24px; }
.icon--ui  { max-width: 20px;  max-height: 20px;  width: 20px;  height: 20px; }
.icon--sec { max-width: 40px;  max-height: 40px;  width: 40px;  height: 40px; }
.icon--card{ max-width: 64px;  max-height: 64px;  width: 64px;  height: 64px; }
.icon--hero{ max-width: 120px; max-height: 120px; width: 120px; height: 120px; }
@media (min-width: 768px) { .icon--hero { max-width: 200px; max-height: 200px; width: 200px; height: 200px; } }

/* Raccoon mark */
.mark { color: var(--ink); }
.mark--paper { color: var(--paper); }
.mark__knock { fill: var(--mark-knockout); }
.mark__eye   { fill: var(--orange); }

/* Hazard stripe: chevron energy, drawn not imported */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink)    14px 28px
  );
  border-block: var(--bd-thin);
}
.stripe--orange {
  background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--ink) 14px 28px);
}

/* Framed media */
.frame {
  border: var(--bd); box-shadow: var(--sh); background: var(--paper-shade);
  overflow: hidden;
}
.frame img { width: 100%; }

/* Honesty strip. Required near every CTA per BRAND-BRIEF §8. */
.honesty {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(0.9rem, 2.2vw, 1.0625rem);
  background: var(--yellow); color: var(--ink);
  border: var(--bd-thin); padding: 0.6rem 0.9rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.honesty--onnavy { background: var(--yellow); color: var(--ink); }

/* =========================================================================
   6. HEADER / NAV
   ========================================================================= */
.site-header { background: var(--paper); border-bottom: var(--bd); position: relative; z-index: 50; }
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { width: 40px; height: 40px; max-width: 40px; max-height: 40px; flex: none; }
.brand__name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem); line-height: 0.95; letter-spacing: -0.01em;
}
.brand__name span { display: block; font-size: 0.62em; color: var(--orange); letter-spacing: 0.08em; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); text-transform: uppercase; font-size: 0.9rem;
  background: var(--paper); border: var(--bd); box-shadow: var(--sh-sm);
  padding: 0.6rem 0.85rem; min-height: 48px; cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav { display: none; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 0.9rem 0.25rem;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.05rem; text-decoration: none; border-bottom: var(--bd-thin);
}
.nav a:hover { color: var(--orange); }
.nav .current-menu-item > a { color: var(--orange); }

@media (max-width: 1023px) {
  .nav.is-open {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: var(--bd);
    padding: 0.5rem clamp(16px, 5vw, 48px) 1.25rem;
  }
}
@media (min-width: 1024px) {
  .nav { display: block; }
  .nav ul { display: flex; gap: clamp(0.85rem, 1.6vw, 1.5rem); align-items: center; }
  .nav a {
    padding: 0.35rem 0; font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    white-space: nowrap; /* nav labels must never wrap to two lines */
  }
  .nav a:hover, .nav .current-menu-item > a { border-bottom-color: var(--orange); }
}
@media (min-width: 1200px) { .nav a { font-size: 0.95rem; } }

.header-cta { display: none; }
@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
    white-space: nowrap; /* must stay on one line or the header height jumps */
    font-size: 0.9rem;
    padding: 0.85rem 1.1rem;
    min-height: 52px;
  }
}

/* Top alert bar */
.alert-bar {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 0.55rem 1rem;
}
.alert-bar a { color: var(--yellow); display: inline-block; padding-block: 0.5rem; min-height: 44px; }
/* Keep the alert bar to a single line on phones so it never pushes the H1 down. */
.alert-bar__more { display: none; }
@media (min-width: 640px) { .alert-bar__more { display: inline; } }

/* =========================================================================
   7. HERO  (Beat 1: loud, cramped, high contrast)
   ========================================================================= */
.hero {
  background: var(--paper);
  border-bottom: var(--bd);
  position: relative;
  overflow: hidden;
}
.hero__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 6fr 5fr;
    align-items: stretch; /* image matches the copy block's height instead of
                             floating centred with dead space above and below */
  }
}

/* Media column fills its grid cell edge to edge. */
.hero__media { display: flex; }
.hero__media .frame { width: 100%; display: flex; }
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) {
  /* Stacked: give it a deliberate landscape crop rather than the raw file ratio. */
  .hero__media .frame img { aspect-ratio: 3 / 2; }
}
@media (min-width: 1024px) {
  .hero__media { padding-block: clamp(2.5rem, 5vw, 4rem); }
  .hero__media .frame img { min-height: 420px; }
}

.hero__inner { padding-block: clamp(2rem, 4vw, 3.25rem); }

/* Keep both hero CTAs on one row at desktop so the primary button stays
   above the fold. An emergency page must never push its own CTA off-screen. */
@media (min-width: 1024px) {
  .hero__actions { gap: 0.75rem; }
  .hero__actions .btn--lg {
    font-size: 1rem;
    padding: 1.05rem 1rem;
    min-height: 60px;
  }
}

.hero h1 { margin-bottom: 1rem; }
.hero h1 .l1 { display: block; }
.hero h1 .l2 { display: block; color: var(--orange); }

.hero__sub {
  font-size: clamp(1.05rem, 2.6vw, 1.375rem);
  line-height: 1.5; max-width: 46ch; margin-bottom: 1.5rem;
}
.hero__actions {
  display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* Oversized display digit / mark bleeding off the edge */
.hero__mark {
  position: absolute; right: -3%; bottom: -8%;
  width: 46%; max-width: 520px; opacity: 0.06; pointer-events: none;
  display: none;
}
@media (min-width: 1024px) { .hero__mark { display: block; } }

/* =========================================================================
   8. BEAT 2  (resolve: navy, open, calm, concrete)
   ========================================================================= */
.beat2 {
  background: var(--navy); color: var(--paper);
  --mark-knockout: var(--navy);
  border-bottom: var(--bd);
}
.beat2 h2 { color: var(--paper); }
.beat2 .lead {
  font-size: clamp(1.15rem, 2.8vw, 1.375rem); line-height: 1.55;
  max-width: 60ch;
}
.beat2 a:not(.btn) { color: var(--yellow); }

.band { border-bottom: var(--bd); }
.band--paper { background: var(--paper); }
.band--shade { background: var(--paper-shade); }
.band--white { background: var(--white); }
.band--ink   { background: var(--ink); color: var(--paper); --mark-knockout: var(--ink); }
.band--ink h2 { color: var(--paper); }

/* Step list: how it works */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--white); color: var(--ink);
  border: var(--bd); box-shadow: var(--sh); padding: 1.5rem 1.25rem 1.25rem;
  position: relative; max-width: none; margin: 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -18px; left: -10px;
  font-family: var(--font-display); font-size: 2.25rem; line-height: 1;
  color: var(--ink); background: var(--yellow);
  border: var(--bd); padding: 0.1em 0.3em;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0.65rem 0 0.4rem; text-transform: uppercase; font-size: 1.15rem; }
.steps p { margin: 0; font-size: 0.98rem; }

/* Price block */
.price {
  background: var(--white); color: var(--ink);
  border: var(--bd); box-shadow: var(--sh-lg);
}
.price__bar { height: 12px; background: var(--yellow); border-bottom: var(--bd); }
.price__body { padding: clamp(1.25rem, 3vw, 2rem); }
.price__fig {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 0.9; display: block;
}
.price__note { font-size: 0.95rem; color: var(--soft-ink); }
.price__body a { display: inline-block; padding-block: 0.6rem; min-height: 44px; }

/* Service tiles */
.tile {
  display: flex; flex-direction: column;
  background: var(--white); border: var(--bd); box-shadow: var(--sh);
  text-decoration: none; color: var(--ink); height: 100%;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.tile:hover, .tile:focus-visible { transform: translate(3px, 3px); box-shadow: var(--sh-sm); }
.tile__media { border-bottom: var(--bd); background: var(--paper-shade); }
.tile__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.tile h3 { text-transform: uppercase; font-size: 1.2rem; margin-bottom: 0.4rem; }
.tile p { font-size: 0.98rem; margin-bottom: 1rem; }
.tile__go {
  margin-top: auto; font-family: var(--font-display); text-transform: uppercase;
  font-size: 0.9rem; letter-spacing: 0.04em; color: var(--orange);
}

/* Area chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; max-width: none; }
.chips a {
  display: inline-block; padding: 0.55rem 0.9rem;
  border: var(--bd-thin); background: var(--paper); color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.chips a:hover, .chips a:focus-visible { background: var(--yellow); box-shadow: var(--sh-sm); transform: translate(2px,2px); }

/* Final CTA (intensity returns) */
.cta-final { background: var(--orange); border-bottom: var(--bd); }
.cta-final h2 { color: var(--ink); }
.cta-final p { color: var(--ink); }

/* =========================================================================
   9. STICKY MOBILE DISPATCH BAR
   ========================================================================= */
.dispatch {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: block;
}
@media (min-width: 1024px) { .dispatch { display: none; } }
.dispatch__note {
  background: var(--yellow); color: var(--ink);
  border-top: var(--bd-thin);
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; padding: 0.3rem 0.5rem;
}
.dispatch__row { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--bd); }
.dispatch__row a {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 60px; padding: 0.5rem;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 0.9rem; text-decoration: none; color: var(--ink);
}
.dispatch__call { background: var(--paper); border-right: var(--bd); }
.dispatch__cta  { background: var(--orange); }
body { padding-bottom: 104px; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* =========================================================================
   10. FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: var(--paper); --mark-knockout: var(--ink); }
.site-footer h3 { color: var(--paper); text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.04em; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.25rem; }
/* Footer links get a real tap target on touch screens. */
.site-footer li a {
  display: inline-block;
  padding-block: 0.6rem;
  min-height: 44px;
  line-height: 1.5;
  max-width: 100%;   /* inline-block shrink-wraps to max-content without this,
                        which lets a long email force horizontal scroll at 320px */
}
.footer-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
/* Grid items default to min-width:auto, which sizes the column to the longest
   unbreakable token (the email) and forces horizontal scroll at 320px. */
.footer-grid > *, .steps > *, .hero__grid > * { min-width: 0; }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-legal {
  border-top: var(--bd-thin); margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.5rem;
  font-size: 0.85rem; color: var(--paper-shade);
}
.footer-legal p { max-width: 80ch; }

/* =========================================================================
   11. CONTENT PAGES
   ========================================================================= */
.page-hero { background: var(--paper); border-bottom: var(--bd); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.1rem, 6.5vw, 4.25rem); }
.breadcrumbs { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; color: var(--soft-ink); }
.breadcrumbs a { color: var(--soft-ink); }
.breadcrumbs a:hover { color: var(--orange); }

.entry-content h2 { margin-top: 2.25em; }
.entry-content h3 { margin-top: 1.75em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content table { width: 100%; border-collapse: collapse; border: var(--bd); margin-bottom: 1.5rem; }
.entry-content th, .entry-content td { border: var(--bd-thin); padding: 0.7rem 0.85rem; text-align: left; }
.entry-content th { background: var(--yellow); font-family: var(--font-display); text-transform: uppercase; font-size: 0.9rem; }
.entry-content tbody tr:nth-child(even) { background: var(--paper-shade); }
.entry-content blockquote {
  margin: 1.75rem 0; padding: 1.25rem 1.5rem;
  background: var(--white); border: var(--bd); box-shadow: var(--sh);
  font-size: 1.15rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq details {
  border: var(--bd); background: var(--white); box-shadow: var(--sh);
  margin-bottom: 1rem; padding: 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.25rem;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1rem, 2.4vw, 1.15rem); display: flex; justify-content: space-between; gap: 1rem;
  min-height: 56px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--orange); }
.faq details[open] summary { border-bottom: var(--bd); }
.faq details[open] summary::after { content: '\2013'; }
.faq__body { padding: 1.15rem 1.25rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* =========================================================================
   12. MOTION  (MOTION-PROFILE.md — bold, key moments, reveal on scroll)
   Hard translation on the shadow axis. No bounce, no blur, no loops.
   ========================================================================= */

/* Stagger reveal. Only applies once JS confirms support, so a no-JS
   visitor sees final state immediately. */
.js .sonic-stagger-children > .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-fast) linear, transform var(--dur) var(--ease);
}
.js .sonic-stagger-children.is-in > .reveal { opacity: 1; transform: none; }
.js .sonic-stagger-children.is-in > .reveal:nth-child(1) { transition-delay: 0ms; }
.js .sonic-stagger-children.is-in > .reveal:nth-child(2) { transition-delay: 60ms; }
.js .sonic-stagger-children.is-in > .reveal:nth-child(3) { transition-delay: 120ms; }
.js .sonic-stagger-children.is-in > .reveal:nth-child(4) { transition-delay: 180ms; }
.js .sonic-stagger-children.is-in > .reveal:nth-child(n+5) { transition-delay: 240ms; } /* capped */

/* Hero wipe. Text is in the DOM at full opacity from first paint; only a
   clip-path animates, so nothing above the fold is ever gated on script. */
.sonic-hero-reveal .l1,
.sonic-hero-reveal .l2 {
  animation: res-wipe 190ms steps(3) both;
}
.sonic-hero-reveal .l2 { animation-delay: 90ms; }
@keyframes res-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .js .sonic-stagger-children > .reveal { opacity: 1; transform: none; transition: none; }
  .sonic-hero-reveal .l1, .sonic-hero-reveal .l2 { animation: none; clip-path: none; }
  .btn, .tile, .chips a { transition: none; }
  .btn:hover, .btn:focus-visible, .tile:hover, .tile:focus-visible { transform: none; box-shadow: var(--sh); }
}

/* =========================================================================
   13. PRINT
   ========================================================================= */
@media print {
  .dispatch, .nav-toggle, .alert-bar, .stripe { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .card, .btn, .tile { box-shadow: none; }
}

/* =========================================================================
   14. SONIC BOOM — conversion layer (Stage 3.5)
   6-section scroll architecture. See SONIC-BOOM-DESIGN-NOTES.md.
   ========================================================================= */

/* --- Trust row: sits directly under the hero CTA pair --------------------- */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; padding: 0; margin: 1.15rem 0 0;
}
.trust-row li {
  margin: 0; max-width: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--white); color: var(--ink);
  border: var(--bd-thin); padding: 0.45rem 0.7rem;
}
.trust-row svg { flex: none; }
.trust-row .t-star { color: var(--orange); }

/* Scroll invite: always show a slice of the next section under the hero. */
@media (min-width: 1024px) { .hero { max-height: 86vh; } }

/* --- Section 2: the problem ---------------------------------------------- */
.pains { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 768px) { .pains { grid-template-columns: repeat(2, 1fr); } }
.pains > li {
  margin: 0; max-width: none;
  background: var(--white); border: var(--bd); box-shadow: var(--sh);
  padding: 1.35rem 1.25rem;
  display: flex; gap: 0.9rem; align-items: flex-start;
}
.pains svg { flex: none; color: var(--orange); }
.pains h3 { font-size: 1.1rem; text-transform: uppercase; margin: 0 0 0.35rem; }
.pains p { margin: 0; font-size: 0.99rem; }

.turn {
  margin-top: 2.25rem; padding: 1.35rem 1.5rem;
  background: var(--ink); color: var(--paper);
  border: var(--bd); box-shadow: var(--sh);
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.15rem, 3vw, 1.65rem); line-height: 1.15;
}
.turn span { color: var(--orange); }

/* --- Section 3: proof ----------------------------------------------------- */
.proof { display: grid; gap: var(--gap); margin-top: 2.25rem; }
@media (min-width: 768px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof > * { min-width: 0; }
.proof__item {
  background: var(--white);
  color: var(--ink); /* must be explicit: .beat2 sets paper text, which would
                        otherwise inherit onto a white card and vanish */
  border: var(--bd); box-shadow: var(--sh);
  padding: 1.35rem 1.25rem;
}
.proof__item .proof__l { color: var(--soft-ink); }
.proof__k {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: 0.45rem;
}
.proof__l { font-size: 0.95rem; margin: 0; }
.proof__pending {
  background: var(--paper-shade);
  border-style: dashed; box-shadow: none;
}
.proof__pending .proof__k { color: var(--soft-ink); }

/* --- Section 5: evidence, before / after ---------------------------------- */
.ba { display: grid; gap: var(--gap); margin-top: 2.25rem; }
@media (min-width: 768px) { .ba { grid-template-columns: repeat(2, 1fr); } }
.ba > * { min-width: 0; }
.ba figure { margin: 0; border: var(--bd); box-shadow: var(--sh); background: var(--white); }
.ba img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: var(--bd); }
.ba figcaption { padding: 0.9rem 1.1rem; font-size: 0.95rem; }
.ba__tag {
  display: inline-block; font-family: var(--font-display);
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem; border: var(--bd-thin); margin-bottom: 0.5rem;
}
.ba__tag--before { background: var(--orange); color: var(--ink); }
.ba__tag--after  { background: var(--green);  color: var(--white); }

.case {
  margin-top: var(--gap);
  background: var(--navy); color: var(--paper);
  border: var(--bd); box-shadow: var(--sh);
  padding: clamp(1.35rem, 3vw, 2rem);
}
.case h3 { color: var(--paper); text-transform: uppercase; }
.case dl { display: grid; gap: 1rem; margin: 1.25rem 0 0; }
@media (min-width: 768px) { .case dl { grid-template-columns: repeat(3, 1fr); } }
.case dt {
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 0.3rem;
}
.case dd { margin: 0; font-size: 0.99rem; }

/* --- Section 6: the close ------------------------------------------------- */
.paths { display: grid; gap: var(--gap); margin-top: 2.25rem; text-align: left; }
@media (min-width: 768px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.paths > * { min-width: 0; }
.path {
  background: var(--white); border: var(--bd); box-shadow: var(--sh);
  padding: 1.35rem 1.25rem; display: flex; flex-direction: column;
}
.path h3 { text-transform: uppercase; font-size: 1.1rem; margin-bottom: 0.4rem; }
.path p { font-size: 0.95rem; margin-bottom: 1.15rem; }
.path .btn { margin-top: auto; }
.path__rank {
  font-family: var(--font-body); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft-ink);
  margin-bottom: 0.5rem; display: block;
}

/* --- Multi-step form ------------------------------------------------------ */
.res-form {
  background: var(--white); border: var(--bd); box-shadow: var(--sh-lg);
  max-width: 640px;
}
.res-form__bar { height: 12px; background: var(--paper-shade); border-bottom: var(--bd); }
.res-form__fill { height: 100%; background: var(--yellow); width: 33.33%; transition: width var(--dur) var(--ease); }
.res-form__body { padding: clamp(1.25rem, 3vw, 2rem); }
.res-form__count {
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft-ink);
  margin-bottom: 0.75rem;
}
.res-form fieldset { border: 0; padding: 0; margin: 0; }
.res-form legend {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.15rem, 3vw, 1.5rem); line-height: 1.05;
  margin-bottom: 1.15rem; padding: 0;
}
.res-form label {
  display: block; font-weight: 700; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem;
}
.res-form input[type=text],
.res-form input[type=tel],
.res-form input[type=email],
.res-form select,
.res-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 0.85rem 0.9rem; min-height: 52px;
  border: var(--bd); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  margin-bottom: 1.1rem;
}
.res-form textarea { min-height: 110px; }
.res-form .opts { display: grid; gap: 0.6rem; margin-bottom: 1.1rem; }
@media (min-width: 520px) { .res-form .opts { grid-template-columns: repeat(2, 1fr); } }
.res-form .opt {
  display: flex; align-items: center; gap: 0.6rem;
  border: var(--bd-thin); padding: 0.8rem 0.85rem; min-height: 52px;
  cursor: pointer; font-weight: 500; text-transform: none; letter-spacing: 0;
  font-size: 0.95rem; background: var(--paper); margin: 0;
}
.res-form .opt:hover { background: var(--yellow); }
.res-form .opt input { accent-color: var(--orange); width: 20px; height: 20px; margin: 0; flex: none; }
.res-form__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.res-form__note { font-size: 0.88rem; color: var(--soft-ink); margin: 1rem 0 0; }
/* Without JS every step is visible and the form is one long page that still
   submits. Stepping is an enhancement, never a requirement. */
.js .res-form .step { display: none; }
.js .res-form .step.is-active { display: block; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .no-js-only { display: none; }

.form-sent {
  background: var(--green); color: var(--white);
  border: var(--bd); box-shadow: var(--sh); padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}
.form-sent h2 { color: var(--white); margin-bottom: 0.5rem; }
.form-sent p:last-child { margin-bottom: 0; }

/* --- Coverage map (drawn, not embedded) ----------------------------------- */
.coverage {
  border: var(--bd); box-shadow: var(--sh); background: var(--white);
  padding: 1.25rem; margin-top: var(--gap);
}
.coverage svg { width: 100%; height: auto; max-width: 100%; max-height: 380px; }

/* --- Testimonials (Sonic Boom section 3) ---------------------------------- */
.quotes { display: grid; gap: var(--gap); margin-top: var(--gap); }
@media (min-width: 768px)  { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quotes > * { min-width: 0; }
.quote {
  background: var(--white); color: var(--ink);
  border: var(--bd); box-shadow: var(--sh);
  padding: 1.35rem 1.25rem; margin: 0;
  display: flex; flex-direction: column;
}
.quote__stars { color: var(--orange); font-size: 1.05rem; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.quote blockquote {
  margin: 0 0 1rem; padding: 0; border: 0; box-shadow: none;
  background: none; font-size: 1rem; line-height: 1.55;
}
.quote figcaption { margin-top: auto; border-top: var(--bd-thin); padding-top: 0.75rem; }
.quote__name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 0.95rem; display: block;
}
.quote__meta { font-size: 0.85rem; color: var(--soft-ink); }

/* =========================================================================
   14. LAYOUT UTILITIES  (added Stage 4)
   The service template ships with ZERO inline style attributes so that a
   single CSS edit reaches all ~100 template-built pages. front-page.php
   and page.php should be migrated onto these too — they currently carry
   37 and 9 inline styles respectively, duplicated per page.
   ========================================================================= */
.u-center            { text-align: center; }
.u-measure           { max-width: 24ch; }
.u-measure-wide      { max-width: 60ch; }
.u-center .u-measure,
.u-center .u-measure-wide { margin-inline: auto; }
.u-lead              { font-size: clamp(1.05rem, 2.4vw, 1.15rem); }
.u-actions           { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-block: 1.5rem; }
.u-center .u-actions { justify-content: center; }
.u-top               { margin-top: var(--gap); }
.u-start             { align-items: start; }
.u-end               { align-items: end; }

/* Price suffix, previously an inline font-size on the homepage. */
.price__sfx          { font-size: 0.4em; }

/* Breadcrumb links need a real tap target — they appear on every template page. */
.breadcrumbs a { display: inline-block; padding-block: 0.6rem; min-height: 44px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }

/* Sticky sidebar for long template pages. The detail column is much shorter
   than the prose beside it, so without this ~100 pages carry a tall empty gutter. */
@media (min-width: 1024px) {
  .u-sticky { position: sticky; top: 1.5rem; }
}

/* =========================================================================
   15. WCAG 2.1 AA CONTRAST CORRECTIONS  (Stage 6b)
   DISPATCH ORANGE measures 3.17:1 on PAPER and 2.60:1 on WHITE. That is a
   fill and border colour, not a small-text colour. It stays legal as a
   background (ink on orange = 4.6:1) and on large display type (>=24px,
   which needs only 3:1), and is replaced below wherever it was carrying
   small text. CAUTION YELLOW on white is 1.6:1 and never carries text.
   ========================================================================= */

/* Brand lockup subtitle: 11.4px, was 3.17:1 */
.brand__name span { color: var(--ink); }

/* Nav hover/current: the orange underline carries the state, not the text */
.nav a:hover,
.nav .current-menu-item > a { color: var(--ink); }

/* Rule-card numerals: yellow on white measured 1.6:1 against a 3:1 requirement */
.card__n              { color: var(--ink); }
.card--navy  .card__n { color: var(--yellow); }  /* on navy: 10.4:1 */
.card--green .card__n { color: var(--paper); }   /* on green: 5.4:1  */

/* Small orange text elsewhere */
.t-star     { color: var(--ink); }
.tile__go   { color: var(--ink); }
.breadcrumbs a:hover { color: var(--ink); }
.faq summary::after  { color: var(--ink); }

/* The orange stays where it passes: CTA fills, the hero's oversized second
   line (3.17:1 at >=24px), section labels with ink text on an orange fill,
   and aria-hidden decorative icons. */

/* The footer sits on INK, so the header's ink-coloured subtitle would be
   invisible there. Yellow on ink is 10.4:1 and keeps an accent in the lockup. */
.site-footer .brand__name span { color: var(--yellow); }
