/* =============================================
   WYDE & ASSOCIATES — Global Stylesheet
   CYR-style rebuild: modern teal/orange palette,
   Inter + Playfair, dark hero, rounded cards.
   ============================================= */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,400;1,500;1,600&display=swap');

/* --- Tokens (CYR) --- */
:root {
  --ink:        #0b0f1a;
  --ink-2:      #1e2535;
  --ink-3:      #374151;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --bg:         #ffffff;
  --bg-soft:    #f9fafb;
  --bg-teal:    #f0fdfa;
  --teal:       #0d9488;
  --teal-d:     #0f766e;
  --teal-l:     #ccfbf1;
  --teal-100:   #5eead4;
  --orange:     #ea580c;
  --orange-d:   #c2410c;
  --gold:       #f59e0b;
  --green:      #16a34a;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  --font-sans:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:'Playfair Display', Georgia, 'Times New Roman', serif;

  /* legacy aliases so existing inner pages keep working */
  --navy:       var(--ink);
  --navy-deep:  #070b14;
  --navy-dark:  var(--ink-2);
  --gold-bright:var(--orange);
  --gold-dark:  var(--orange-d);
  --gold-deep:  #9a3412;
  --white:      #ffffff;
  --cream:      var(--bg-soft);
  --light-bg:   var(--bg-soft);
  --bone:       var(--bg-soft);
  --text-dark:  var(--ink);
  --text-mid:   var(--ink-3);
  --text-light: var(--muted);
  --border-soft:#f3f4f6;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p  { font-size: 1.02rem; line-height: 1.7; color: var(--ink-3); }
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* --- Container --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* --- TOPBAR (legacy, slim above header) --- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a { color: var(--teal-100); font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar .credential { color: rgba(255,255,255,0.85); }
@media (max-width: 760px) { .topbar-inner { flex-direction: column; padding: 0.5rem 1rem; gap: 0.2rem; } }

/* --- HEADER --- */
.site-header {
  background: rgba(11,15,26,.97);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo img {
  height: 56px;
  width: auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.logo-text {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0.4px;
  color: #ffffff;
  white-space: nowrap;
}
.logo-amp {
  color: var(--teal-100);
  font-style: italic;
  font-weight: 500;
}
.logo-pllc {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--teal-100);
  padding-left: 9px;
  border-left: 1px solid rgba(94,234,212,.55);
}
@media (max-width: 540px) {
  .logo-text { font-size: 18px; letter-spacing: 0.3px; }
  .logo-pllc { display: none; }
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
  display: inline-block;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.main-nav .nav-dropdown { position: relative; }
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: rgba(11,15,26,.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 8px;
  margin-top: 6px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0;
  z-index: 1000;
}
/* Invisible hover bridge so the cursor can cross the gap between the
   trigger and the menu without dropping the :hover state. */
.main-nav .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}
.main-nav .nav-dropdown:hover .dropdown-menu,
.main-nav .nav-dropdown:focus-within .dropdown-menu { display: flex; }
.main-nav .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,.78);
  border-radius: 8px;
}
.main-nav .dropdown-menu a:hover { background: rgba(13,148,136,.18); color: var(--teal-100); }
/* Sub-dropdown: MVA practice areas nested under Auto Accident Injuries */
.main-nav .has-submenu { position: relative; }
.main-nav .dropdown-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 4px;
  min-width: 230px;
  background: rgba(11,15,26,.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0;
  z-index: 1001;
}
.main-nav .dropdown-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
  background: transparent;
}
.main-nav .has-submenu:hover .dropdown-submenu,
.main-nav .has-submenu:focus-within .dropdown-submenu { display: flex; }
.main-nav .has-submenu > a::after { content: " \203A"; opacity: .6; }
.main-nav .dropdown-submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,.78);
  border-radius: 8px;
}
.main-nav .dropdown-submenu a:hover { background: rgba(13,148,136,.18); color: var(--teal-100); }
.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.2;
}
.header-cta .cta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--teal-100);
  text-transform: uppercase;
}
.header-cta .phone {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}
.header-cta .phone:hover { color: var(--teal-100); }
.header-cta .tagline {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11,15,26,.98);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px 16px 20px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .main-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .main-nav .dropdown-menu {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0 0 0 12px;
    box-shadow: none;
    margin-top: 0;
  }
  .main-nav .dropdown-submenu {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0 0 0 12px;
    box-shadow: none;
    margin-top: 0;
  }
  .main-nav .has-submenu > a::after { display: none; }
  .header-cta { display: none; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .2px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
}
/* Wyde's legacy .btn-gold now styled like CYR's orange CTA */
.btn-gold,
.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(234,88,12,.35);
}
.btn-gold:hover,
.btn-orange:hover {
  background: var(--orange-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(234,88,12,.45);
  color: #fff;
}
.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13,148,136,.3);
}
.btn-teal:hover { background: var(--teal-d); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn-white {
  background: #fff;
  color: var(--teal-d);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn.lg { font-size: 19px; padding: 18px 38px; }

/* --- HERO (dark, CYR-style) --- */
.hero {
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(13,148,136,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(234,88,12,.10) 0%, transparent 60%);
  padding: 72px 28px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-bg { display: none; } /* legacy element kept hidden */
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal-100), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle,
.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,148,136,.15);
  border: 1px solid rgba(13,148,136,.35);
  color: var(--teal-100);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-100);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-checklist {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 16.5px;
  line-height: 1.5;
}
.hero-checklist .ck {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(13,148,136,.25);
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--teal-100);
  font-size: 11px;
  font-weight: 900;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-proof .s { color: var(--gold); font-size: 19px; letter-spacing: 2px; }
.hero-proof .sc { font-weight: 800; color: #fff; font-size: 17px; }
.hero-proof .sl { color: rgba(255,255,255,.5); font-size: 15px; }
.hero-proof .div { color: rgba(255,255,255,.2); font-size: 20px; }
.hero-proof .lock { display:inline-flex; align-items:center; gap:5px; color:rgba(255,255,255,.55); font-size: 14.5px; }
.hero-proof .lock svg { color: var(--teal); }
.hero-text { position: relative; z-index: 2; }

/* --- Hero photo card --- */
.hero-photo-col {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  align-self: center;
  justify-self: end;
  width: min(100%, 520px);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.hero-photo-col img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.hero-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent 30%, rgba(11,15,26,.92) 100%);
  padding: 48px 22px 22px;
}
.hero-photo-name { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.hero-photo-title { font-size: 14.5px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.hero-photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(13,148,136,.25);
  border: 1px solid rgba(13,148,136,.45);
  color: var(--teal-100);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo-col { justify-self: center; width: min(100%, 420px); }
}

/* --- Availability / trust strip (legacy .avail-bar) --- */
.avail-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
  text-align: center;
  overflow: hidden;
}
.avail-bar .avail-track {
  display: flex;
  width: max-content;
  animation: avail-marquee 45s linear infinite;
}
.avail-bar .avail-track:hover { animation-play-state: paused; }
@keyframes avail-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .avail-bar .avail-track { animation: none; }
}
.avail-bar p,
.avail-bar .avail-content {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 0;
  color: var(--ink-3);
  margin: 0;
}
.avail-bar .sep { color: var(--teal); margin: 0 10px; font-weight: 800; }
.avail-bar .mobile-only-sep { display: inline; }
.avail-bar .avail-content { padding-right: 24px; }

@media (max-width: 760px) {
  .avail-bar { padding: 12px 0; }
  .avail-bar .avail-track { animation-duration: 28s; }
}

/* --- Sections --- */
section { padding: 72px 28px; }
.section { padding: 72px 28px; }
.section-light { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.7); }
.section-teal { background: var(--bg-teal); }
.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 18px; color: var(--muted); }
.divider {
  width: 56px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 14px auto 18px;
}

/* --- About / bio block --- */
.about-bio {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-bio h2 { margin-bottom: 4px; }
.about-bio p { margin: 14px 0; }
.credentials-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 4px;
}
.credential {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1.4;
}
.credential::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-l);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
@media (max-width: 800px) {
  .about-bio { grid-template-columns: 1fr; }
  .credentials-list { grid-template-columns: 1fr; }
}

/* --- Service cards grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}
.services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .services-grid.cols-3,
  .services-grid.cols-2 { grid-template-columns: 1fr; }
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(13,148,136,.4);
}
.service-card h2,
.service-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 4px 0 0;
}
.service-card p { font-size: 15.5px; color: var(--ink-3); line-height: 1.65; }
.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-l);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-d);
}
.service-icon .svg-icon { width: 26px; height: 26px; color: var(--teal-d); }
.svg-icon { width: 24px; height: 24px; }

/* --- Why grid --- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .why-us-grid { grid-template-columns: 1fr; }
}
.why-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  align-items: flex-start;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.why-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #d1d5db;
}
.why-item h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}
.why-item p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--teal-l);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-d);
}
.why-icon .svg-icon { width: 24px; height: 24px; color: var(--teal-d); }

/* --- Google reviews bar + cards --- */
.g-rating-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  max-width: 420px;
  margin: 0 auto 44px;
}
.g-wordmark { font-size: 22px; font-weight: 900; letter-spacing: -1px; display: flex; }
.g-wordmark .gb { color: #4285F4; }
.g-wordmark .gr { color: #EA4335; }
.g-wordmark .gy { color: #FBBC05; }
.g-wordmark .gg { color: #34A853; }
.g-score { font-size: 36px; font-weight: 900; color: var(--ink); letter-spacing: -1px; }
.g-stars-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.g-stars { font-size: 18px; color: var(--gold); letter-spacing: 2px; }
.g-stars-row .count { font-size: 13px; color: var(--muted); }

.reviews-grid {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto 28px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.reviews-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: review-scroll 60s linear infinite;
  padding: 6px 0 10px;
}
.reviews-grid:hover .reviews-track,
.reviews-grid:focus-within .reviews-track {
  animation-play-state: paused;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  flex: 0 0 320px;
  width: 320px;
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@keyframes review-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; transform: none; }
  .reviews-grid {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: x mandatory;
  }
  .review-card { scroll-snap-align: start; }
}
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.review-meta .r-name { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.review-meta .r-date { font-size: 13.5px; color: var(--muted); }
.review-stars { font-size: 16px; color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: 15px; color: var(--ink-3); line-height: 1.65; }
.review-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.review-source .g-dot {
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}
.reviews-cta { text-align: center; margin-top: 16px; }

/* --- Contact form (CYR dark form bar style) --- */
.contact-form-section {
  background: var(--ink);
  padding: 72px 28px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.contact-form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 30% 50%, rgba(13,148,136,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 30%, rgba(234,88,12,.08) 0%, transparent 60%);
  pointer-events: none;
}
.contact-form-section .container { position: relative; z-index: 1; max-width: 720px; }
.contact-form-section .eyebrow { color: var(--teal-100); justify-content: center; display: flex; }
.contact-form-section .eyebrow::before { background: var(--teal-100); }
.contact-form-section h2 {
  color: #fff;
  text-align: center;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
}
.contact-form-section .sub {
  color: rgba(255,255,255,.65);
  text-align: center;
  font-size: 17px;
  margin: 8px 0 32px;
}
.contact-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal-100);
  background: rgba(255,255,255,.1);
}
.contact-form select option { background: var(--ink); color: #fff; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { width: 100%; }
.form-note {
  margin-top: 16px;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  display: inline-block;
}

/* --- Eligibility form (record-clearing intake) --- */
.eligibility-form .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .eligibility-form .form-grid-2 { grid-template-columns: 1fr; } }
.eligibility-form .field { display: flex; flex-direction: column; min-width: 0; }
.eligibility-form .field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
/* Counties multi-select dropdown */
.eligibility-form .ms-dropdown { position: relative; }
.eligibility-form .ms-dropdown-toggle {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: rgba(255,255,255,.55);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eligibility-form .ms-dropdown-toggle.has-selection { color: #fff; }
.eligibility-form .ms-dropdown-toggle::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}
.eligibility-form .ms-dropdown.open .ms-dropdown-toggle::after { transform: rotate(-135deg) translateY(2px); }
.eligibility-form .ms-dropdown-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eligibility-form .ms-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--ink);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 8px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 40;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.eligibility-form .ms-dropdown.open .ms-dropdown-menu { display: block; }
.eligibility-form .ms-dropdown-menu label {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  gap: 10px;
}
.eligibility-form .ms-dropdown-menu label:hover { background: rgba(255,255,255,.08); }
.eligibility-form .ms-dropdown-menu input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--orange, #ea580c);
  margin: 0;
  flex-shrink: 0;
}
/* Clearing-speed radio cards */
.eligibility-form .speed-options { display: grid; gap: 10px; }
.eligibility-form .speed-option {
  display: block;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.eligibility-form .speed-option:hover { border-color: rgba(255,255,255,.3); }
.eligibility-form .speed-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eligibility-form .speed-option input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--orange, #ea580c);
  margin: 0;
  flex-shrink: 0;
}
.eligibility-form .speed-option .speed-name { font-weight: 700; color: #fff; }
.eligibility-form .speed-option .speed-price { color: var(--teal-100); font-weight: 700; margin-left: auto; }
.eligibility-form .speed-option .speed-timeline {
  display: block;
  margin: 6px 0 0 30px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.eligibility-form .speed-option:has(input[type="radio"]:checked) {
  border-color: var(--orange, #ea580c);
  background: rgba(234,88,12,.08);
}

/* --- Form bar (CYR original under-hero variant) --- */
.form-bar-section { background: var(--ink); padding: 0 28px 56px; }
.form-bar-wrap {
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}

/* --- Steps / process (CYR pattern) --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-d));
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(13,148,136,.35);
}
.step h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* --- FAQ (CYR pattern) --- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq-btn:hover { background: var(--bg-soft); }
.faq-btn .faq-arrow { color: var(--teal); transition: transform .25s; font-size: 18px; }
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .faq-answer { display: block; }

/* --- Final CTA (CYR teal gradient block) --- */
.final-cta {
  background: linear-gradient(135deg, var(--teal-d) 0%, var(--teal) 60%, #0891b2 100%);
  padding: 80px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.final-cta .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.final-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.final-cta p {
  color: rgba(255,255,255,.85);
  font-size: 18px;
  margin: 0 auto 28px;
  max-width: 560px;
}
.final-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Video embeds --- */
.video-section {
  margin: 2.5rem auto;
  max-width: 880px;
}
.video-section h3 {
  margin-bottom: 0.75rem;
}
.video-section .video-caption {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "As Seen On" media features block */
.media-features-section {
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 28px;
}
.media-features-section > h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.media-features-section > .lead {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.media-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) {
  .media-features { grid-template-columns: 1fr; }
}
.media-feature {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.media-feature .video-embed { margin: 0 0 14px; border-radius: var(--radius); }
.media-feature .source {
  font-size: 0.75rem;
  color: var(--teal-d);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.media-feature h4 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}

/* --- Footer --- */
.site-footer {
  background: #070b14;
  color: rgba(255,255,255,.6);
  padding: 56px 28px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-logo img {
  width: 240px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand-name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.4px;
  color: #ffffff;
}
.footer-brand-amp {
  color: var(--teal-100);
  font-style: italic;
  font-weight: 500;
}
.footer-brand-pllc {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--teal-100);
  padding-left: 9px;
  border-left: 1px solid rgba(94,234,212,.55);
}
.footer-logo p { font-size: 14.5px; color: rgba(255,255,255,.55); line-height: 1.65; max-width: 340px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover {
  background: rgba(13,148,136,.18);
  border-color: rgba(13,148,136,.4);
  color: var(--teal-100);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--teal-100);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: 14.5px;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,.65); font-size: 14.5px; margin-bottom: 6px; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.legal-note { max-width: 680px; line-height: 1.55; }

/* --- Generic rich-text content (used on inner pages) --- */
.section h1,
.section h2,
.section h3 { color: var(--ink); }
.section h2 { margin-bottom: 14px; }
.section h3 { margin: 28px 0 8px; }
.section p { margin-bottom: 14px; }
.section ul,
.section ol { padding-left: 22px; margin-bottom: 16px; color: var(--ink-3); }
.section ul li,
.section ol li { margin-bottom: 6px; line-height: 1.65; }
.section a:not(.btn) { color: var(--teal-d); font-weight: 600; border-bottom: 1px solid rgba(13,148,136,.25); }
.section a:not(.btn):hover { border-bottom-color: var(--teal); color: var(--teal); }
.section strong { color: var(--ink); }

/* Inner-page hero (legacy fallback) */
.page-hero {
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(13,148,136,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(234,88,12,.10) 0%, transparent 60%);
  padding: 80px 28px 56px;
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 18px; max-width: 680px; margin: 0 auto; }

/* Sub heading + dot (legacy) */
.sub { color: var(--muted); font-size: 17px; }

/* ═════════════ INNER PAGES — additional component styles ═════════════ */

.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

.section-cream { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p, .section-dark li { color: rgba(255,255,255,.75); }
.section-dark a:not(.btn) { color: var(--teal-100); border-bottom-color: rgba(94,234,212,.35); }
.section-dark .credential { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.section-dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.section-dark .card h3, .section-dark .card h4 { color: #fff; }

/* Light cards used inside a .section-dark wrapper keep dark text */
.section-dark .service-card,
.section-dark .why-item,
.section-dark .review-card,
.section-dark .step,
.section-dark .blog-card,
.section-dark .result-card,
.section-dark .faq-item { color: var(--ink); }
.section-dark .service-card h2,
.section-dark .service-card h3,
.section-dark .why-item h3,
.section-dark .step h3,
.section-dark .blog-card h2,
.section-dark .blog-card h3,
.section-dark .result-card h3,
.section-dark .faq-btn { color: var(--ink); }
.section-dark .service-card p,
.section-dark .why-item p,
.section-dark .step p,
.section-dark .blog-card p,
.section-dark .result-card p,
.section-dark .faq-answer { color: var(--muted); }
.section-dark .service-card a:not(.btn),
.section-dark .why-item a:not(.btn) { color: var(--teal-d); border-bottom-color: rgba(13,148,136,.25); }

.content-section { padding: 56px 28px; }
.content-section .container { max-width: 880px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; color: var(--ink-3); line-height: 1.75; }
.prose h2 { margin: 36px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose a:not(.btn) { color: var(--teal-d); font-weight: 600; border-bottom: 1px solid rgba(13,148,136,.25); }
.prose a:not(.btn):hover { border-bottom-color: var(--teal); color: var(--teal); }

/* Generic cards grid (used on services, criminal-defense, etc.) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}
.cards-grid-5 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .cards-grid.cols-2, .cards-grid.cols-3 { grid-template-columns: 1fr; }
}

/* Prevent orphan cards: force balanced 2x2 when a grid has exactly 4 items.
   Applies to any auto-fit grid unless an explicit cols-* override is set. */
@media (min-width: 720px) {
  .cards-grid:not(.cols-2):not(.cols-3):not(.cards-grid-5):has(> :nth-child(4):last-child),
  .services-grid:not(.cols-2):not(.cols-3):has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
  }
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(13,148,136,.35);
}
.card-dark {
  background: var(--ink-2);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
}
.card-dark h3, .card-dark h4 { color: #fff; }
.card-dark p { color: rgba(255,255,255,.7); }
.card-text-only { padding: 22px 22px; }
.card-body { padding: 14px 0 0; }
.card h3, .card h4 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.card .icon {
  width: 44px;
  height: 44px;
  background: var(--teal-l);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-d);
}
.card .icon svg { width: 22px; height: 22px; }

/* Results page */
.results-cat {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 36px 0 14px;
  text-align: center;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 24px;
}
.result-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.result-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.result-card .amount,
.result-card .stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--teal-d);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.result-card .stat-unit {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.result-card h3 { font-size: 16px; font-weight: 800; margin: 10px 0 6px; }
.result-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.results-disclaimer {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}

/* Blog index */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(13,148,136,.4);
}
.blog-card h3, .blog-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--ink);
  letter-spacing: -.3px;
}
.blog-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.blog-card a:not(.btn) {
  color: var(--teal-d);
  font-weight: 700;
  font-size: 14.5px;
  border-bottom: none;
  margin-top: auto;
}
.blog-card a:not(.btn)::after { content: ' →'; }

/* Lead magnet block */
.lead-magnet {
  background: var(--ink-2);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.08);
}
.lead-magnet h3,
.lead-magnet h2 { color: #fff; margin-bottom: 12px; }
.lead-magnet p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.lead-magnet .btn { display: inline-flex; }
@media (max-width: 600px) {
  .lead-magnet { padding: 28px 24px; }
  .lead-magnet .btn { width: 100%; justify-content: center; }
}
.lm-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--teal-100);
  margin-bottom: 10px;
}
.lm-text { font-size: 16px; line-height: 1.65; }

/* Location intro block (location/area pages) */
.location-intro {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  max-width: 880px;
  margin: 0 auto 32px;
}
.location-intro h2 { margin-bottom: 10px; }
.location-intro p { color: var(--ink-3); }

/* --- Hero H2 (subtitle) reset — keep visual weight of the old <p> --- */
.hero h2.subtitle,
.hero h2.sub,
.page-hero h2.sub {
  font-family: var(--font-sans, inherit);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.hero h2.subtitle,
.hero h2.sub {
  font-size: 19px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 520px;
}
.page-hero h2.sub {
  color: rgba(255,255,255,.7);
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ═════════════ MOBILE HERO — exact structure: H1, H2, photo, CTA ═════════════ */
@media (max-width: 760px) {
  /* Flatten hero-text so its children become direct children of hero-inner,
     allowing photo to sit between H2 and the CTA. */
  .hero .hero-inner { display: flex; flex-direction: column; gap: 18px; }
  .hero .hero-text { display: contents; }

  /* Explicit order: H1 → H2 → photo → CTA */
  .hero h1                 { order: 1; margin: 0; }
  .hero h2.subtitle,
  .hero h2.sub             { order: 2; margin: 0; max-width: 100%; }
  .hero .hero-photo-col    { order: 3; width: 100%; max-width: 420px; margin: 6px auto 6px; justify-self: center; }
  .hero .hero-text > .btn,
  .hero .btn               { order: 4; align-self: stretch; text-align: center; margin-top: 4px; }

  /* Hide everything else from the mobile hero */
  .hero .hero-pill,
  .hero .hero-checklist,
  .hero .hero-proof,
  .hero .hero-photo-overlay { display: none !important; }

  /* page-hero variants that include the photo column */
  .page-hero .hero-inner { display: flex; flex-direction: column; gap: 18px; }
  .page-hero .hero-text  { display: contents; }
  .page-hero h1                  { order: 1; margin: 0; }
  .page-hero h2.sub              { order: 2; margin: 0; max-width: 100%; }
  .page-hero .hero-photo-col     { order: 3; width: 100%; max-width: 420px; margin: 6px auto; }
  .page-hero .hero-text > .btn,
  .page-hero .btn                { order: 4; align-self: stretch; text-align: center; }
  .page-hero .hero-photo-overlay { display: none !important; }
}

/* --- Print --- */
@media print { .site-header, .site-footer, .nav-toggle, .contact-form-section { display: none; } }

/* ============================================================
   CHARGE SUBPAGES (Criminal Defense practice subcategories)
   ============================================================ */

/* Freshness / last-updated line */
.last-updated { font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 14px; }

/* E-E-A-T author block */
.eeat { background: var(--bg-teal); border: 1px solid var(--teal-l); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 18px 22px; margin: 26px auto; max-width: 760px; font-size: 15px; line-height: 1.7; color: var(--ink-3); }
.eeat strong { color: var(--ink); }
.eeat .adv { display: block; margin-top: 10px; font-size: 12.5px; font-style: italic; color: var(--muted); }

/* Table of contents */
.charge-toc { max-width: 760px; margin: 0 auto 30px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 26px; }
.charge-toc h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.charge-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.charge-toc li { margin-bottom: 7px; line-height: 1.5; }
.charge-toc a { color: var(--teal-d); font-weight: 600; }
@media (max-width: 640px){ .charge-toc ol { columns: 1; } }

/* TL;DR declarative summary under each H2 */
.tldr { border-left: 4px solid var(--gold); background: #fffbeb; border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 18px; margin: 4px 0 18px; font-size: 15.5px; font-style: italic; color: var(--ink-2); line-height: 1.65; }
.tldr strong { font-style: normal; }

/* Statutory citation callout */
.statute-callout { background: var(--ink); color: #e5e7eb; border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; font-size: 14.5px; line-height: 1.7; }
.statute-callout h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.statute-callout code, .statute-callout .cite { color: #fcd34d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }

/* Legal data tables (penalty matrix, comparison) */
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14.5px; box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; }
.legal-table th, .legal-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: .01em; }
.legal-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.legal-table tbody tr:hover { background: var(--bg-teal); }
.legal-table .lvl { font-weight: 700; color: var(--ink); white-space: nowrap; }
.legal-table .yes { color: var(--teal-d); font-weight: 700; }
.legal-table .no  { color: var(--orange-d); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-note { font-size: 12.5px; color: var(--muted); margin: -10px 0 24px; font-style: italic; }

/* Numbered step chips (first 24 hours) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 26px; max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; margin-bottom: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); line-height: 1.65; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; background: var(--teal); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.steps li strong { color: var(--ink); }

/* Pricing band */
.fee-band { max-width: 760px; margin: 26px auto; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #e5e7eb; border-radius: var(--radius-lg); padding: 28px 30px; text-align: center; }
.fee-band h3 { color: #fff; margin: 0 0 8px; }
.fee-band p { font-size: 15px; line-height: 1.7; margin: 0 0 16px; color: #cbd5e1; }

/* Inline CTA strip */
.cta-strip { max-width: 760px; margin: 26px auto; background: var(--bg-teal); border: 1px solid var(--teal-l); border-radius: var(--radius); padding: 20px 24px; text-align: center; }
.cta-strip p { font-size: 16px; font-weight: 600; color: var(--ink-2); margin: 0 0 12px; }

/* Related topics */
.related-topics { max-width: 760px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--border); }
.related-topics h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.related-topics a { display: inline-block; margin: 0 14px 8px 0; color: var(--teal-d); font-weight: 600; border-bottom: 1px solid rgba(13,148,136,.25); }

/* Service-card "Learn more" link to charge subpages */
.service-card .card-link { margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--teal-d); border: none; padding-top: 6px; }
.service-card .card-link:hover { color: var(--teal); }
.service-card h2 a { color: inherit; text-decoration: none; }
.service-card h2 a:hover { color: var(--teal-d); }
