/* ============================================================
   James R. Barnes, Attorney at Law — jrbarneslaw.com
   Design system per Brand Guidelines V1.0 (July 2026)
   Navy ground · Cyan action · Brass emphasis (max 1-2/page)
   Source Serif 4 headlines · Public Sans body · Libre Bodoni accent
   ============================================================ */

:root {
  /* Brand */
  --navy: #042C42;
  --navy-deep: #02202F;
  --navy-800: #0C3750;
  --navy-700: #17425A;
  --navy-600: #2A5872;
  --navy-300: #A9C6D6;
  --navy-200: #D3E2EB;
  --navy-100: #E9F1F5;
  --cyan: #25C3FF;
  --cyan-300: #7CD7FF;
  --cyan-100: #D3F1FF;
  --cyan-700: #0784B8;   /* links on white (AA) */
  --brass: #C9A227;
  --brass-deep: #7E5E12; /* brass as text on white */
  --paper: #FEFEFE;
  --ink: #0A0A0A;
  --error: #B3261E;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent-face: "Libre Bodoni", "Bodoni MT", Didot, serif;
  --logo-face: "Tinos", "Times New Roman", Georgia, serif;

  /* Scale (brand kit) */
  --fs-display: clamp(2.5rem, 5.4vw, 3.5rem);   /* 56/62 */
  --fs-h1: clamp(2rem, 4vw, 2.5rem);            /* 40/46 */
  --fs-h2: clamp(1.5rem, 2.6vw, 1.75rem);       /* 28/34 */
  --fs-h3: 1.25rem;                             /* 20/28 */
  --fs-body: 1.0625rem;                         /* 17/27 */
  --fs-label: 0.8125rem;                        /* 13/16 */

  /* Rhythm */
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 48px; --space-6: 64px; --space-7: 96px; --space-8: 128px;
  --container: 1180px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 3px rgba(4,44,66,0.08), 0 4px 14px rgba(4,44,66,0.06);
  --shadow-2: 0 4px 10px rgba(4,44,66,0.10), 0 14px 34px rgba(4,44,66,0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 0 0 var(--space-2); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-family: var(--sans); font-size: var(--fs-h3); line-height: 1.4; }
p { margin: 0 0 var(--space-2); max-width: 68ch; }
a { color: var(--cyan-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.25rem; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--cyan-100); color: var(--navy); }

/* Focus — visible, branded, never removed */
:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .site-header :focus-visible { outline-color: var(--cyan); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Utility */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.label {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-600);
  display: block; margin-bottom: var(--space-2);
}
.on-navy .label { color: var(--cyan-300); }
.lead { font-size: 1.17rem; line-height: 1.65; color: var(--navy-700); }
.on-navy { background: var(--navy); color: var(--navy-100); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: #fff; }
.on-navy p { color: var(--navy-200); }
.on-navy a { color: var(--cyan-300); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Logo (inline SVG lockup, brand kit R1 refinement) ---------- */
/* Geometry lives in build.py's LOGO_SVG; colors + sizing here. flex/max-width
   guards stop the header flex row from squeezing the lockup. */
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; min-height: 44px; }
.logo-svg { height: 52px; width: auto; max-width: none; flex: none; display: block; }
.logo-svg text { font-family: var(--logo-face); }
.logo-svg .lg-bar { fill: var(--cyan); }
.logo-svg .lg-block { fill: #FEFEFE; }
.logo-svg .lg-b { fill: var(--navy); }      /* knockout: B cut out in the ground color */
.logo-svg .lg-name { fill: var(--cyan); }
.logo-svg .lg-sub { fill: #FEFEFE; }
@media (max-width: 480px) { .logo-svg { height: 42px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-3);
}
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 12px 14px; min-height: 44px;
  color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border-radius: var(--radius); background: none; border: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover, .site-nav .nav-toggle-sub:hover { background: rgba(255,255,255,0.08); color: var(--cyan-300); }
.site-nav a[aria-current="page"] { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: var(--radius) var(--radius) 0 0; }
.has-sub { position: relative; }
.has-sub .caret { transition: transform 0.2s var(--ease); }
.has-sub [aria-expanded="true"] .caret { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  list-style: none; padding: 8px; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-sub.open .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; color: var(--navy); padding: 11px 14px; font-weight: 500; border-radius: var(--radius); }
.sub-menu a:hover { background: var(--navy-100); color: var(--navy); }
.header-call {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cyan); color: var(--navy) !important;
  font-weight: 700; padding: 12px 20px; min-height: 46px; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 0 0 0 rgba(37,195,255,0.4);
}
.header-call:hover { background: var(--cyan-300); transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(37,195,255,0.55); }
.nav-burger {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border: 0; background: none; border-radius: var(--radius);
  align-items: center; justify-content: center; color: #fff;
}
.nav-burger:hover { background: rgba(255,255,255,0.08); }

/* Mobile nav */
@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .header-call.in-bar { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--navy-deep);
    padding: var(--space-3) clamp(16px, 4vw, 40px) var(--space-6);
    overflow-y: auto; margin-left: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a, .site-nav .nav-toggle-sub { width: 100%; font-size: 1.1rem; padding: 14px 12px; justify-content: space-between; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); border-radius: var(--radius); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.05); display: none; }
  .has-sub.open .sub-menu { display: block; }
  .sub-menu a { color: #fff; }
  .sub-menu a:hover { background: rgba(255,255,255,0.08); color: var(--cyan-300); }
  .site-nav .header-call { display: inline-flex; margin-top: var(--space-3); justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 15px 28px; min-height: 52px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-300); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(37,195,255,0.6); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-300); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn svg { flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-800) 100%);
  color: #fff;
}
.hero::after { /* cyan keyline echoing the logo bar */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cyan);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 104px);
}
.hero .label { color: var(--cyan-300); }
.hero h1 { font-size: var(--fs-display); line-height: 1.08; color: #fff; margin-bottom: var(--space-3); }
.hero .lead { color: var(--navy-200); font-size: 1.2rem; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero-note { margin-top: var(--space-3); font-size: 0.95rem; color: var(--navy-300); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--cyan); flex: none; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* Photo hero: full-bleed background with navy duotone overlay (per DESIGN:
   team photo w/ navy overlay so the cyan CTAs pop). Video slot drops into
   .hero-bg later with the same overlay. */
.hero-photo { display: flex; align-items: center; min-height: clamp(540px, 68vh, 720px); }
.hero-photo .hero-inner { width: 100%; }
.page-hero.hero-photo { display: block; min-height: 0; }
.hero-photo .hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-photo .hero-bg img, .hero-photo .hero-bg video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  filter: saturate(0.9);
  animation: hero-drift 28s ease-in-out infinite alternate;
  transform-origin: 60% 22%;
}
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .hero-photo .hero-bg img { animation: none; } }
.hero-photo .hero-bg video { position: absolute; inset: 0; transition: opacity 0.8s var(--ease); }
.hero-photo .hero-bg video.hv-fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-photo .hero-bg video { display: none; } }
.hero-photo .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(2,32,47,0.88) 0%, rgba(2,32,47,0.72) 40%, rgba(4,44,66,0.30) 68%, rgba(4,44,66,0.18) 100%),
    linear-gradient(to bottom, rgba(2,32,47,0.22), transparent 30%, transparent 64%, rgba(2,32,47,0.68));
}
.hero-photo .hero-inner { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); }
.hero-photo .page-hero-inner { position: relative; z-index: 1; }
.page-hero.hero-photo .hero-bg img { object-position: center 40%; }
/* photo page-heroes get a taller band so more of the image shows */
.page-hero.hero-photo .page-hero-inner { padding-top: clamp(96px, 13vw, 190px); padding-bottom: clamp(96px, 13vw, 190px); }
.hero-photo .hero-copy { max-width: 560px; }
/* Deterministic text contrast over photography: soft navy plate behind the
   copy block + pill chip on the eyebrow (echoes .ph-tag). Photo side untouched. */
.hero-photo .hero-copy, .hero-photo .page-hero-inner .hero-copy { position: relative; }
.hero-photo .hero-copy::before {
  content: ""; position: absolute; inset: -18px -52px; z-index: -1;
  background: rgba(2,32,47,0.52); filter: blur(30px); border-radius: 32px;
  pointer-events: none;
}
.hero-photo .label {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(2,32,47,0.88); border: 1px solid rgba(124,215,255,0.28);
  margin-bottom: 6px; font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.12em;
}
.hero-photo .lead { color: #DFEDF6; }
.hero-photo .hero-note { color: #CFE2EE; }
.page-hero.hero-photo .page-hero-inner::before {
  content: ""; position: absolute; left: -40px; top: -6px; bottom: -6px;
  width: min(820px, 92%); z-index: -1;
  background: rgba(2,32,47,0.52); filter: blur(30px); border-radius: 32px;
  pointer-events: none;
}
/* Tablet + mobile: photo-first hero. Faces live in the clear top half,
   text bottom-anchored over a strong lower scrim, copy trimmed (.m-hide). */
@media (max-width: 900px) {
  .hero.hero-photo { align-items: flex-end; }
  .hero.hero-photo .hero-bg img { object-position: 70% center; }
  .hero.hero-photo .hero-inner { padding-top: clamp(240px, 38vh, 360px); padding-bottom: 44px; }
  .hero.hero-photo .hero-bg::after {
    background: linear-gradient(to bottom,
      rgba(2,32,47,0.42) 0%, rgba(2,32,47,0.18) 26%, rgba(2,32,47,0.32) 46%,
      rgba(2,32,47,0.80) 64%, rgba(2,32,47,0.94) 100%);
  }
  .hero .m-hide { display: none; }
  .hero .hero-note { display: none; }
}
@media (max-width: 560px) {
  /* small phones: short label */
  .hero .label .m-hide-sm { display: none; }
}
@media (max-width: 760px) {
  /* the sticky call bar carries Call + Free consult on phones; the hero CTA
     row is pure duplication there */
  .hero.hero-photo .hero-ctas { display: none; }
  /* subpage photo heroes get the same photo-first treatment as home:
     subjects clear in the top zone, text bottom-anchored under the ramp */
  .page-hero.hero-photo .page-hero-inner { padding-top: clamp(200px, 30vh, 300px); padding-bottom: 36px; }
  .page-hero.hero-photo .hero-bg::after {
    background: linear-gradient(to bottom,
      rgba(2,32,47,0.42) 0%, rgba(2,32,47,0.18) 26%, rgba(2,32,47,0.32) 46%,
      rgba(2,32,47,0.80) 64%, rgba(2,32,47,0.94) 100%);
  }
}

/* Photo placeholders — intentional, branded frames */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 80 80'%3E%3Crect x='0' y='0' width='27' height='80' fill='%2325C3FF' opacity='0.12'/%3E%3Crect x='29' y='0' width='26' height='80' fill='%23FFFFFF' opacity='0.09'/%3E%3C/svg%3E") center 42% / clamp(72px, 18%, 110px) no-repeat,
    linear-gradient(160deg, rgba(4,44,66,0.55), rgba(2,32,47,0.85)),
    repeating-linear-gradient(45deg, var(--navy-700) 0 14px, var(--navy-800) 14px 28px);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: flex-end;
  aspect-ratio: 4 / 3;
}
.ph::before {
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(60% 45% at 30% 12%, rgba(37,195,255,0.16), transparent 60%);
  animation: ph-drift 9s ease-in-out infinite;
}
/* shine sweep on hover */
.ph::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; width: 40%; left: -55%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.09) 50%, transparent);
  transform: skewX(-8deg); pointer-events: none; transition: left 0.9s var(--ease);
}
.ph:hover::after { left: 120%; }
@keyframes ph-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(4%, 5%, 0); }
}
.ph .ph-tag {
  position: relative; z-index: 1; margin: 14px; padding: 8px 14px;
  background: rgba(2,32,47,0.85); border: 1px solid rgba(124,215,255,0.35);
  border-radius: 999px; color: var(--cyan-300);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.ph.portrait { aspect-ratio: 3 / 4; }
.ph.wide { aspect-ratio: 16 / 9; }
/* Real photography in the same frames: watermark/drift off, shine stays */
.ph.has-img { background: var(--navy-800); }
.ph.has-img::before { content: none; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* clickable portrait frames (attorneys hub -> bio pages) */
.ph-link { display: block; border-radius: var(--radius-lg); }
/* slow-zoom hover on all photo frames (unified photo language) */
.ph.has-img img { transition: transform 0.6s var(--ease); }
.ph.has-img:hover img, .ph-link:hover .ph.has-img img, .ph-link:focus-visible .ph.has-img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .ph.has-img:hover img, .ph-link:hover .ph.has-img img, .ph-link:focus-visible .ph.has-img img { transform: none; }
}

/* Compact header on scroll */
.site-header .header-inner { transition: padding 0.3s var(--ease); }
.site-header .logo-svg { transition: height 0.3s var(--ease); }
.site-header.scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; }
.site-header.scrolled .logo-svg { height: 42px; }
@media (prefers-reduced-motion: reduce) {
  .site-header .header-inner, .site-header .logo-svg { transition: none; }
}

/* Reading progress bar (blog articles): echoes the logo's cyan bar */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--cyan); z-index: 120; pointer-events: none;
}

/* Footer map strip */
.footer-map {
  margin-top: 14px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15); position: relative; height: 170px;
}
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
@media (prefers-reduced-motion: reduce) {
  .ph::before { animation: none; }
  .ph::after { content: none; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
/* variant: continue the page-hero ground seamlessly (reviews page) */
.stats-band.match-hero { background: var(--navy); border-top: 0; position: relative; }
.stats-band.match-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cyan); z-index: 1; }
.stats-band.match-hero .stats-grid { background: rgba(255,255,255,0.10); }
.stats-band.match-hero .stat { background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.08); }
.stat {
  background: var(--navy-deep); padding: clamp(28px, 4vw, 44px) clamp(16px, 2.5vw, 32px);
  text-align: center;
}
.stat .num {
  font-family: var(--accent-face); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; color: var(--brass);
  display: block; margin-bottom: 10px;
}
.stat .desc { color: var(--navy-200); font-size: 0.95rem; line-height: 1.45; display: block; max-width: 22ch; margin: 0 auto; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--navy-100); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Two-column feature */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse > :first-child { grid-template-columns: 1fr; order: initial; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-3); }
.card-grid.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1080px) { .card-grid.grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .card-grid, .card-grid.grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--navy-200); border-radius: var(--radius-lg);
  padding: var(--space-4); position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--navy-300); }
.card .icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  background: var(--navy-100); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.card:hover .icon { background: var(--navy); color: var(--cyan); }
.card h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .card h3 a:focus-visible { color: var(--cyan-700); text-decoration: underline; }
.card p { font-size: 0.98rem; color: var(--navy-700); }
.card .card-link {
  margin-top: auto; padding-top: var(--space-2);
  font-weight: 600; color: var(--cyan-700); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px;
}
.card .card-link .arr { transition: transform 0.2s var(--ease); }
.card:hover .card-link .arr { transform: translateX(4px); }
.card-link:focus-visible { outline-offset: 4px; }
/* stretched-link pattern */
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card.flagship { border-top: 4px solid var(--cyan); }

/* ---------- Results (framed wins) ---------- */
.result-card {
  background: #fff; border: 1px solid var(--navy-200); border-top: 4px solid var(--brass);
  border-radius: var(--radius); padding: var(--space-3) var(--space-3) var(--space-2);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; flex-direction: column;
}
.result-card .verdict { margin-top: auto; align-self: flex-start; }
.result-card .facing {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass-deep); margin: 2px 0 6px;
}
.on-navy .result-card .facing { color: var(--brass); }
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.result-card .charge { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-600); margin-bottom: 6px; }
.result-card .case-title { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.verdict {
  display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 4px;
}
.verdict.win { background: var(--navy); color: var(--cyan); }
.verdict.dismissed { background: var(--navy-100); color: var(--navy); border: 1px solid var(--navy-300); }
.results-disclaimer { font-size: 0.85rem; color: var(--navy-600); max-width: 72ch; }

/* ---------- Attorney cards / profiles ---------- */
.attorney-card { text-align: left; align-self: start; }
.attorney-card .ph { margin-bottom: var(--space-3); }
.attorney-card .role { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-700); display: block; margin-bottom: 6px; }
.cred-list { list-style: none; padding: 0; margin: var(--space-3) 0; display: grid; gap: 12px; }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.cred-list svg { color: var(--cyan-700); flex: none; margin-top: 3px; }
.on-navy .cred-list svg { color: var(--cyan); }

/* ---------- Reviews ---------- */
.review-card {
  background: #fff; border: 1px solid var(--navy-200); border-radius: var(--radius-lg);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2);
}
.review-stars { color: var(--brass); display: flex; gap: 3px; }
.review-card blockquote { margin: 0; font-size: 1.02rem; color: var(--navy-800); line-height: 1.6; }
.review-card cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.review-card .src { color: var(--navy-600); font-size: 0.85rem; }

/* ---------- Awards strip ---------- */
.awards { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.award-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--navy-200); border-radius: 999px; padding: 10px 18px;
  font-size: 0.9rem; font-weight: 600; color: var(--navy-700); background: #fff;
}
.award-badge svg { color: var(--brass-deep); flex: none; }
.on-navy .award-badge { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: var(--navy-200); }
.on-navy .award-badge svg { color: var(--brass); }

/* ---------- Steps (what happens after arrest) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--space-3); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-2); align-items: start; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--accent-face); font-size: 1.5rem; font-weight: 700; color: var(--brass-deep);
  border: 1px solid var(--navy-200); border-radius: var(--radius); width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.on-navy .steps li::before { color: var(--brass); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); }
.steps h3 { margin-bottom: 4px; }
.steps p { font-size: 0.98rem; margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq-item { border: 1px solid var(--navy-200); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 18px 20px; min-height: 56px;
  font-weight: 600; font-size: 1.05rem; color: var(--navy); font-family: var(--sans);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { background: var(--navy-100); }
.faq-q .plus { flex: none; transition: transform 0.25s var(--ease); color: var(--cyan-700); }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease), padding 0.3s var(--ease); }
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 400px; }
.faq-a p { font-size: 0.98rem; color: var(--navy-800); }

/* ---------- Charge list (practice pages) ---------- */
.charge-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.charge-list li {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--navy-200); border-radius: var(--radius);
  padding: 12px 14px; font-size: 0.96rem; color: var(--navy-800); font-weight: 500;
}
.charge-list svg { color: var(--cyan-700); flex: none; }

/* ---------- Contact / CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cyan); }
.cta-inner { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-5); align-items: center; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }
.cta-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.phone-big {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: var(--cyan); text-decoration: none; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 14px;
}
.phone-big:hover { color: var(--cyan-300); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--navy-300); border-radius: var(--radius);
  padding: 13px 14px; min-height: 48px; background: #fff; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan-700); box-shadow: 0 0 0 3px rgba(7,132,184,0.18);
}
.field .help { font-size: 0.85rem; color: var(--navy-600); }
.field .error-msg { font-size: 0.88rem; color: var(--error); font-weight: 600; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--error); }
.field.invalid .error-msg { display: block; }
.form-status { margin-top: var(--space-2); font-weight: 600; }
.form-status.ok { color: #0d6b3f; }
.form-status.fail { color: var(--error); }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 14px 0; font-size: 0.88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 6px; color: var(--navy-600); }
.crumbs li + li::before { content: "/"; color: var(--navy-300); }
.crumbs a { color: var(--cyan-700); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 0 -4px; }
.crumbs { padding: 2px 0; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cyan); }
/* Full container width so the hero text shares the same left rail as the nav
   and section content (a centered 800px box read as off-center); text measure
   is capped on the elements instead. */
.page-hero-inner { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero-inner h1 { max-width: 30ch; }
.page-hero-inner .lead { max-width: 64ch; }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); }
.page-hero .lead { color: var(--navy-200); }

/* ---------- Pull quote (Bodoni + brass, one per page) ---------- */
.pullquote {
  border-left: 4px solid var(--brass); padding: var(--space-2) 0 var(--space-2) var(--space-4);
  font-family: var(--accent-face); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45; color: var(--navy); max-width: 30ch; margin: 0;
}
.on-navy .pullquote { color: #fff; }
.pullquote cite { display: block; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--brass-deep); margin-top: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.on-navy .pullquote cite { color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--navy-200); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-5);
  padding: clamp(48px, 6vw, 80px) 0 var(--space-5);
}
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer h4, .site-footer .footer-h { color: #fff; font-family: var(--sans); font-size: 0.88rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer a { color: var(--navy-200); text-decoration: none; padding: 2px 0; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--cyan-300); }
.site-footer .logo { display: inline-flex; padding: 0; margin-bottom: 16px; }
.site-footer .logo-svg { height: 46px; }
.site-footer .logo-svg .lg-b { fill: var(--navy-deep); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-3) 0 var(--space-4); font-size: 0.8rem; color: var(--navy-300); }
.footer-legal p { max-width: 100ch; margin-bottom: 8px; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.15);
  padding: 10px max(12px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-call-bar a { flex: 1; min-height: 50px; font-size: 0.98rem; padding: 12px 10px; }
@media (max-width: 760px) {
  .mobile-call-bar { display: flex; }
  /* clearance for the fixed call bar lives INSIDE the dark footer, not on the
     white body, so no pale slab shows above the bar at the page bottom */
  .site-footer .footer-legal { padding-bottom: calc(var(--space-4) + 76px); }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }

/* ---------- Tables (plain, accessible) ---------- */
.table-wrap { overflow-x: auto; }
table.plain { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
table.plain th { text-align: left; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-600); padding: 12px 14px; border-bottom: 2px solid var(--navy-200); }
table.plain td { padding: 14px; border-bottom: 1px solid var(--navy-100); vertical-align: top; }

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

/* ---------- Blog post body ---------- */
.post-body { max-width: 720px; }
.post-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: clamp(28px, 4vw, 40px) 0 12px; }
.post-body p, .post-body li { font-size: 1.04rem; line-height: 1.7; }
.post-body p { margin-bottom: 16px; }
.post-body ol, .post-body ul { padding-left: 22px; margin-bottom: 16px; display: grid; gap: 10px; }
.post-body .post-callout {
  background: var(--cyan-soft); border-left: 3px solid var(--cyan);
  padding: 16px 20px; margin: 24px 0; border-radius: 0 8px 8px 0;
}
.post-body .post-callout p { margin: 0; }
.post-note { font-size: 0.88rem; color: var(--navy-600); margin-top: 32px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-call-bar, .site-footer, .hero-ctas, .cta-band { display: none !important; }
  body { color: #000; }
}


/* ---------- v2 revision pass ---------- */

/* In-nav phone item: mobile menu only (desktop uses the standalone pill) */
@media (min-width: 981px) { .nav-call-item { display: none; } }

/* Button color integrity on navy sections (beats .on-navy a) */
.on-navy a.btn-primary, a.btn-primary, .btn-primary { color: var(--navy); }
.on-navy a.btn-ghost, a.btn-ghost { color: #fff; }
.on-navy a.btn-navy, a.btn-navy { color: #fff; }
.on-navy .btn-navy { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); }
.on-navy .btn-navy:hover { background: rgba(255,255,255,0.18); }

/* Award badge marquee (official artwork from the firm's prior site).
   Continuous scroll, gradient edge fades, pause on hover/focus.
   Reduced motion: static wrapped wall, duplicate set hidden. */
.badge-marquee {
  overflow: hidden; position: relative; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.badge-track { display: flex; width: max-content; animation: badge-scroll 38s linear infinite; }
.badge-marquee:hover .badge-track, .badge-marquee:focus-within .badge-track { animation-play-state: paused; }
.badge-set {
  display: flex; align-items: center; list-style: none; margin: 0;
  gap: clamp(30px, 4.5vw, 60px); padding: 0 clamp(15px, 2.25vw, 30px);
}
.badge-set img {
  height: clamp(76px, 9vw, 104px); width: auto;
  filter: drop-shadow(0 2px 8px rgba(4,44,66,0.14));
  transition: transform 0.25s var(--ease);
}
.badge-set img:hover { transform: translateY(-4px) scale(1.05); }
@keyframes badge-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .badge-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .badge-set { flex-wrap: wrap; justify-content: center; }
  .badge-set[aria-hidden="true"] { display: none; }
  .badge-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Powered by */
.powered a { color: var(--navy-300); text-decoration: underline; text-underline-offset: 3px; }
.powered a:hover { color: var(--cyan-300); }

/* Magnetic CTAs (JS-driven translate; transition when not tracking) */
.btn, .header-call { will-change: transform; }
.btn.magnet-off, .header-call.magnet-off { transition: transform 0.35s var(--ease); }

/* ---------- Premium card interactions ---------- */
/* Cyan keyline grows across the card top on hover/focus (echoes the logo bar) */
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--cyan); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card.flagship::before { content: none; }
.card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--navy-300); }

/* Review cards: lift + cyan edge + brass stars pop */
.review-card { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--cyan); }
.review-card .review-stars { transition: transform 0.25s var(--ease); transform-origin: left center; }
.review-card:hover .review-stars { transform: scale(1.08); }

/* Framed wins: brass gleam sweeps the card on hover, verdict chip brightens */
.result-card { position: relative; overflow: hidden; }
.result-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(201,162,39,0.14), transparent);
  left: -60%; pointer-events: none; transition: left 0.7s var(--ease);
}
.result-card:hover::after { left: 115%; }
.result-card .verdict { transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.result-card:hover .verdict.win { box-shadow: 0 0 0 3px rgba(37,195,255,0.25); transform: translateY(-1px); }
.result-card:hover .verdict.dismissed { box-shadow: 0 0 0 3px rgba(4,44,66,0.12); transform: translateY(-1px); }

/* Charge lists: slide + check pop */
.charge-list li { transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease); }
.charge-list li:hover { transform: translateX(5px); border-color: var(--cyan); box-shadow: var(--shadow-1); }
.charge-list li svg { transition: transform 0.22s var(--ease); }
.charge-list li:hover svg { transform: scale(1.25); }

/* Steps: number tile flips to navy/brass when its step is hovered */
.steps li::before { transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.steps li:hover::before { background: var(--navy); color: var(--brass); border-color: var(--navy); }

/* Attorney cards: portrait frame glows */
.attorney-card .ph { transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.attorney-card:hover .ph { box-shadow: 0 12px 32px rgba(4,44,66,0.28); border-color: rgba(124,215,255,0.5); }

@media (prefers-reduced-motion: reduce) {
  .card:hover, .card:focus-within, .review-card:hover, .result-card:hover,
  .charge-list li:hover, .review-card:hover .review-stars, .charge-list li:hover svg { transform: none; }
  .result-card::after { content: none; }
  .card::before { transition: none; }
}

/* Local-SEO blocks on practice pages */
.local-band { border-left: 4px solid var(--cyan); background: var(--cyan-100); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: var(--space-4); }
.local-band h3 { margin-top: 0; }
.local-band p:last-child { margin-bottom: 0; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.city-chips li { background: #fff; border: 1px solid var(--navy-200); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; font-weight: 500; color: var(--navy-700); }
