/* ==========================================================================
   Madison Injury Lawyer — design system
   Brand: Madison Red #C5050C (UW red) · Madison Black #131313
          Light Gray #E1E5E7 · Dark Gray #606060
          Madison Yellow #ffc20e (eyebrow tick ONLY)
   Direction: "calm authority" — editorial, layered planes, generous space,
   monospace all-caps eyebrow labels as the signature.
   ========================================================================== */

/* ---- Fonts: Google Sans Flex + Google Sans Code (self-hosted, OFL) --------
   Flex has no true italic; browsers synthesize oblique for the few italic
   spots (review quotes). Code carries a real italic. */
@font-face {
  font-family: 'Google Sans Flex';
  src: url('/assets/fonts/GoogleSansFlex-Variable-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans Flex';
  src: url('/assets/fonts/GoogleSansFlex-Variable-latin-ext.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+20A0-20C0;
}
@font-face {
  font-family: 'Google Sans Code';
  src: url('/assets/fonts/GoogleSansCode-Variable-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans Code';
  src: url('/assets/fonts/GoogleSansCode-Variable-latin-ext.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+20A0-20C0;
}
@font-face {
  font-family: 'Google Sans Code';
  src: url('/assets/fonts/GoogleSansCode-Italic-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans Code';
  src: url('/assets/fonts/GoogleSansCode-Italic-latin-ext.woff2') format('woff2');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+20A0-20C0;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --red: #C5050C;      /* UW red — the brand anchor across all surfaces + logo mark */
  --red-deep: #9B0000; /* hover/pressed state */
  --ink: #131313;
  --gray-light: #E1E5E7;
  --gray-mid: #606060;
  --yellow: #ffc20e;           /* eyebrow tick only — do not spread */
  --paper: #ffffff;
  --tint: #F5F6F7;
  --body-color: #2b2b2b;
  --hairline-dark: rgba(255, 255, 255, 0.08);

  --font-body: 'Google Sans Flex', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Google Sans Code', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --logo-mark: var(--red);

  --container: 1200px;
  --header-h: 84px;      /* primary nav row height */
  --supernav-h: 46px;    /* utility bar height (desktop only) */
  --radius: 2px;
  --shadow-lift: 0 28px 56px -28px rgba(19, 19, 19, 0.35);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-color);
  background: var(--paper);
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; }
h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 1px;
}
.skip-link {
  position: absolute; left: -9999px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 16px; top: 16px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* ---- Signature: monospace all-caps eyebrow ------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin: 0 0 20px;
}
.eyebrow-tick::before {
  content: '';
  display: inline-block;
  width: 18px; height: 3px;
  background: var(--yellow);
  margin-right: 12px;
  vertical-align: 3px;
}
.eyebrow-on-red { color: rgba(255, 255, 255, 0.85); }

/* ---- Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 13.5px; }
.btn-block { display: block; text-align: center; }
.btn-inverse { background: #fff; color: var(--ink); }
.btn-inverse:hover { background: var(--gray-light); color: var(--ink); }

.link-arrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  text-decoration: none;
}
.link-arrow::after {
  content: '\2192';
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow-light { color: #fff; font-size: 15px; padding: 15px 0; }
.link-arrow-light:hover { color: var(--gray-light); }

/* ---- Header: supernav utility bar + sticky primary nav -------------------- */
/* The header overlays the dark hero transparently. On scroll the whole header
   rides up with the page; once the supernav clears the top, JS adds .stuck and
   the primary nav fixes to the top (solid, dark text). */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  color: #fff;
}

/* Supernav (utility bar): phone left, Free Consultation right. */
.supernav { border-bottom: 1px solid var(--hairline-dark); }
.supernav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--supernav-h);
}
.supernav-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.supernav-phone:hover { color: var(--gray-light); }
/* Phone glyph inherits the link's color (white, gray on hover). */
.phone-icon { display: inline-flex; }
.phone-icon svg { width: 13px; height: 13px; display: block; fill: currentColor; }
/* Full-height CTA block in the utility bar; darkens (no lift) on hover. */
.supernav-cta {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-size: 12.5px;
  border-radius: 0;
}
.supernav-cta:hover { transform: none; }

/* Primary nav row (logo + links). */
.primary-nav { transition: none; }
@keyframes header-drop {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
/* Stuck: primary nav detaches and pins to the top. */
.site-header.stuck .primary-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-bottom: 1px solid var(--gray-light);
  animation: header-drop 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.brand { color: inherit; display: inline-flex; }
/* Red-on-black reads badly, so the wordmark hovers to gray, never red. */
.brand:hover { color: var(--gray-light); }
.site-header.stuck .brand:hover { color: var(--gray-mid); }
.brand svg { height: 44px; width: auto; display: block; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--red); color: inherit; }
/* Hamburger toggle: hidden until the mobile @media; morphs to an X when open. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto; margin-right: -8px;
  align-items: center; justify-content: center;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 24px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.22s ease, background 0.22s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* Scrim behind the slide-in drawer (mobile only; JS toggles the [hidden] attr). */
.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.25s ease;
}
.nav-overlay:not([hidden]) { opacity: 1; }

.nav-cta-mobile { display: none; } /* shown only inside the mobile drawer */

/* ---- Hero ------------------------------------------------------------------
   Layer 1: dark field with editorial hairline grid.
   Layer 2: red plane behind the portrait.
   Layer 3: the cutout, breaking past the plane.
   Layer 4: practice cards overlap the hero's bottom edge (.section-cards). */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-top: calc(var(--supernav-h) + var(--header-h) + clamp(40px, 8vh, 96px));
  padding-bottom: 170px;
  overflow: hidden;
}
/* B&W downtown-Madison photo, starting at the top of the primary nav (below the
   supernav) and filling to the bottom of the hero. */
.hero::before {
  content: '';
  position: absolute;
  top: var(--supernav-h); left: 0; right: 0; bottom: 0;
  background: url('/assets/img/hero-madison.jpg') center center / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
  z-index: 0;
}
/* Dark screen over the photo for legibility: heaviest on the left (behind the
   copy), lighter toward the right where the photo + portrait show. */
.hero::after {
  content: '';
  position: absolute;
  top: var(--supernav-h); left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(90deg, rgba(19,19,19,0.94) 0%, rgba(19,19,19,0.82) 38%, rgba(19,19,19,0.5) 72%, rgba(19,19,19,0.35) 100%),
    linear-gradient(180deg, var(--ink) 0%, transparent 18%);
  z-index: 0;
}
/* Hero content (copy + portrait/red box) sits above the photo and screen. */
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.65); }
.hero-title {
  color: #fff;
  font-size: clamp(2.8rem, 6.2vw, 5rem);
  font-weight: 750;
  line-height: 1.02;
  margin: 0 0 28px;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34em;
  margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 12px 0;
  list-style: none; margin: 0; padding: 24px 0 0;
  border-top: 1px solid var(--hairline-dark);
}
.hero-trust li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--hairline-dark);
}
.hero-trust li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.hero-portrait {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  margin-bottom: -170px; /* let the portrait ride down over the card seam */
}
.hero-portrait-plane {
  position: absolute;
  left: 8%; right: -6%; top: 12%; bottom: 0;
  background: var(--red);
}
.hero-portrait img {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 104%;
  width: auto;
  max-width: none;
  filter: drop-shadow(-18px 0 36px rgba(0, 0, 0, 0.35));
}

/* ---- Practice cards (overlapping the hero) -------------------------------- */
.section-cards { position: relative; z-index: 2; margin-top: -110px; padding-bottom: 24px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  display: block;
  background: var(--paper);
  border: 1px solid var(--gray-light);
  padding: 24px 32px 32px;
  text-decoration: none;
  color: var(--body-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card:hover::before { transform: scaleX(1); }
.card h2 { font-size: 21px; margin: 5px 0 10px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--gray-mid); margin-bottom: 20px; }
.card-icon { display: block; width: 96px; height: 96px; }
.card-icon svg { width: 100%; height: 100%; }

/* ---- Sections -------------------------------------------------------------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tint { background: var(--tint); }
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

/* Editorial split: copy column rides higher than the content column */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split-copy p { max-width: 34em; }
.split-copy .link-arrow { margin-top: 8px; }

/* Numbered editorial list — mono digits as the graphic element */
.numbered-list {
  list-style: none;
  counter-reset: item;
  margin: 0;
  padding: 0;
}
.numbered-list li {
  counter-increment: item;
  position: relative;
  padding: 28px 0 24px 84px;
  border-top: 1px solid var(--gray-light);
}
.numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0; top: 26px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--red);
}
.numbered-list h3 { font-size: 18px; margin-bottom: 6px; }
.numbered-list p { font-size: 15px; color: var(--gray-mid); margin: 0; }

/* Steps grid (resource section) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  margin-top: 48px;
}
.step {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--gray-light);
  padding: 32px 26px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--gray-light);
  margin-bottom: 40px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--gray-mid); margin: 0; }

/* "What to do after a crash" — dark photo band echoing the hero treatment.
   The ambulance photo is a quiet signal, screened well past legibility. */
.section-steps {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.section-steps::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/madison-emergency-response.jpg') center 42% / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}
.section-steps::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19,19,19,0.94) 0%, rgba(19,19,19,0.86) 45%, rgba(19,19,19,0.62) 100%);
}
.section-steps .container { position: relative; z-index: 1; }
.section-steps .section-title { color: #fff; }
.section-steps .eyebrow { color: rgba(255, 255, 255, 0.65); }
.section-steps .step {
  background: rgba(19, 19, 19, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
}
.section-steps .step::before { color: rgba(255, 255, 255, 0.35); }
.section-steps .step h3 { color: #fff; }
.section-steps .step p { color: rgba(255, 255, 255, 0.72); }

/* Reviews */
.section-reviews .section-title { margin-bottom: 48px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 56px;
}
.review { margin: 0; border-top: 1px solid var(--gray-light); padding-top: 28px; }
.review-stars { color: var(--red); letter-spacing: 4px; font-size: 14px; margin-bottom: 16px; }
.review-text {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 450;
  color: var(--ink);
}
.review-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); }
.review-author { margin-right: 14px; }
.reviews-disclaimer { margin-top: 48px; font-size: 12.5px; color: var(--gray-mid); max-width: 60em; }

/* CTA band */
.section-cta { background: var(--red); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-title { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.75rem); margin-bottom: 8px; }
.cta-sub { color: rgba(255, 255, 255, 0.8); margin: 0; }
.cta-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-phone {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
}
.cta-phone:hover { color: var(--gray-light); }

/* ---- Interior page header --------------------------------------------------- */
.page-header {
  position: relative;
  overflow: hidden;
  /* Solid ink with a soft brand-red glow rising from the lower-left, behind the
     headline. Intentional lighting, not a generated grid. */
  background:
    radial-gradient(115% 130% at -5% 115%, rgba(197, 5, 12, 0.20) 0%, rgba(197, 5, 12, 0.06) 34%, transparent 60%),
    var(--ink);
  color: #fff;
  padding: calc(var(--supernav-h) + var(--header-h) + clamp(32px, 6vh, 72px)) 0 clamp(56px, 7vw, 88px);
}
.page-header .eyebrow { color: rgba(255, 255, 255, 0.65); }
.page-header h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  max-width: 18em;
}
.page-lede { font-size: 1.15rem; color: rgba(255, 255, 255, 0.75); max-width: 38em; margin: 0; }
.page-lede a { color: #fff; }
.page-lede a:hover { color: var(--gray-light); }
.page-lede-note { font-size: 0.95rem; color: rgba(255, 255, 255, 0.55); max-width: 44em; margin: 20px 0 32px; }
.page-header-tall { padding-bottom: clamp(88px, 12vw, 140px); }

/* ---- Practice page layout ----------------------------------------------------- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 6vw, 88px);
  /* Vertical padding only — keep the .container's horizontal padding so the
     content aligns with the hero/page-header edge (don't use the shorthand). */
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
  align-items: start;
}
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 2.2em 0 0.6em; }
.prose h2:first-of-type { margin-top: 1.6em; }
.prose p { max-width: 65ch; line-height: 1.7; }
.side-card {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--red);
  padding: 32px 28px;
  box-shadow: 0 16px 40px -28px rgba(19, 19, 19, 0.3);
}
.side-card h2 { font-size: 22px; margin-bottom: 8px; }
.side-card p { font-size: 14.5px; color: var(--gray-mid); }
.side-card .btn { margin: 8px 0 20px; }
.side-card-phone {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 12px;
}
.side-card-phone:hover { color: var(--red); }
.side-card-hours { font-size: 12.5px !important; }

/* Photo treatment: everything grades to monochrome so mixed sources read
   as one commissioned set. */
.photo-frame { position: relative; margin: 8px 0 40px; }
.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.photo-frame::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid var(--gray-light);
  z-index: -1;
}
.photo-frame-portrait img { aspect-ratio: 4 / 5; }
/* Top-align the portrait with the headline (not vertically centered). */
.split-grid-about { align-items: start; }
.split-grid-about .photo-frame { margin-top: 0; }

/* ---- Contact page ------------------------------------------------------------- */
.content-grid-contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.contact-form .form-row { margin-bottom: 20px; }
.contact-form .form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}
.req { color: var(--red); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  border: 1px solid #c6cccf;
  border-radius: var(--radius);
  background: var(--paper);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}
.contact-form textarea { resize: vertical; }
.form-disclaimer { font-size: 12.5px; color: var(--gray-mid); margin-top: 16px; max-width: 46em; }
.form-errors {
  border: 1px solid var(--red);
  border-left: 4px solid var(--red);
  background: #FBF3F3;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14.5px;
}
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }
.hp-field { position: absolute; left: -9999px; }

.office-info { border-top: 1px solid var(--gray-light); }
.office-row { border-bottom: 1px solid var(--gray-light); padding: 24px 0; }
.office-row .eyebrow { margin-bottom: 8px; }
.office-row p { margin: 0 0 4px; }
.office-phone {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.office-phone:hover { color: var(--red); }

.map-wrap { border-top: 1px solid var(--gray-light); }
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: grayscale(1) contrast(1.02);
}

/* ---- Footer --------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(64px, 8vw, 96px) 0 40px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr; /* wider Visit column so the address doesn't wrap */
  gap: 48px;
}
.footer-brand { color: #fff; }
.footer-brand svg { width: 190px; height: auto; }
.site-footer .eyebrow { color: rgba(255, 255, 255, 0.45); margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-hours { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.footer-disclaimer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline-dark);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}
.footer-disclaimer strong { color: rgba(255, 255, 255, 0.65); font-weight: 600; }

/* ---- Scroll reveal (site.js adds .reveal, IO adds .in) --------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---- Responsive -------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .cards-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .content-grid, .content-grid-contact { grid-template-columns: 1fr; }
  .side-card { position: static; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --supernav-h: 0px; } /* no supernav on mobile — drop it from padding math */
  .supernav { display: none; }
  .brand svg { height: 32px; } /* keep the logo compact next to the hamburger */
  .nav-toggle { display: inline-flex; }
  /* Keep the logo + toggle above the drawer and scrim. */
  .site-header { z-index: 100; }

  /* Slide-in drawer from the right. Present in the DOM but pushed off-screen
     and made non-focusable until opened. */
  .site-nav {
    position: fixed;
    top: var(--header-h); right: 0; bottom: 0; /* starts below the header bar so it never covers the toggle */
    width: min(84vw, 320px);
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--ink);
    border-left: 1px solid var(--hairline-dark);
    border-top: 1px solid var(--hairline-dark);
    padding: 8px 0 28px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  /* Suppress the slide while the window is actively resizing, so crossing the
     desktop/mobile breakpoint doesn't animate the drawer on/off screen. */
  .is-resizing .site-nav { transition: none; }
  .site-nav.open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  /* Scoped to the nav list so it doesn't override the drawer's CTA + phone links. */
  .site-nav ul a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 28px;
    border-bottom: 1px solid var(--hairline-dark);
  }
  .site-nav > ul > li:first-child a { border-top: 1px solid var(--hairline-dark); }
  .site-nav ul a:hover, .site-nav ul a[aria-current] { color: #fff; background: rgba(255,255,255,0.05); border-bottom-color: var(--hairline-dark); }
  .nav-cta-mobile { display: block; padding: 28px; margin-top: auto; }
  .nav-cta-mobile .btn { font-size: 17px; padding: 15px 24px; }
  .nav-phone-mobile {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 18px;
    color: #fff; font-family: var(--font-mono); font-size: 15px;
    font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
  }
  .nav-phone-mobile .phone-icon svg { width: 15px; height: 15px; }

  .hero { padding-bottom: 0; }
  /* Text spans the full width on mobile, so use a stronger, more even screen. */
  .hero::after {
    background:
      linear-gradient(180deg, var(--ink) 0%, rgba(19,19,19,0.7) 22%, rgba(19,19,19,0.62) 60%, rgba(19,19,19,0.78) 100%);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-portrait { margin: 32px -20px 0; min-height: 0; height: 340px; }
  .hero-portrait-plane { left: 18%; right: 18%; }
  .hero-portrait img { height: 110%; }
  .section-cards { margin-top: 0; padding-top: 24px; }
}

@media (max-width: 560px) {
  .steps-grid, .form-row-half { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .split-grid { grid-template-columns: 1fr; }
  .cta-inner { display: block; }
  .cta-actions { margin-top: 28px; }
  .numbered-list li { padding-left: 60px; }
}

/* ==========================================================================
   Sitemap build-out: hubs, related links, FAQ, legal, blog, empty states
   ========================================================================== */

/* Narrow reading column for FAQ, legal, and blog posts */
.container-narrow { max-width: 760px; }

/* Practice-areas hub grid: allow more than 3 across */
.cards-grid-areas { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards-grid-areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-grid-areas { grid-template-columns: 1fr; } }
.cards-grid-areas .card { padding: 32px 28px 28px; }

/* Related practice areas (foot of a practice page) */
.related-areas { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-light); }
.related-areas ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-areas a {
  display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--ink); border: 1px solid var(--gray-light); border-radius: 999px; padding: 8px 16px;
}
.related-areas a:hover { border-color: var(--red); color: var(--red); }

/* Simple inline link lists (city pages) */
.link-list { list-style: none; margin: 16px 0 24px; padding: 0; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--gray-light); }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.muted-note { font-size: 14px; color: var(--gray-mid); }

/* Footer talk block */
.footer-talk { margin-top: 14px; }

/* FAQ accordion (native <details>, no JS) */
.faq-list { border-top: 1px solid var(--gray-light); }
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--red); line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--red); }
.faq-answer { padding: 0 44px 24px 0; }
.faq-answer p { margin: 0; color: var(--gray-mid); font-size: 15.5px; line-height: 1.7; }

/* Legal prose pages */
.legal-prose h2 { font-size: 1.35rem; margin: 2em 0 0.5em; }
.legal-prose p { max-width: 68ch; line-height: 1.7; color: var(--body-color); }
.legal-updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gray-mid); margin-bottom: 2rem; }

/* Empty-state panels (results, testimonials, empty blog) */
.empty-state {
  border: 1px solid var(--gray-light); border-left: 4px solid var(--red);
  background: var(--tint); padding: 32px 36px; max-width: 720px;
}
.empty-state p { color: var(--body-color); }
.empty-state .reviews-disclaimer { margin-top: 16px; }
.empty-state .btn { margin-top: 12px; }

/* --- Blog list: single-column divided rows, so each image reads clearly as
   part of its own post (image left, text right; stacks on mobile). --- */
.post-list { display: flex; flex-direction: column; max-width: 840px; }
/* Inside the index content-grid the list fills its column (sidebar sits right). */
.content-grid .post-list { max-width: none; }
.content-grid .post-card:first-child { padding-top: 0; border-top: 0; }

/* Sidebar practice-area links (blog index). */
.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { border-top: 1px solid var(--gray-light); }
.sidebar-links li:last-child { border-bottom: 1px solid var(--gray-light); }
.sidebar-links a { display: block; padding: 12px 0; text-decoration: none;
  color: var(--ink); font-size: 15px; font-weight: 600; }
.sidebar-links a:hover { color: var(--red); }
.post-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 36px 0;
  border-top: 1px solid var(--gray-light);
}
.post-card:last-child { border-bottom: 1px solid var(--gray-light); }
/* order:2 pushes the thumbnail to the right so every headline aligns left. */
.post-card-media { flex: 0 0 240px; order: 2; display: block; overflow: hidden; margin: 0; }
.post-card-media img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transition: transform 0.4s ease, filter 0.4s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.03); filter: grayscale(0) contrast(1); }
.post-card-body { flex: 1 1 auto; min-width: 0; }
.post-card-date, .post-card-excerpt { color: var(--gray-mid); }
.post-card-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 8px; }
.post-card h2 { font-size: 1.4rem; line-height: 1.15; margin: 0 0 10px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--red); }
.post-card-excerpt { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
@media (max-width: 620px) {
  .post-card { flex-direction: column; gap: 16px; padding: 28px 0; }
  .post-card-media { order: 0; flex-basis: auto; width: 100%; } /* image back on top when stacked */
  .post-card-media img { aspect-ratio: 16 / 9; }
}

/* --- Blog single --- */
.eyebrow-link { color: inherit; text-decoration: none; }
.eyebrow-link:hover { color: #fff; text-decoration: underline; }
.post-title { max-width: 20ch; }
.post-byline { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 8px 0 0; }
.post-hero { margin: 0 0 40px; }
.post-hero::after { display: none; }
.post-body { font-size: 1.075rem; line-height: 1.75; color: var(--body-color); }
.post-body h2 { font-size: 1.4rem; margin: 1.8em 0 0.5em; }
.post-body p { max-width: 68ch; }
.post-disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-light);
  font-size: 13px; color: var(--gray-mid); max-width: 68ch; }

/* Blog single-post sidebar: recent posts + a consultation CTA card. */
.blog-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 36px; }
.blog-sidebar .side-card { position: static; top: auto; }
.sidebar-block .eyebrow { margin-bottom: 14px; }
.recent-posts { list-style: none; margin: 0; padding: 0; }
.recent-posts li { border-top: 1px solid var(--gray-light); }
.recent-posts li:last-child { border-bottom: 1px solid var(--gray-light); }
.recent-posts a { display: block; padding: 14px 0; text-decoration: none; }
.rp-date { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gray-mid); margin-bottom: 4px; }
.rp-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.recent-posts a:hover .rp-title { color: var(--red); }
@media (max-width: 1024px) { .blog-sidebar { position: static; } }

/* ==========================================================================
   Home: photo feature cards + map/contact section
   ========================================================================== */

/* Photo-background practice cards (home only; the hub keeps the flat .card). */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 40px 32px 32px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(19,19,19,0.3) 0%, rgba(19,19,19,0.88) 100%),
    var(--card-img, none) center / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s ease, transform 0.6s ease;
}
/* Photoless areas: a branded dark card (subtle red glow) so they read as
   intentional companions to the photo cards, not missing images. */
.feature-card-plain::before {
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(197,5,12,0.28) 0%, transparent 58%),
    var(--ink);
}
.feature-card-plain:hover::before { transform: none; }
.feature-card:hover::before { filter: grayscale(0.1) contrast(1.05); transform: scale(1.05); }
.feature-card > * { position: relative; z-index: 1; }
.feature-card h2 { color: #fff; font-size: 22px; margin: auto 0 10px; } /* title pinned toward the bottom */
.feature-card p { color: rgba(255,255,255,0.82); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.feature-card .link-arrow { color: #fff; }
.feature-card:hover .link-arrow { color: var(--gray-light); }
.feature-card:hover .link-arrow::after { transform: translateX(5px); }

/* Feature-card grid (practice-areas hub). */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid .feature-card { min-height: 260px; padding: 32px 28px 28px; }
.feature-grid .feature-card h2 { font-size: 20px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Map + contact section (dark, grayscale map). */
/* Gray band (not ink): the dark crash-photo section sits directly above and the
   red CTA below — this keeps the three from stacking as heavy dark-on-dark. */
.home-visit { background: var(--gray-light); color: var(--ink); }
.home-visit .eyebrow { color: var(--gray-mid); }
.home-visit .section-title { color: var(--ink); }
.home-visit-info p { color: #3d3d3d; max-width: 34em; }
.home-visit .link-arrow-light { color: var(--ink); }
.home-visit .link-arrow-light:hover { color: var(--gray-mid); }
.home-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.visit-lines { list-style: none; margin: 28px 0 32px; padding: 0; }
.visit-lines li {
  display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start;
  padding: 15px 0; border-top: 1px solid rgba(19, 19, 19, 0.12);
}
.visit-lines li:last-child { border-bottom: 1px solid rgba(19, 19, 19, 0.12); }
.visit-icon { display: inline-flex; color: var(--red); padding-top: 1px; }
.visit-icon svg { width: 20px; height: 20px; }
.visit-lines span:last-child { color: #3d3d3d; line-height: 1.5; }
.visit-lines a { color: var(--ink); text-decoration: none; }
.visit-lines a:hover { color: var(--gray-mid); text-decoration: underline; }
.home-visit-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.home-visit-map iframe {
  display: block; width: 100%; height: 440px; border: 0;
  filter: grayscale(1) contrast(1.02);
}
@media (max-width: 820px) {
  .home-visit-grid { grid-template-columns: 1fr; }
  .home-visit-map iframe { height: 320px; }
}

/* About page: bio action row (button + optional Google reviews link). */
.about-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }

/* ==========================================================================
   Utility icons (phone/email/map-pin/clock/external-link) — currentColor SVGs
   ========================================================================== */
/* Visually-hidden label kept for screen readers where an icon replaces text. */
.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;
}
/* Eyebrow label with a leading icon (contact page, footer). */
.eyebrow-icon { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-icon svg { width: 13px; height: 13px; display: block; }
/* External-link icon trailing a link (opens in a new tab). */
.ext-link { display: inline-flex; align-items: center; gap: 6px; }
.ext-link svg { width: 12px; height: 12px; display: block; }
/* Small leading icon on the footer phone/email lines. */
.footer-ic { display: inline-flex; vertical-align: -2px; margin-right: 8px; }
.footer-ic svg { width: 13px; height: 13px; display: block; }

/* Footer address: hanging map-pin, address lines aligned to its right. */
.footer-address { display: flex; gap: 8px; align-items: flex-start; }
.footer-address .footer-ic { margin-right: 0; padding-top: 2px; }
