/* ================================================================
   InmateFindCalifornia.com - Theme v5.0
   Playfair Display + Outfit | Navy ? Teal ? Amber
   ================================================================ */
:root {
  --navy:       #0A1628;
  --navy-mid:   #0D1F3C;
  --navy-soft:  #152B52;
  --teal:       #0EA5C9;
  --teal-light: #22D3EE;
  --teal-dim:   #0891B2;
  --amber:      #F59E0B;
  --amber-warm: #FBBF24;
  --cream:      #F8F5F0;
  --bg:         #F4F7FB;
  --surface:    #FFFFFF;
  --border:     #E2EAF4;
  --border-soft:#EEF3FA;
  --text-dark:  #0C1A2E;
  --text-body:  #2D3F58;
  --text-muted: #5A7291;
  --text-light: #8FA5BC;
  --green:      #10B981;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;
  --nav-h:      70px;
  --max-w:      1380px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-full: 9999px;
  --shadow-sm:  0 1px 4px rgba(10,22,40,.06);
  --shadow-md:  0 4px 20px rgba(10,22,40,.10);
  --shadow-lg:  0 8px 40px rgba(10,22,40,.14);
  --shadow-xl:  0 20px 60px rgba(10,22,40,.20);
  --t: 230ms cubic-bezier(.4,0,.2,1);
}

/* -- Reset --------------------------------------------------- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-y:scroll; scrollbar-gutter:stable }
body { font-family:var(--font-sans); font-size:17px; line-height:1.7; color:var(--text-body); background:var(--cream); overflow-x:hidden; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; padding-top:var(--nav-h) }
img,video { max-width:100%; display:block }
a { color:var(--teal); text-decoration:none; transition:color var(--t) }
a:hover { color:var(--teal-light) }
h1,h2,h3,h4,h5,h6 { font-family:var(--font-serif); color:var(--text-dark); line-height:1.2; font-weight:700 }
h1 { font-size:clamp(2rem,5vw,3.5rem); letter-spacing:-.02em }
h2 { font-size:clamp(1.5rem,3vw,2.25rem); letter-spacing:-.015em }
h3 { font-size:clamp(1.2rem,2.5vw,1.65rem) }
h4 { font-size:1.1rem }
p { margin-bottom:1.1rem }
p:last-child { margin-bottom:0 }
ul,ol { padding-left:1.5rem }
li { margin-bottom:.5rem }
strong { color:var(--text-dark); font-weight:700 }

/* -- Layout --------------------------------------------------- */
.wrap, .container { width:100%; max-width:var(--max-w); margin:0 auto; padding:0 2rem }
@media(max-width:640px) { .wrap, .container { padding:0 1.25rem } }
.section    { padding:6rem 0 }
.section-sm { padding:3.5rem 0 }
.section-lg { padding:8rem 0 }
@media(max-width:900px) { .section{padding:3rem 0} .section-sm{padding:1.75rem 0} }
@media(max-width:640px) { .section{padding:2rem 0} .section-sm{padding:1.25rem 0} }

/* -- Navigation ----------------------------------------------- */
#site-nav, .site-nav {
  position:fixed; top:0; left:0; right:0;
  height:var(--nav-h); z-index:1000;
  background:rgba(10,22,40,.65);
  backdrop-filter:blur(24px) saturate(1.5);
  -webkit-backdrop-filter:blur(24px) saturate(1.5);
  border-bottom:1px solid rgba(255,255,255,.07);
  transition:background var(--t), box-shadow var(--t);
}
#site-nav.scrolled, .site-nav.scrolled {
  background:rgba(10,22,40,.97);
  box-shadow:0 4px 32px rgba(0,0,0,.35);
}
.nav-inner {
  height:100%; display:flex; align-items:center;
  justify-content:space-between; gap:1rem;
  max-width:var(--max-w); margin:0 auto; padding:0 2rem;
}
@media(max-width:640px) { .nav-inner { padding:0 1.25rem } }
.nav-logo { display:flex; align-items:center; gap:.7rem; text-decoration:none; flex-shrink:0 }
.nav-logo-icon, .nav-logo-mark {
  width:38px; height:38px;
  background:linear-gradient(135deg,var(--teal),var(--amber));
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0; box-shadow:0 4px 14px rgba(14,165,201,.4);
}
.nav-logo-name, .nav-logo-text { font-family:var(--font-serif); font-size:1.08rem; color:#fff; font-weight:700; line-height:1.2 }
.nav-logo-name em, .nav-logo-text span { color:var(--amber); font-style:normal }
.nav-links { display:flex; align-items:center; gap:.1rem; list-style:none; padding:0; margin:0 }
.nav-links a { display:block; padding:.45rem .9rem; color:rgba(255,255,255,.72); font-size:.875rem; font-weight:500; border-radius:var(--r-sm); transition:all var(--t); white-space:nowrap }
.nav-links a:hover, .nav-links a.active { color:#fff; background:rgba(255,255,255,.1) }
.nav-links a.active { color:var(--amber-warm) }
.nav-phone-btn, .nav-phone {
  display:none; align-items:center; gap:.45rem;
  padding:.52rem 1.1rem; background:var(--amber);
  color:var(--navy) !important; font-weight:700; font-size:.82rem;
  border-radius:var(--r-full); white-space:nowrap; flex-shrink:0;
  text-decoration:none; box-shadow:0 3px 12px rgba(245,158,11,.35);
  transition:all var(--t);
}
.nav-phone-btn:hover, .nav-phone:hover { background:var(--amber-warm); transform:translateY(-1px); box-shadow:0 5px 20px rgba(245,158,11,.45); color:var(--navy) !important }
@media(min-width:760px) { .nav-phone-btn, .nav-phone { display:flex } }
.nav-toggle { display:none; background:none; border:1px solid rgba(255,255,255,.22); color:#fff; width:42px; height:42px; border-radius:var(--r-sm); font-size:1.15rem; cursor:pointer; align-items:center; justify-content:center; flex-shrink:0; transition:all var(--t) }
.nav-toggle:hover { background:rgba(255,255,255,.1) }
@media(max-width:860px) {
  .nav-toggle { display:flex }
  .nav-links { display:none; position:fixed; top:var(--nav-h); left:0; right:0; background:rgba(10,22,40,.99); backdrop-filter:blur(24px); flex-direction:column; padding:1.25rem; gap:.2rem; border-top:1px solid rgba(255,255,255,.08); box-shadow:0 24px 48px rgba(0,0,0,.5) }
  .nav-links.open { display:flex }
  .nav-links a { padding:.85rem 1.1rem; font-size:1rem; border-radius:var(--r-md) }
}

/* -- HERO - full viewport, split layout ----------------------- */
.hero {
  position:relative; min-height:100vh;
  display:flex; align-items:center;
  padding:5rem 0 5rem;
  background:var(--navy); overflow:hidden;
}
/* Animated gradient mesh */
.hero::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 70% 80% at 10% 50%, rgba(14,165,201,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 20%, rgba(245,158,11,.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(14,165,201,.08) 0%, transparent 55%);
  animation:hero-mesh 14s ease-in-out infinite alternate;
}
@keyframes hero-mesh { from{transform:scale(1) rotate(0deg)} to{transform:scale(1.06) rotate(1deg)} }
/* Dot grid */
.hero::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size:36px 36px;
  mask-image:radial-gradient(ellipse 85% 85% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 85% 85% at 50% 50%, black 0%, transparent 100%);
}
.hero-content { position:relative; z-index:1; width:100%; display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center }
@media(max-width:900px)  { .hero-content { grid-template-columns:1fr; max-width:100% } }

/* Hero left side */
.hero-left {}
.hero-chip, .hero-badge {
  display:inline-flex; align-items:center; gap:.55rem;
  background:rgba(14,165,201,.14); border:1px solid rgba(14,165,201,.3);
  border-radius:var(--r-full); padding:.38rem 1.1rem;
  font-size:.78rem; font-weight:700; color:var(--teal-light);
  margin-bottom:1.75rem; letter-spacing:.05em; text-transform:uppercase;
  backdrop-filter:blur(10px);
}
.hero-chip-dot { width:7px; height:7px; border-radius:50%; background:var(--teal); animation:pulse-dot 2s infinite; flex-shrink:0 }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(1.7)} }
.hero h1 { color:#fff; margin-bottom:1.5rem; line-height:1.08 }
.hero h1 em { font-style:italic; background:linear-gradient(135deg,var(--amber),var(--amber-warm)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text }
.hero-sub { font-size:1.15rem; color:rgba(255,255,255,.62); max-width:520px; margin-bottom:2.5rem; line-height:1.72 }
.hero-stats { display:flex; gap:2.5rem; flex-wrap:wrap; margin-top:2.5rem; padding-top:2.5rem; border-top:1px solid rgba(255,255,255,.1) }
.hero-stat-val { font-family:var(--font-serif); font-size:2rem; color:var(--amber-warm); line-height:1; font-weight:700 }
.hero-stat-key { font-size:.7rem; color:rgba(255,255,255,.4); text-transform:uppercase; letter-spacing:.07em; margin-top:.3rem }
@media(max-width:640px) { .hero-stats{gap:1.75rem} .hero-stat-val{font-size:1.6rem} }

/* Hero right side - visual panel */
.hero-right {
  position:relative; z-index:1;
  display:flex; flex-direction:column; gap:1rem;
}
.hero-search-card {
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-xl); padding:2.25rem;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  box-shadow:0 24px 64px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
}
.hero-search-label { font-size:.8rem; font-weight:700; color:rgba(255,255,255,.48); text-transform:uppercase; letter-spacing:.07em; margin-bottom:.85rem; display:block }
.custom-select { position:relative; width:100%; user-select:none }
.select-trigger { width:100%; padding:.95rem 1.15rem; background:rgba(255,255,255,.14); border:1.5px solid rgba(255,255,255,.32); border-radius:var(--r-md); color:rgba(255,255,255,.95); font-family:var(--font-sans); font-size:.95rem; font-weight:500; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:.5rem; transition:all var(--t) }
.select-trigger:hover { border-color:rgba(245,158,11,.6); background:rgba(255,255,255,.18); box-shadow:0 0 0 3px rgba(245,158,11,.12) }
.select-trigger.open { border-color:var(--amber); border-radius:var(--r-md) var(--r-md) 0 0; box-shadow:0 0 0 4px rgba(245,158,11,.2) }
.select-trigger-text { flex:1; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.select-arrow { flex-shrink:0; transition:transform var(--t); color:rgba(255,255,255,.4); font-size:12px }
.select-trigger.open .select-arrow { transform:rotate(180deg) }
.select-dropdown { position:absolute; top:100%; left:0; right:0; background:var(--navy-mid); border:1px solid var(--teal); border-top:none; border-radius:0 0 var(--r-md) var(--r-md); overflow:hidden; z-index:200; max-height:0; transition:max-height .28s ease,opacity .2s ease; opacity:0; box-shadow:0 24px 56px rgba(0,0,0,.45); pointer-events:none; visibility:hidden; }
.select-dropdown.open { max-height:320px; opacity:1; pointer-events:auto; visibility:visible; }
.select-search { padding:.7rem .95rem; border-bottom:1px solid rgba(255,255,255,.08); background:var(--navy-mid); position:sticky; top:0; z-index:1 }
.select-search input { width:100%; padding:.5rem .8rem; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:var(--r-sm); color:#fff; font-family:var(--font-sans); font-size:.86rem; outline:none; transition:border-color var(--t) }
.select-search input::placeholder { color:rgba(255,255,255,.3) }
.select-search input:focus { border-color:var(--teal) }
.select-list { max-height:240px; overflow-y:auto; list-style:none; padding:.4rem 0 }
.select-list::-webkit-scrollbar { width:4px }
.select-list::-webkit-scrollbar-thumb { background:rgba(255,255,255,.15); border-radius:4px }
.select-option { display:flex; align-items:center; justify-content:space-between; padding:.7rem 1.1rem; cursor:pointer; transition:background var(--t); min-height:46px }
.select-option:hover { background:rgba(14,165,201,.14) }
.select-option.selected { background:rgba(14,165,201,.2) }
.select-option-name { font-size:.9rem; font-weight:500; color:rgba(255,255,255,.9) }
.select-option.selected .select-option-name { color:var(--teal-light) }
.select-option-city { font-size:.74rem; color:rgba(255,255,255,.35) }
@media(max-width:640px) { .select-dropdown { position:fixed !important; left:1rem !important; right:1rem !important; top:auto !important; bottom:1rem !important; border-radius:var(--r-lg) !important; max-height:60vh !important } .select-dropdown.open { max-height:60vh } .select-list { max-height:calc(60vh - 60px) } }
.btn-search {
  padding:.95rem 1.75rem;
  background:linear-gradient(135deg,#F59E0B 0%,#E8870A 100%);
  color:#0A1628;
  border:none;
  border-radius:var(--r-md);
  font-family:var(--font-sans);
  font-weight:800;
  font-size:1rem;
  cursor:pointer;
  transition:all .25s cubic-bezier(.34,1.56,.64,1);
  white-space:nowrap;
  box-shadow:0 4px 20px rgba(245,158,11,.45);
  position:relative;
  overflow:hidden;
  letter-spacing:.02em;
}
.btn-search::before {
  content:'';
  position:absolute;
  top:0;left:-100%;
  width:100%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);
  transition:left .5s ease;
}
.btn-search:hover::before { left:100% }
.btn-search:hover { background:linear-gradient(135deg,#FBBF24 0%,#F59E0B 100%); transform:translateY(-3px) scale(1.03); box-shadow:0 8px 32px rgba(245,158,11,.6); color:#0A1628 }

/* Hero floating stat cards */
.hero-feature-pills { display:grid; grid-template-columns:1fr 1fr; gap:.75rem }
.hero-pill {
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  border-radius:var(--r-lg); padding:1.1rem 1.2rem;
  backdrop-filter:blur(12px); transition:all var(--t);
}
.hero-pill:hover { background:rgba(14,165,201,.1); border-color:rgba(14,165,201,.3) }
.hero-pill-icon { font-size:1.5rem; margin-bottom:.5rem }
.hero-pill-title { font-size:.88rem; font-weight:700; color:#fff; margin-bottom:.2rem }
.hero-pill-sub { font-size:.75rem; color:rgba(255,255,255,.45); line-height:1.4 }
@media(max-width:900px) {
  .hero-right { display:block !important; order:2; }
  .hero-left  { order:1; }
  .hero-content { display:flex; flex-direction:column; }
  .hero-left .hero-search-card { display:none !important; }
}
@media(min-width:901px) { .hero-left .hero-search-card { display:none } }

/* Mobile hero search card (only shows below 900px) */
.hero-left .hero-search-card { display:none }
/* hero-left mobile search removed - hero-right shows stacked */

/* -- County hero (inner pages) -------------------------------- */
.hero-county, .hero--county {
  min-height:560px; padding:3.5rem 0 4rem;
  display:flex; align-items:center;
}
.hero-county .hero-inner, .hero--county .hero-inner,
.hero-county .wrap, .hero--county .wrap {
  display:block; max-width:var(--max-w); width:100%;
  margin:0 auto; padding:0 2rem;
  position:relative; z-index:1;
}
/* Allow hero-content two-column grid inside hero-county */
.hero-county .hero-content {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:center;
  width:100%;
  position:relative;
  z-index:1;
}
@media(max-width:900px) {
  .hero-county .hero-content { grid-template-columns:1fr; gap:2rem; }
  .hero-county .hero-right { display:flex; }
}
@media(max-width:640px) { .hero-county, .hero--county { min-height:auto; padding:1.5rem 0 2rem } .hero-county .hero-content, .hero--county .hero-content, .hero-county .wrap, .hero--county .wrap { padding:0 1.25rem } }

/* -- Breadcrumb ----------------------------------------------- */
.breadcrumb { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; list-style:none; padding:0; margin:0 0 1.5rem; font-size:.8rem }
.breadcrumb li::after { content:'\00bb'; margin-left:.5rem; opacity:.5; color:#fff }
.breadcrumb li:last-child::after { display:none }
.breadcrumb a { color:rgba(255,255,255,.55); transition:color var(--t) }
.breadcrumb a:hover { color:var(--amber) }
.breadcrumb li:last-child { color:var(--amber-warm) }

/* -- Buttons --------------------------------------------------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.55rem; padding:.85rem 1.85rem; border-radius:var(--r-md); font-family:var(--font-sans); font-weight:700; font-size:.95rem; cursor:pointer; border:2px solid transparent; text-decoration:none; transition:all var(--t); white-space:nowrap; line-height:1; min-height:48px }
.btn-primary { background:var(--amber); color:var(--navy); border-color:var(--amber); box-shadow:0 4px 16px rgba(245,158,11,.32) }
.btn-primary:hover { background:var(--amber-warm); color:var(--navy); border-color:var(--amber-warm); transform:translateY(-2px); box-shadow:0 8px 28px rgba(245,158,11,.5) }
.btn-teal { background:var(--teal); color:#fff; border-color:var(--teal); box-shadow:0 4px 16px rgba(14,165,201,.28) }
.btn-teal:hover { background:var(--teal-light); color:#fff; transform:translateY(-2px); box-shadow:0 8px 28px rgba(14,165,201,.45) }
.btn-outline { background:transparent; color:var(--text-dark); border-color:var(--border) }
.btn-outline:hover { border-color:var(--teal); color:var(--teal); background:rgba(14,165,201,.05) }
.btn-ghost { background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.22); backdrop-filter:blur(8px) }
.btn-ghost:hover { background:rgba(255,255,255,.2); color:#fff; border-color:rgba(255,255,255,.38) }
.btn-lg { padding:1.05rem 2.4rem; font-size:1.05rem; min-height:54px }
.btn-sm { padding:.52rem 1.1rem; font-size:.83rem; border-radius:var(--r-sm); min-height:38px }

/* -- UPGRADED CTA / Call button ------------------------------- */
.btn-call {
  position:relative; overflow:hidden;
  background:linear-gradient(135deg, var(--amber), #E8870A);
  color:var(--navy); border:none;
  box-shadow:0 6px 24px rgba(245,158,11,.4), 0 0 0 0 rgba(245,158,11,.4);
  animation:cta-breathe 3s ease-in-out infinite;
}
.btn-call::before {
  content:''; position:absolute; top:0; left:-100%;
  width:100%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition:left .6s ease;
}
.btn-call:hover::before { left:100% }
.btn-call:hover { background:linear-gradient(135deg,var(--amber-warm),var(--amber)); color:var(--navy); transform:translateY(-3px) scale(1.02); box-shadow:0 10px 36px rgba(245,158,11,.55) }
@keyframes cta-breathe { 0%,100%{box-shadow:0 6px 24px rgba(245,158,11,.4),0 0 0 0 rgba(245,158,11,.25)} 50%{box-shadow:0 6px 24px rgba(245,158,11,.4),0 0 0 12px rgba(245,158,11,.0)} }

/* -- Section labels ------------------------------------------- */
.section-label { display:inline-flex; align-items:center; gap:.55rem; font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--teal); margin-bottom:.9rem }
.section-label::before { content:''; display:block; width:28px; height:2px; background:linear-gradient(90deg,var(--teal),var(--teal-light)); border-radius:2px }
.section-title { font-size:clamp(1.5rem,3vw,2.3rem); color:var(--text-dark); letter-spacing:-.018em; margin-bottom:1rem }
.section-lead { font-size:1.05rem; color:var(--text-muted); max-width:640px; line-height:1.8 }

/* -- Feature cards -------------------------------------------- */
.feature-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:1.5rem }
.feature-card {
  padding:2.25rem; border-radius:var(--r-lg);
  border:1px solid var(--border-soft); background:var(--surface);
  transition:all var(--t); position:relative; overflow:hidden;
}
.feature-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--teal),var(--amber)); transform:scaleX(0); transform-origin:left; transition:transform .4s ease }
.feature-card:hover::after { transform:scaleX(1) }
.feature-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:rgba(14,165,201,.25) }
.feature-icon { width:56px; height:56px; border-radius:var(--r-md); background:linear-gradient(135deg,rgba(14,165,201,.15),rgba(14,165,201,.04)); border:1px solid rgba(14,165,201,.2); display:flex; align-items:center; justify-content:center; font-size:1.5rem; margin-bottom:1.35rem; transition:all var(--t) }
.feature-card:hover .feature-icon { background:linear-gradient(135deg,var(--teal),var(--teal-dim)); border-color:var(--teal); box-shadow:0 6px 22px rgba(14,165,201,.32) }
.feature-card h4 { font-family:var(--font-sans); font-size:1.05rem; font-weight:700; margin-bottom:.65rem; color:var(--text-dark) }
.feature-card p { font-size:.92rem; color:var(--text-muted); margin:0; line-height:1.7 }

/* -- County cards --------------------------------------------- */
.county-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:1.35rem }
@media(max-width:640px) { .county-grid { grid-template-columns:1fr 1fr; gap:.85rem } }
@media(max-width:400px) { .county-grid { grid-template-columns:1fr } }
.county-card { border-radius:var(--r-lg); border:1px solid var(--border-soft); background:var(--surface); overflow:hidden; transition:all var(--t); text-decoration:none; display:flex; flex-direction:column; box-shadow:var(--shadow-sm) }
.county-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-xl); border-color:rgba(14,165,201,.4) }
.county-card-img { aspect-ratio:4/3; overflow:hidden; position:relative; background:linear-gradient(135deg,var(--navy-soft),var(--navy-mid)) }
.county-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .55s ease,opacity .3s ease; opacity:0 }
.county-card-img img.loaded { opacity:1 }
.county-card:hover .county-card-img img { transform:scale(1.07) }
.img-placeholder {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  background:linear-gradient(145deg, #0A1628 0%, #1E3A6E 50%, #0C2444 100%);
  overflow:hidden;
}
.img-placeholder::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 30% 40%, rgba(14,165,201,.18) 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(245,158,11,.1) 0%, transparent 50%);
}

.county-card-body { padding:1.2rem 1.35rem; flex:1; display:flex; flex-direction:column }
.county-card-name { font-family:var(--font-serif); font-size:1.05rem; color:#0C1A2E; margin-bottom:.3rem; line-height:1.3; font-weight:700 }
.county-card:hover .county-card-name { color:var(--teal-dim) }
.county-card-sub { font-size:.78rem; color:var(--text-light); line-height:1.45 }
.county-card-cta { display:flex; align-items:center; gap:.35rem; margin-top:auto; padding-top:.85rem; font-size:.82rem; font-weight:700; color:var(--teal); transition:gap var(--t) }
.county-card:hover .county-card-cta { gap:.65rem }

/* -- Jail facility card --------------------------------------- */
.jail-card, .jail-info-card {
  background:var(--navy); border-radius:var(--r-xl);
  padding:2.25rem; position:relative; overflow:hidden;
  border:1px solid rgba(255,255,255,.07);
}
.jail-card::before, .jail-info-card::before { content:''; position:absolute; top:-70px; right:-70px; width:240px; height:240px; border-radius:50%; background:radial-gradient(circle,rgba(14,165,201,.2),transparent 70%) }
.jail-card h3, .jail-info-card h3 { color:#fff; font-size:1.25rem; margin-bottom:1.75rem; position:relative }
.facility-list { display:flex; flex-direction:column; gap:.75rem }
.facility-item { background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.09); border-radius:var(--r-md); padding:1.1rem 1.2rem; transition:all var(--t) }
.facility-item:hover { background:rgba(14,165,201,.1); border-color:rgba(14,165,201,.25) }
.facility-name, .facility-item-name { font-weight:700; font-size:.9rem; color:var(--teal-light); margin-bottom:.35rem; display:flex; align-items:center; gap:.4rem }
.facility-addr, .facility-item-addr { font-size:.82rem; color:rgba(255,255,255,.52); line-height:1.5 }

/* -- Steps ---------------------------------------------------- */
.steps { display:flex; flex-direction:column; gap:0; position:relative }
/* Vertical connector line */
.steps::before {
  content:'';
  position:absolute;
  left:24px;
  top:50px;
  bottom:50px;
  width:2px;
  background:linear-gradient(180deg, rgba(14,165,201,.5) 0%, rgba(245,158,11,.3) 100%);
  z-index:0;
}
.step {
  display:flex;
  gap:1.5rem;
  align-items:flex-start;
  position:relative;
  z-index:1;
  padding:0 0 2rem;
  transition:all .2s ease;
}
.step:last-child { padding-bottom:0; }
.step-num {
  flex-shrink:0;
  width:50px;
  height:50px;
  border-radius:50%;
  background:var(--navy);
  color:var(--amber);
  font-family:var(--font-serif);
  font-size:1.25rem;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2.5px solid rgba(245,158,11,.4);
  box-shadow:0 0 0 6px rgba(245,158,11,.06), 0 4px 20px rgba(10,22,40,.2);
  position:relative;
  z-index:2;
  transition:all .25s ease;
}
.step:hover .step-num {
  background:linear-gradient(135deg, #0A1628, #1E3A6E);
  border-color:var(--amber);
  box-shadow:0 0 0 8px rgba(245,158,11,.1), 0 6px 24px rgba(10,22,40,.3);
  transform:scale(1.08);
}
.step-body, .step-content {
  flex:1;
  background:#fff;
  border:1px solid rgba(10,22,40,.07);
  border-radius:16px;
  padding:1.35rem 1.5rem;
  box-shadow:0 2px 12px rgba(10,22,40,.07), 0 0 0 1px rgba(10,22,40,.04);
  transition:all .25s ease;
  margin-top:.25rem;
}
.step:hover .step-body,
.step:hover .step-content {
  box-shadow:0 8px 32px rgba(10,22,40,.13), 0 0 0 1px rgba(14,165,201,.15);
  border-color:rgba(14,165,201,.2);
  transform:translateX(4px);
}
.step-body h4, .step-content h4 {
  font-family:var(--font-sans);
  font-size:1.05rem;
  font-weight:700;
  color:#0C1A2E;
  margin-bottom:.5rem;
  display:flex;
  align-items:center;
  gap:.5rem;
}
.step-body h4::before {
  content:'';
  display:inline-block;
  width:4px;
  height:16px;
  background:linear-gradient(180deg,var(--teal),var(--amber));
  border-radius:2px;
  flex-shrink:0;
}
.step-body p, .step-content p {
  font-size:.97rem;
  color:#374151;
  margin:0;
  line-height:1.75;
}
@media(max-width:640px) {
  .steps::before { left:20px; top:44px; }
  .step-num { width:42px; height:42px; font-size:1.1rem; }
  .step-body, .step-content { padding:1.1rem 1.25rem; }
}

/* -- Next steps ----------------------------------------------- */
.next-steps, .next-steps-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.35rem }
.next-step, .next-step-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all var(--t);
  text-align: left;
}
.next-step:hover, .next-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(245,158,11,.35);
  background: #fff;
}
.next-step-emoji {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg,rgba(14,165,201,.1),rgba(245,158,11,.08));
  border: 1px solid rgba(14,165,201,.15);
  border-radius: 14px;
  flex-shrink: 0;
  margin: 0;
}
.next-step-body { flex: 1; min-width: 0; }
.next-step h4, .next-step-card h4 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 .45rem;
  color: var(--text-dark);
}
.next-step p, .next-step-card p {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.68;
}

/* -- FAQ ------------------------------------------------------- */
.faq-list { display:flex; flex-direction:column; gap:.6rem }
.faq-item { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); overflow:hidden; transition:border-color var(--t), box-shadow var(--t) }
.faq-item.open { border-color:var(--teal); box-shadow:0 4px 20px rgba(14,165,201,.1) }
.faq-question { width:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.2rem 1.4rem; background:none; border:none; cursor:pointer; text-align:left; font-family:var(--font-sans); font-size:1rem; font-weight:600; color:var(--text-dark); transition:color var(--t); min-height:58px }
.faq-question:hover { color:var(--teal) }
.faq-item.open .faq-question { color:var(--teal) }
.faq-icon { flex-shrink:0; width:26px; height:26px; border-radius:50%; background:var(--bg); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:.95rem; font-weight:700; color:var(--text-muted); transition:all var(--t) }
.faq-item.open .faq-icon { background:var(--teal); border-color:var(--teal); color:#fff; transform:rotate(45deg) }
.faq-answer { display:none; padding:.25rem 1.4rem 1.4rem; font-size:.95rem; color:var(--text-muted); line-height:1.78 }
.faq-item.open .faq-answer { display:block }

/* -- Info boxes ----------------------------------------------- */
.info-box { display:flex; gap:1.1rem; padding:1.4rem 1.5rem; border-radius:var(--r-lg); border-left:3px solid }
.info-box--info  { background:rgba(14,165,201,.07);  border-color:var(--teal) }
.info-box--tip   { background:rgba(245,158,11,.08);  border-color:var(--amber) }
.info-box--alert, .info-box--urgent { background:rgba(239,68,68,.07); border-color:#EF4444 }
.info-box-icon { font-size:1.3rem; flex-shrink:0; margin-top:.05rem }
.info-box-body strong { display:block; margin-bottom:.4rem; font-size:.95rem; color:var(--text-dark) }
.info-box-body p { font-size:.9rem; color:var(--text-muted); margin:0; line-height:1.7 }

/* -- UPGRADED CTA Banner -------------------------------------- */
.cta-banner, .search-cta-section {
  background:linear-gradient(140deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-radius:var(--r-xl); padding:4rem 3.5rem;
  text-align:center; position:relative; overflow:hidden;
  border:1px solid rgba(255,255,255,.07);
  box-shadow:var(--shadow-xl);
}
/* Glow orbs */
.cta-banner::before, .search-cta-section::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 60% 70% at 20% 50%, rgba(14,165,201,.18), transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 35%, rgba(245,158,11,.1), transparent 60%);
}
/* Shimmer top border */
.cta-banner::after, .search-cta-section::after {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, transparent, var(--teal), var(--amber), var(--teal), transparent);
  background-size:200% 100%;
  animation:shimmer-border 4s linear infinite;
}
@keyframes shimmer-border { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.cta-banner > *, .search-cta-section > * { position:relative }
.cta-banner h2, .search-cta-section h2 { color:#fff; margin-bottom:.9rem; font-size:clamp(1.4rem,3vw,2.1rem) }
.cta-banner p, .search-cta-section p { color:rgba(255,255,255,.72) !important; margin-bottom:2.25rem; font-size:1.05rem; max-width:560px; margin-left:auto; margin-right:auto; line-height:1.75 }
.cta-buttons { display:flex; align-items:center; justify-content:center; gap:1.25rem; flex-wrap:wrap }
@media(max-width:640px) { .cta-banner,.search-cta-section{padding:2.5rem 1.75rem;border-radius:var(--r-lg)} .cta-buttons{flex-direction:column} .cta-buttons .btn{width:100%;justify-content:center} }

/* -- Stats row ------------------------------------------------ */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1.25rem }
.stat-block { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-xl); padding:2rem 1.5rem; text-align:center; transition:all var(--t); position:relative; overflow:hidden }
.stat-block::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--teal),var(--amber)); transform:scaleX(0); transform-origin:left; transition:transform .45s ease }
.stat-block:hover::after { transform:scaleX(1) }
.stat-block:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg) }
.stat-num, .stat-block-num { font-family:var(--font-serif); font-size:2.4rem; color:var(--teal); line-height:1; margin-bottom:.5rem; font-weight:700 }
.stat-label, .stat-block-label { font-size:.82rem; color:var(--text-muted); font-weight:500; line-height:1.45 }

/* -- Search embed --------------------------------------------- */
.search-embed { background:var(--bg); border:1px solid var(--border); border-radius:var(--r-xl); padding:3rem 2.5rem; text-align:center }
.search-embed-icon { font-size:3.5rem; margin-bottom:1.25rem }
.search-embed h3 { font-size:1.4rem; margin-bottom:.75rem }
.search-embed p { font-size:.95rem; color:var(--text-muted); margin-bottom:2rem; max-width:520px; margin-left:auto; margin-right:auto; line-height:1.75 }
.search-embed-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap }
@media(max-width:640px) { .search-embed{padding:2rem 1.5rem;border-radius:var(--r-lg)} .search-embed-btns{flex-direction:column} .search-embed-btns .btn{width:100%;justify-content:center} }

/* -- Meta chips (county pages) -------------------------------- */
.meta-chips, .hero-county-meta { display:flex; flex-wrap:wrap; gap:.65rem; margin-bottom:1.75rem }
.meta-chip, .hero-meta-chip { display:inline-flex; align-items:center; gap:.4rem; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:var(--r-full); padding:.35rem .9rem; font-size:.8rem; color:rgba(255,255,255,.7); backdrop-filter:blur(8px) }

/* -- Related counties ----------------------------------------- */
.related-counties, .related-grid { display:flex; flex-wrap:wrap; gap:.6rem }
.county-pill { display:inline-flex; align-items:center; gap:.35rem; padding:.45rem 1rem; background:var(--bg); border:1px solid var(--border); border-radius:var(--r-full); font-size:.83rem; color:var(--text-body); font-weight:500; transition:all var(--t); text-decoration:none }
.county-pill:hover { background:var(--navy); color:#fff; border-color:var(--navy) }

/* -- Layout helpers ------------------------------------------- */
.two-col, .layout-two-col { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:start }
@media(max-width:900px) { .two-col,.layout-two-col { grid-template-columns:1fr !important; gap:2.5rem } }

/* -- County pill cards (search page) ------------------------- */
.county-pill-card { position:relative; display:flex; flex-direction:column; gap:.25rem; padding:1.1rem 1.2rem; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-lg); text-decoration:none; transition:all var(--t); box-shadow:var(--shadow-sm); overflow:hidden }
.county-pill-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:linear-gradient(180deg,var(--teal),var(--teal-light)); transform:scaleY(0); transform-origin:bottom; transition:transform var(--t); border-radius:3px 0 0 3px }
.county-pill-card:hover { border-color:rgba(14,165,201,.3); background:rgba(14,165,201,.03); transform:translateY(-2px); box-shadow:var(--shadow-md) }
.county-pill-card:hover::before { transform:scaleY(1) }
.cpc-name { font-weight:700; font-size:.92rem; color:var(--text-dark); transition:color var(--t) }
.county-pill-card:hover .cpc-name { color:var(--teal-dim) }
.cpc-city { font-size:.77rem; color:var(--text-light) }
.cpc-arrow { position:absolute; right:.9rem; top:50%; transform:translateY(-50%) translateX(4px); color:var(--teal); font-size:.8rem; opacity:0; transition:all var(--t) }
.county-pill-card:hover .cpc-arrow { opacity:1; transform:translateY(-50%) translateX(0) }

/* -- Alpha bar & filter --------------------------------------- */
.alpha-bar { display:flex; flex-wrap:wrap; gap:.3rem; margin-bottom:1.75rem }
.alpha-btn { width:36px; height:36px; border:1px solid var(--border); border-radius:var(--r-sm); background:var(--surface); color:var(--text-muted); font-size:.8rem; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all var(--t); font-family:var(--font-sans) }
.alpha-btn:hover, .alpha-btn.active { background:var(--navy); color:#fff; border-color:var(--navy) }
.filter-bar { display:flex; gap:1rem; align-items:center; margin-bottom:2rem; flex-wrap:wrap }
.filter-bar-input-wrap { flex:1; min-width:220px; position:relative }
.filter-bar-input-wrap::before { content:'\2192'; position:absolute; left:1rem; top:50%; transform:translateY(-50%); font-size:1.1rem; color:var(--teal); pointer-events:none; z-index:1; font-weight:700 }
#county-filter { width:100%; padding:.9rem 1rem .9rem 2.75rem; border:1px solid var(--border); border-radius:var(--r-lg); font-family:var(--font-sans); font-size:.95rem; background:var(--surface); color:var(--text-dark); outline:none; transition:all var(--t); box-shadow:var(--shadow-sm) }
#county-filter:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(14,165,201,.12) }
.filter-count { background:var(--navy); color:rgba(255,255,255,.6); font-size:.82rem; font-weight:600; padding:.55rem 1.1rem; border-radius:var(--r-full); white-space:nowrap; flex-shrink:0 }
.filter-count strong { color:var(--amber) }

/* -- Scroll reveal -------------------------------------------- */
.fade-up, .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
  animation: auto-reveal 0s 1.2s forwards;
}
@keyframes auto-reveal {
  to { opacity: 1; transform: translateY(0); }
}
.fade-up.in,.fade-up.visible,.reveal.in,.reveal.visible { opacity:1; transform:translateY(0) }
.d1,.reveal-delay-1{transition-delay:.1s} .d2,.reveal-delay-2{transition-delay:.2s} .d3,.reveal-delay-3{transition-delay:.3s} .d4,.reveal-delay-4{transition-delay:.4s}

/* -- Ad unit -------------------------------------------------- */
.page-break-wrap { width:100%; overflow:hidden; text-align:center; padding:.5rem 0 }

/* -- FOOTER --------------------------------------------------- */


@media(max-width:960px) {  }
@media(max-width:560px) {  }









@media(max-width:960px) {  }
@media(max-width:560px) {  }
 .footer-phone{font-size:1.3rem} .footer-bottom{flex-direction:column;text-align:center;gap:.5rem} }

/* -- Sticky CTA bar ------------------------------------------- */

@media(max-width:768px) {   }




/* -- Text utilities ------------------------------------------- */
.text-center { text-align:center }
.auto-year { display:inline }

/* -- Inner page content styling ------------------------------- */
.content-body { max-width:800px; margin:0 auto }
.content-body h2 { font-size:1.7rem; margin:2.5rem 0 1rem; padding-top:2.5rem; border-top:1px solid var(--border-soft) }
.content-body h2:first-child { margin-top:0; padding-top:0; border-top:none }
.content-body h3 { font-size:1.25rem; margin:2rem 0 .75rem; color:var(--text-dark) }
.content-body p { font-size:1rem; line-height:1.82; color:var(--text-body) }
.content-body ul, .content-body ol { margin-bottom:1.25rem; font-size:1rem; color:var(--text-body) }
.content-body li { line-height:1.72; margin-bottom:.6rem }

/* -- Avail badge (contact page) ------------------------------- */
.avail-badge { display:inline-flex; align-items:center; gap:.55rem; background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.3); border-radius:var(--r-full); padding:.42rem 1.1rem; font-size:.8rem; font-weight:700; color:#34D399; letter-spacing:.04em; margin-bottom:1.6rem }
.avail-dot { width:8px; height:8px; border-radius:50%; background:var(--green); animation:pulse-green 2s infinite; flex-shrink:0 }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.5)} 50%{box-shadow:0 0 0 6px rgba(16,185,129,0)} }

/* -- Mobile responsive ---------------------------------------- */
@media(max-width:768px) {
  .next-steps, .next-steps-grid { grid-template-columns:1fr 1fr }
  .stats-grid { grid-template-columns:1fr 1fr }
  .feature-grid { grid-template-columns:1fr }
  .two-col, .layout-two-col { grid-template-columns:1fr !important }
}
@media(max-width:480px) {
  .next-steps, .next-steps-grid { grid-template-columns:1fr }
  .stats-grid { grid-template-columns:1fr 1fr }
  .county-grid { grid-template-columns:1fr }
}

/* -- CARD CONTRAST IMPROVEMENTS -----------------------------
   Cards on light bg were too flat. Enhanced shadows + borders.
   ------------------------------------------------------------ */

/* Feature cards on light bg */
.feature-card {
  box-shadow: 0 2px 8px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.04);
}
.feature-card:hover {
  box-shadow: 0 12px 48px rgba(10,22,40,.16), 0 0 0 1px rgba(14,165,201,.2);
}

/* Next-step cards */
.next-step, .next-step-card {
  box-shadow: 0 2px 8px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.04);
}
.next-step:hover, .next-step-card:hover {
  box-shadow: 0 16px 48px rgba(10,22,40,.18), 0 0 0 1px rgba(245,158,11,.3);
}

/* Stat blocks */
.stat-block {
  box-shadow: 0 2px 8px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.04);
}
.stat-block:hover {
  box-shadow: 0 12px 36px rgba(10,22,40,.16);
}

/* FAQ items */
.faq-item {
  box-shadow: 0 1px 4px rgba(10,22,40,.07), 0 0 0 1px rgba(10,22,40,.04);
}
.faq-item.open {
  box-shadow: 0 4px 20px rgba(14,165,201,.12), 0 0 0 1px rgba(14,165,201,.25);
}

/* Info boxes - slightly stronger border + shadow */
.info-box {
  box-shadow: 0 2px 8px rgba(10,22,40,.07);
}

/* County pill cards on search page */
.county-pill-card {
  box-shadow: 0 2px 8px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.04);
}
.county-pill-card:hover {
  box-shadow: 0 8px 32px rgba(10,22,40,.14), 0 0 0 1px rgba(14,165,201,.25);
}

/* County cards on homepage */
.county-card {
  box-shadow: 0 2px 12px rgba(10,22,40,.09), 0 0 0 1px rgba(10,22,40,.05);
}
.county-card:hover {
  box-shadow: 0 20px 60px rgba(10,22,40,.2), 0 0 0 1px rgba(14,165,201,.3);
}

/* Search embed blocks */
.search-embed {
  box-shadow: 0 2px 16px rgba(10,22,40,.09), 0 0 0 1px rgba(10,22,40,.05);
}

/* Warrant type cards (warrant page) */
.warrant-type-card {
  box-shadow: 0 2px 8px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.04);
}
.warrant-type-card:hover {
  box-shadow: 0 16px 48px rgba(10,22,40,.18);
}

/* CDCR facility cards */
.cdcr-facility-card {
  box-shadow: 0 2px 8px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.04);
}
.cdcr-facility-card:hover {
  box-shadow: 0 12px 36px rgba(10,22,40,.16);
}

/* Consequence cards on warrant page */
.consequence-card {
  box-shadow: 0 2px 8px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.04);
}
.consequence-card:hover {
  box-shadow: 0 10px 36px rgba(10,22,40,.14), 0 0 0 1px rgba(239,68,68,.2);
}

/* Prep panel on contact page */
.prep-panel {
  box-shadow: 0 4px 24px rgba(10,22,40,.1), 0 0 0 1px rgba(10,22,40,.05);
}

/* Diff cards on CDCR page */
.diff-card.county {
  box-shadow: 0 4px 20px rgba(10,22,40,.09), 0 0 0 1px rgba(10,22,40,.05);
}

/* General card class */
.card {
  box-shadow: 0 2px 8px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.04);
}
.card:hover {
  box-shadow: 0 12px 40px rgba(10,22,40,.15);
}

/* Hero search card - slightly more visible on hero bg */
.hero-pill {
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero-pill:hover {
  box-shadow: 0 6px 24px rgba(14,165,201,.25);
}

/* Consequence cards - ensure dark text on light backgrounds */
.consequence-card h4 { color: var(--text-dark); }
.consequence-card p  { color: var(--text-muted); }
/* When inside urgency block, override to light text */
.urgency-block .consequence-card h4 { color: #fff; }
.urgency-block .consequence-card p  { color: rgba(255,255,255,.65); }
.urgency-block .consequence-card    { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }

/* Stat strip inside dark blocks */
.urgency-block .stat-strip-item { background: rgba(255,255,255,.07); }
.urgency-block .stat-strip-num  { color: var(--amber-warm); }
.urgency-block .stat-strip-label{ color: rgba(255,255,255,.55); }

/* -- Hero layout z-index fixes ------------------------------------ */
.hero-search-card { z-index: 10; position: relative; }
.hero-feature-pills { position: relative; z-index: 5; }
.hero-right { display: flex; flex-direction: column; gap: 1.25rem; position: relative; z-index: 1; }

/* Ensure dropdown renders above pills */
.hero-right .custom-select { z-index: 20; }
.hero-right .select-dropdown { z-index: 100; }

/* Cap hero-content max-width properly and align */
.hero .hero-content {
  gap: 4rem;
  align-items: center;
}

/* Hero pills should never overlap the search card */
.hero-feature-pills {
  margin-top: 0;
}

/* Make sure hero section has enough min-height to show full layout */
.hero {
  min-height: 100vh;
  align-items: center;
}

.feature-card p, .step-body p, .step-content p { font-size: 1rem; }
.faq-question { font-size: 1.05rem; }
.faq-answer { font-size: 1rem; }
.info-box-body p, .info-box-body strong { font-size: .97rem; }
.county-card-sub { font-size: .85rem; }
.footer-col a, 

.nav-links a { font-size: .95rem; }
.breadcrumb { font-size: .85rem; }
.meta-chip, .hero-meta-chip { font-size: .84rem; }
.btn { font-size: 1rem; }
.btn-lg { font-size: 1.1rem; }
.step-body h4, .step-content h4 { font-size: 1.08rem; }
.feature-card h4 { font-size: 1.1rem; }
.next-step h4, .next-step-card h4 { font-size: 1.05rem; }
.next-step p, .next-step-card p { font-size: .95rem; }
.county-pill-card .cpc-name { font-size: 1rem; }
.county-pill-card .cpc-city { font-size: .82rem; }

/* -- Search stats strip (was missing) -------------------------- */
.search-stats-strip {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.search-stat-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--amber-warm);
  line-height: 1;
  font-weight: 700;
}
.search-stat-key {
  font-size: .74rem;
  color: rgba(255,255,255,.42);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .3rem;
}

/* -- Hero stats (homepage) -------------------------------------- */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-val {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--amber-warm);
  line-height: 1;
  font-weight: 700;
}
.hero-stat-key {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .3rem;
}

/* -- Hero pill cards -------------------------------------------- */
.hero-feature-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.hero-pill {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
  transition: all var(--t);
}
.hero-pill:hover {
  background: rgba(14,165,201,.1);
  border-color: rgba(14,165,201,.3);
}
.hero-pill-icon { font-size: 1.6rem; margin-bottom: .5rem; display: block; }
.hero-pill-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.hero-pill-sub { font-size: .78rem; color: rgba(255,255,255,.5); line-height: 1.4; }

/* -- Select trigger text overflow fix --------------------------- */
.select-trigger-text { 
  flex: 1; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 1rem;
}

/* ================================================================
   SIDE-BY-SIDE AD SPOTS
   ================================================================ */
.local-profiles-section { padding: 2.5rem 0; }
.profiles-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media(max-width: 860px) {
  .profiles-duo {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.profile-col {
  display: flex;
  flex-direction: column;
}
/* Make ad spots fill equal height in the grid */
.profile-col .profile-card {
  flex: 1;
  height: 100%;
  margin: 0;
}
.profile-col .profile-card--open .profile-inner,
.profile-col .profile-card--soon .profile-inner,
.profile-col .profile-card--live .profile-active-inner {
  height: 100%;
}
/* Label above each column */
.profile-col-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
}
.profile-col-label::before,
.profile-col-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,.1);
}

/* ================================================================
   NAV HAMBURGER - fix emoji to CSS
   ================================================================ */
.nav-toggle { font-size: 1.4rem; line-height: 1; }

/* ================================================================
   SEARCH PAGE STATS - ensure they sit properly in hero
   ================================================================ */
.hero-county .search-stats-strip,
.hero--county .search-stats-strip {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-county .search-stat-val,
.hero--county .search-stat-val {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--amber-warm);
  line-height: 1;
  font-weight: 700;
  display: block;
}
.hero-county .search-stat-key,
.hero--county .search-stat-key {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .3rem;
  display: block;
}

/* ================================================================
   HERO MIN-HEIGHT FIX - enough room for stats
   ================================================================ */
.hero-county, .hero--county {
  min-height: 480px;
}

/* ================================================================
   FONT SIZE OVERRIDES - ensure readability
   ================================================================ */
body { font-size: 17px; line-height: 1.72; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-lead  { font-size: 1.1rem; }
p              { font-size: 1rem; }
.feature-card p, .step-body p, .step-content p { font-size: 1rem; }
.faq-question  { font-size: 1.05rem; min-height: 56px; }
.faq-answer    { font-size: .97rem; line-height: 1.78; }
.county-card-sub { font-size: .87rem; }


.meta-chip, .hero-meta-chip { font-size: .85rem; }
.cpc-name      { font-size: .97rem; }
.cpc-city      { font-size: .82rem; }

/* Fix: buttons to having-trouble info-box spacing */
.search-embed-btns,
.search-embed > div[style*="flex"] {
  margin-bottom: 0;
}
.search-embed .info-box,
.search-embed + .info-box,
.search-embed ~ .info-box {
  margin-top: 2rem;
}

/* Ensure all section-sm have consistent breathing room */
.section-sm { padding: 3rem 0; }
.section-xs { padding: 2rem 0; }

/* Light section shadows - cards should never blend into cream bg */
.feature-card,
.county-card,
.step-card,
.jail-info-card,
.info-box,
.next-step-card {
  box-shadow: 0 2px 16px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.06);
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(10,22,40,.14), 0 0 0 1px rgba(10,22,40,.08); }
.county-card { box-shadow: 0 2px 12px rgba(10,22,40,.09), 0 0 0 1px rgba(10,22,40,.06); }
.county-card:hover { box-shadow: 0 12px 40px rgba(10,22,40,.18), 0 0 0 1px rgba(14,165,201,.2); }

/* Listing section gaps */
.local-profiles-section { padding: 3rem 0; }
.profiles-duo { gap: 2rem; }

/* Filter bar arrow color */
.filter-bar-input-wrap input { padding-left: 2.5rem; }

/* Search page hero stats - horizontal flex, not stacking */
.search-stats-strip > div { display: flex; flex-direction: column; }

/* General margin fixes */
.search-embed > div + .info-box { margin-top: 2rem !important; }
.search-embed [style*="display:flex"] + .info-box,
.search-embed [style*="display: flex"] + .info-box { margin-top: 2rem !important; }

/* ================================================================
   DESIGN CLEANUP - spacing, shadows, consistency
   ================================================================ */

/* Ensure hero image cards have shadow when on light backgrounds */
.county-card { box-shadow: 0 4px 20px rgba(10,22,40,.1), 0 0 0 1px rgba(10,22,40,.06); border-radius: var(--r-lg); overflow: hidden; }
.county-card:hover { box-shadow: 0 12px 44px rgba(10,22,40,.18), 0 0 0 1px rgba(14,165,201,.25); transform: translateY(-3px); }

/* Feature grid cards - lift on light bg */
.feature-card { box-shadow: 0 2px 16px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.05); padding: 2rem; border-radius: var(--r-lg); }

/* Info boxes need visible border */
.info-box { border-width: 1.5px; }
.info-box--tip  { border-color: rgba(245,158,11,.35); box-shadow: 0 2px 12px rgba(245,158,11,.08); }
.info-box--info { border-color: rgba(14,165,201,.3);  box-shadow: 0 2px 12px rgba(14,165,201,.08); }

/* Search embed card - visible shadow on cream bg */
.search-embed { box-shadow: 0 4px 32px rgba(10,22,40,.12), 0 0 0 1.5px rgba(10,22,40,.07) !important; }

/* Jail info card shadow */
.jail-info-card { box-shadow: 0 4px 24px rgba(10,22,40,.12), 0 0 0 1px rgba(255,255,255,.1); }

/* Step cards */
.step-card, .how-step { box-shadow: 0 2px 16px rgba(10,22,40,.09), 0 0 0 1px rgba(10,22,40,.05); border-radius: var(--r-lg); }

/* County pill cards on search page */
.county-pill-card { box-shadow: 0 2px 10px rgba(10,22,40,.07), 0 0 0 1px rgba(10,22,40,.05); transition: all .2s ease; }
.county-pill-card:hover { box-shadow: 0 8px 28px rgba(10,22,40,.14), 0 0 0 1px rgba(14,165,201,.3); transform: translateY(-2px); }

/* Related county cards */
.related-county-card { box-shadow: 0 2px 12px rgba(10,22,40,.08), 0 0 0 1px rgba(10,22,40,.05); }
.related-county-card:hover { box-shadow: 0 8px 28px rgba(10,22,40,.15), 0 0 0 1px rgba(14,165,201,.25); }

/* Warrant type cards */
.warrant-type-card { box-shadow: 0 4px 20px rgba(10,22,40,.09), 0 0 0 1px rgba(10,22,40,.05) !important; }

/* Sections: enforce proper vertical spacing */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* Buttons: make sure they have consistent sizing */
.btn { padding: .75rem 1.5rem; font-weight: 600; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* Filter bar: proper input left padding for icon */
.filter-bar-input-wrap input { padding-left: 2.75rem; }

/* search-jump-row spacing */
.search-jump-row { margin-bottom: 1.5rem; }

/* Breadcrumb spacing */
.breadcrumb { margin-bottom: 1.5rem; padding: .6rem 0; }

/* ================================================================
   LIGHT SECTION TEXT FIXES
   ================================================================ */

/* Feature cards on cream/white bg - ensure text reads clearly */
.feature-card h4 { color: #0C1A2E; font-size: 1.1rem; margin-bottom: .6rem; font-weight: 700; }
.feature-card p  { color: #374151; font-size: .97rem; line-height: 1.7; }

/* Step section */
.step-body h4, .step-content h4, .how-step h4 { color: #0C1A2E; }
.step-body p,  .step-content p,  .how-step p  { color: #3A5578; }

/* Section lead text on cream */
section[style*="background:var(--cream)"] .section-lead,
section[style*="background:var(--bg)"] .section-lead { color: #3A5578; }

/* County card body text */
.county-card-body { background: #fff; }
.county-card-sub  { color: #4A6785 !important; }

/* Next step cards */
.next-step-card h4, .next-step h4 { color: #0C1A2E; }
.next-step-card p,  .next-step p  { color: #3A5578; }

/* Info box body text */
.info-box-body strong { color: #0C1A2E; }
.info-box-body p      { color: #2D4A6B; }

/* Section label - prevent blue highlight appearance */
.section-label { user-select: none; -webkit-user-select: none; }

/* Related counties on light bg */
.related-county-card .cpc-name { color: #0C1A2E; }
.related-county-card .cpc-city { color: #4A6785; }

/* FAQ on light bg */
.faq-question { color: #0C1A2E; }
.faq-answer   { color: #3A5578; }

/* General p color fix on light sections */
.section p, .section-lead { color: #3A5578; }

/* Premium county card styling */
.county-card {
  background: #fff;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.county-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(10,22,40,.2), 0 0 0 1.5px rgba(14,165,201,.3) !important;
}
.county-card-img img {
  transition: transform .6s cubic-bezier(.25,.46,.45,.94), opacity .4s ease;
}
.county-card:hover .county-card-img img { transform: scale(1.09); }
.county-card-body { padding: 1.35rem 1.5rem 1.5rem; }
.county-card-cta { color: var(--teal); font-weight: 700; font-size: .85rem; }
.county-card:hover .county-card-cta { color: var(--teal-dim); }

/* County card images - ensure they show when loaded */
.county-card-img img { opacity: 0; }
.county-card-img img.loaded { opacity: 1 !important; }

/* If image fails, placeholder shows via JS; 
   make sure placeholder icon shows clearly */
.img-placeholder::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60' width='80' height='60'%3E%3Crect x='5' y='30' width='70' height='25' rx='3' fill='%23ffffff' opacity='.15'/%3E%3Crect x='15' y='18' width='50' height='15' rx='2' fill='%23ffffff' opacity='.2'/%3E%3Crect x='25' y='10' width='30' height='10' rx='2' fill='%23ffffff' opacity='.25'/%3E%3Ccircle cx='40' cy='42' r='4' fill='%230EA5C9' opacity='.6'/%3E%3C/svg%3E");
  position: relative; z-index: 1;
}

/* ================================================================
   BUTTON VISIBILITY FIXES
   ================================================================ */

/* btn-ghost on dark hero bg = fine. On light sections it disappears.
   search-embed uses light bg - its ghost button needs dark styling */
.search-embed .btn-ghost,
.search-embed .btn-outline,
section[style*="background:#fff"] .btn-ghost,
section[style*="background:var(--bg)"] .btn-ghost,
section[style*="background:var(--cream)"] .btn-ghost {
  background: transparent;
  color: #0C1A2E;
  border-color: rgba(10,22,40,.25);
}
.search-embed .btn-ghost:hover,
section[style*="background:#fff"] .btn-ghost:hover {
  background: rgba(10,22,40,.06);
  color: #0C1A2E;
  border-color: rgba(10,22,40,.45);
}

/* "Call us Directly" button specifically */
.search-embed .btn-ghost .site-phone,
.search-embed .btn-ghost {
  color: #0C1A2E !important;
}

/* Make sure all btn-outline is visible */
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid rgba(10,22,40,.2);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(14,165,201,.05);
}

/* profile-contact-prompt styling */
.profile-contact-prompt {
  margin-bottom: 1.75rem;
}
.profile-contact-text {
  display: inline-block;
  background: rgba(14,165,201,.12);
  border: 1px solid rgba(14,165,201,.25);
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}

/* ================================================================
   CALL DISCLOSURE - "Calls may be connected to a licensed bail partner"
   ================================================================ */

/* Inline micro-disclosure after call buttons */
.call-disclosure {
  display: block;
  font-size: .7rem;
  color: rgba(255,255,255,.38);
  margin-top: .5rem;
  letter-spacing: .01em;
  line-height: 1.5;
}
.call-disclosure::before {
  content: '\24D8\0020'; /* circled i */
  font-size: .72rem;
  margin-right: .25rem;
  opacity: .7;
}

/* On light backgrounds */
.call-disclosure--dark {
  color: rgba(10,22,40,.38);
}

/* Disclosure in CTA sections */
.cta-buttons + .call-disclosure,
.cta-disclosure {
  display: block;
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  margin-top: .85rem;
  text-align: center;
  letter-spacing: .01em;
}

/* Footer disclosure - upgraded */



/* Sticky bar disclosure */
/* Nav disclosure (very subtle) */
.nav-phone-disclosure {
  display: block;
  font-size: .58rem;
  color: rgba(255,255,255,.28);
  text-align: center;
  letter-spacing: .02em;
  margin-top: .15rem;
}

/* Having Trouble box disclosure */
.search-embed .call-disclosure { color: rgba(10,22,40,.38); }

/* Section labels on dark card backgrounds need more brightness */
.contact-card .section-label,
.prep-panel-header .section-label,
.jail-info-card .section-label,
.search-cta-section .section-label,
[style*="background:var(--navy)"] .section-label,
[style*="background:var(--navy-mid)"] .section-label {
  color: #22D3EE;
  opacity: 1;
}

/* Make the line before section-label brighter on dark bg */
.contact-card .section-label::before,
.prep-panel-header .section-label::before {
  background: linear-gradient(90deg, #22D3EE, #7EE8FA);
}


/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */

#back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #0891B2);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(14,165,201,.45), 0 0 0 3px rgba(14,165,201,.15);
  opacity: 0;
  transform: translateY(12px);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  z-index: 800;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: linear-gradient(135deg, #22D3EE, var(--teal));
  box-shadow: 0 8px 32px rgba(14,165,201,.6), 0 0 0 4px rgba(14,165,201,.2);
  transform: translateY(-3px);
}

/* ================================================================
   NEARBY COUNTIES - STYLED
   ================================================================ */

.nearby-counties-section {
  background: linear-gradient(135deg, #040D1A 0%, #0A1628 60%, #040D1A 100%);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.nearby-counties-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(14,165,201,.07), transparent);
  pointer-events: none;
}
.nearby-counties-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,201,.3), transparent);
}

.nearby-counties-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.nearby-counties-label::before {
  content: '';
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(14,165,201,.3));
  border-radius: 2px;
}

.nearby-counties-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.county-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.county-pill::after { content: '\2192'; font-size: .75rem; opacity: 0; transform: translateX(-4px); transition: all .22s ease; }
.county-pill:hover {
  background: rgba(14,165,201,.15);
  border-color: rgba(14,165,201,.4);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 20px rgba(14,165,201,.25);
}
.county-pill:hover::after { opacity: 1; transform: translateX(0); }





/* ================================================================
   NAV
   ================================================================ */
#site-nav{position:fixed;top:0;left:0;right:0;height:var(--nav-h);background:rgba(4,13,26,.97);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(14,165,201,.1);z-index:1000;box-shadow:0 2px 30px rgba(0,0,0,.3)}
.nav-inner{display:flex;align-items:center;gap:1rem;height:100%;max-width:var(--max-w);margin:0 auto;padding:0 2rem}
.nav-logo{display:flex;align-items:center;gap:.65rem;text-decoration:none;flex-shrink:0;margin-right:.5rem}
.nav-logo-icon{width:34px;height:34px;background:rgba(14,165,201,.14);border:1px solid rgba(14,165,201,.28);border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s}
.nav-logo:hover .nav-logo-icon{background:rgba(14,165,201,.24);border-color:rgba(14,165,201,.5)}
.nav-logo-name{font-family:var(--font-sans);font-size:1rem;font-weight:700;color:#fff;white-space:nowrap;overflow:visible}
.nav-logo-name em{color:var(--amber);font-style:normal}
.nav-links{display:flex;align-items:center;gap:.1rem;list-style:none;margin:0 auto;padding:0;flex:1;justify-content:center}
.nav-links a{display:block;padding:.4rem .85rem;font-size:.88rem;font-weight:500;color:rgba(255,255,255,.62);text-decoration:none;border-radius:8px;transition:all .18s;white-space:nowrap}
.nav-links a:hover{color:#fff;background:rgba(255,255,255,.07)}
.nav-links a.active{color:var(--teal);background:rgba(14,165,201,.1);font-weight:600}
.nav-phone-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1.1rem;background:var(--amber);color:#0A1628;font-family:var(--font-sans);font-size:.85rem;font-weight:700;border-radius:999px;text-decoration:none;white-space:nowrap;transition:all .2s;flex-shrink:0;box-shadow:0 2px 12px rgba(245,158,11,.28)}
.nav-phone-btn:hover{background:#FBBF24;box-shadow:0 4px 20px rgba(245,158,11,.42);transform:translateY(-1px)}
.nav-toggle{
  display:none;flex-direction:column;justify-content:center;align-items:center;
  gap:5px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);
  border-radius:8px;cursor:pointer;padding:.5rem .65rem;margin-left:auto;
  width:42px;height:42px;flex-shrink:0;
}
.nav-toggle span{display:block;width:20px;height:2px;background:rgba(255,255,255,.85);border-radius:2px;transition:all .28s ease;transform-origin:center}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:860px){
  .nav-toggle{display:flex}
  .nav-phone-btn{display:none}
  .nav-links{
    position:fixed;top:var(--nav-h);left:0;right:0;
    background:rgba(4,13,26,.98);backdrop-filter:blur(20px);
    flex-direction:column;align-items:stretch;gap:0;
    padding:0;max-height:0;overflow:hidden;
    transition:max-height .35s cubic-bezier(.4,0,.2,1),padding .35s ease;
    border-bottom:0px solid rgba(255,255,255,.07);
    justify-content:flex-start;z-index:999;
  }
  .nav-links.open{
    max-height:400px;
    padding:1rem 1.25rem 1.5rem;
    border-bottom-width:1px;
  }
  .nav-links li{opacity:0;transform:translateY(-8px);transition:opacity .2s ease,transform .2s ease}
  .nav-links.open li{opacity:1;transform:translateY(0)}
  .nav-links.open li:nth-child(1){transition-delay:.05s}
  .nav-links.open li:nth-child(2){transition-delay:.1s}
  .nav-links.open li:nth-child(3){transition-delay:.15s}
  .nav-links.open li:nth-child(4){transition-delay:.2s}
  .nav-links.open li:nth-child(5){transition-delay:.25s}
  .nav-links a{display:block;padding:.85rem 1rem;border-radius:10px;font-size:1rem;border-bottom:1px solid rgba(255,255,255,.06)}
  .nav-links li:last-child a{border-bottom:none}
  /* Phone button inside mobile menu */
  .nav-links::after{
    content:'(916) 633-2220';
    display:block;
    padding:.85rem 1rem;
    color:var(--amber);
    font-weight:700;
    font-size:.95rem;
    border-top:1px solid rgba(255,255,255,.08);
    margin-top:.5rem;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  background: #060E1C;
  color: rgba(255,255,255,.65);
  margin: 0;
  padding: 0;
}

.footer-shimmer {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--amber), var(--teal), transparent);
  background-size: 300% 100%;
  animation: ad-shimmer 6s linear infinite;
}

/* 4-column grid */
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr 1fr;
  gap: 3rem;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media(max-width:1000px){.footer-cols{grid-template-columns:1fr 1fr 1fr;gap:2.5rem}}
@media(max-width:680px){.footer-cols{grid-template-columns:1fr 1fr;gap:2rem}}
@media(max-width:420px){.footer-cols{grid-template-columns:1fr;gap:1.75rem}}

/* Brand column */
.footer-brand-col {}
.footer-site-logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-site-logo-icon {
  width: 36px; height: 36px;
  background: rgba(14,165,201,.13);
  border: 1px solid rgba(14,165,201,.22);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-site-name {
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 700;
  color: #fff; line-height: 1.2;
}
.footer-site-name em { color: var(--amber); font-style: normal }
.footer-site-desc {
  font-size: .84rem;
  color: rgba(255,255,255,.42);
  line-height: 1.65;
  margin: 0 0 1.1rem;
  max-width: 280px;
}
.footer-site-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  line-height: 1;
  transition: color .18s;
}
.footer-site-phone svg { color: var(--teal) }
.footer-site-phone:hover { color: #FBBF24 }
.footer-site-phone-note {
  font-size: .65rem;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .3rem;
}
.footer-site-disc {
  font-size: .65rem;
  color: rgba(255,255,255,.2);
  margin: .3rem 0 0;
  line-height: 1.5;
}

/* Link columns */
.footer-link-col h5 {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-link-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-link-col li { margin-bottom: .42rem }
.footer-link-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.56);
  text-decoration: none;
  transition: color .16s;
  line-height: 1.4;
  display: inline-block;
}
.footer-link-col a:hover { color: rgba(255,255,255,.9) }
.footer-link-accent { color: var(--teal) !important; font-weight: 600 }
.footer-link-accent:hover { color: #22D3EE !important }




/* Disclosure bar */
.footer-disc-bar {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-disc-bar p {
  font-size: .7rem;
  color: rgba(255,255,255,.26);
  line-height: 1.6;
  margin: 0;
}
.footer-disc-bar strong { color: rgba(255,255,255,.4); font-weight: 600 }

/* Bottom bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0 1.25rem;
  font-size: .74rem;
  color: rgba(255,255,255,.24);
  flex-wrap: wrap;
  gap: .5rem;
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
#back-to-top{position:fixed;bottom:5.5rem;right:1.5rem;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--teal),#0284C7);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(14,165,201,.4),0 0 0 3px rgba(14,165,201,.1);opacity:0;transform:translateY(14px) scale(.85);transition:all .3s cubic-bezier(.34,1.56,.64,1);z-index:800;pointer-events:none}
#back-to-top.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
#back-to-top:hover{background:linear-gradient(135deg,#22D3EE,var(--teal));box-shadow:0 8px 32px rgba(14,165,201,.55);transform:translateY(-3px) scale(1.08)}

/* ================================================================
   NEARBY COUNTIES
   ================================================================ */
.nearby-counties-section{background:linear-gradient(135deg,#040D1A,#0A1628 60%,#040D1A);padding:2.5rem 0;position:relative;overflow:hidden}
.nearby-counties-section::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 80% 100% at 50% 50%,rgba(14,165,201,.05),transparent);pointer-events:none}
.nearby-counties-section::after{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(14,165,201,.22),transparent)}
.nearby-counties-label{display:inline-flex;align-items:center;gap:.55rem;font-size:.65rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--teal);margin-bottom:1.1rem}
.nearby-counties-label::before{content:'';width:20px;height:2px;background:linear-gradient(90deg,var(--teal),rgba(14,165,201,.3));border-radius:2px}
.nearby-counties-grid{display:flex;flex-wrap:wrap;gap:.5rem}
.county-pill{display:inline-flex;align-items:center;gap:.3rem;padding:.48rem .95rem;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);border-radius:999px;font-size:.83rem;font-weight:500;color:rgba(255,255,255,.68);text-decoration:none;transition:all .22s cubic-bezier(.34,1.56,.64,1);white-space:nowrap}
.county-pill::after{content:'\2192';font-size:.7rem;opacity:0;transform:translateX(-4px);transition:all .2s}
.county-pill:hover{background:rgba(14,165,201,.13);border-color:rgba(14,165,201,.32);color:#fff;transform:translateY(-2px) scale(1.03);box-shadow:0 4px 16px rgba(14,165,201,.2)}
.county-pill:hover::after{opacity:1;transform:translateX(0)}

.footer-split-col {
  display: flex;
  gap: 1.5rem;
}
.footer-split-col > div { flex: 1 }
@media(max-width:420px) { .footer-split-col { flex-direction: column; gap: 1rem } }

/* Kill ALL old conflicting rules */
.footer-grid,.footer-brand-name,.footer-brand-desc,.footer-phone-label,
.footer-col,.footer-disclosure,.footer-stats-col,.footer-stat-card,
.footer-coverage,.footer-brand-row,.footer-nav-grid,.footer-bottom-row,
.footer-cta,.footer-brand,.footer-logo,.footer-tagline,.footer-phone-sub,
.footer-call-disc,.footer-nav-col,.footer-bottom,.footer-disc,
.footer-copy,.footer-main,.footer-phone-meta,.footer-phone,
.fr,.fr1,.fr2,.fr3,.fr4,.fr5,.f-logo,.f-phone,.f-links,.f-disc,
.f-copy,.f-legal,.fr-label,.f-tagline,.f-link-highlight,.f-logo-icon,
.f-logo-name,.footer-top{display:none!important}

/* ================================================================
   CONTROLLED FEATURE GRIDS - prevent ugly orphan layouts
   ================================================================ */

/* 4-item grid: always 2x2 on desktop, 1-col on mobile */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media(max-width:560px) { .grid-4 { grid-template-columns: 1fr } }

/* 3-item grid: always 3 on desktop, 1-col on mobile */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media(max-width:840px)  { .grid-3 { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:560px)  { .grid-3 { grid-template-columns: 1fr } }

/* 6-item grid: 3+3 on desktop, 2+2+2 on tablet, 1-col on mobile */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media(max-width:840px)  { .grid-6 { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:560px)  { .grid-6 { grid-template-columns: 1fr } }

/* 2-item grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media(max-width:620px)  { .grid-2 { grid-template-columns: 1fr } }

@media(max-width:1100px) { .feature-grid { grid-template-columns:repeat(3,1fr) } }
@media(max-width:700px)  { .feature-grid { grid-template-columns:repeat(2,1fr) } }
@media(max-width:460px)  { .feature-grid { grid-template-columns:1fr } }

/* Comfortable reading width for prose/step sections */
.prose-wrap { max-width: 860px; margin-left: auto; margin-right: auto; }
.prose-wrap .steps { max-width: 100%; }
.prose-wrap .faq-list { max-width: 100%; }

/* Guide pages: constrain heading + lead text for readability */
.guide-section-head {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* ================================================================
   MOBILE COMPREHENSIVE FIXES
   ================================================================ */

/* --- Hero search card mobile --- */
@media(max-width:900px) {
  /* Stack hero two-col to single */
  .hero-content { grid-template-columns: 1fr !important; gap: 2rem; }
  .hero-right { order: -1; } /* search card above headline on mobile */

  /* Hero search card full width */
  .hero-search-card { width: 100%; max-width: 100%; padding: 1.5rem; }
  .hero-search-label { font-size: .75rem; }

  /* Search row: stack dropdown over button */
  .hero-search-card > div[style*="display:flex"] {
    flex-direction: column;
  }
  #search-county-go, .btn-search {
    width: 100%;
    justify-content: center;
    margin-top: .5rem;
  }

  /* Feature pills: 2 per row */
  .hero-feature-pills { grid-template-columns: 1fr 1fr !important; gap: .6rem; }

  /* Hero stats strip horizontal scroll on small */
  .search-stats-strip { gap: 1.25rem; }
}

@media(max-width:560px) {
  .hero-feature-pills { grid-template-columns: 1fr 1fr !important; }
  .hero-search-card { padding: 1.25rem; border-radius: 16px; }
  .hero h1, h1 { font-size: clamp(1.75rem, 7vw, 2.4rem) !important; }
  .hero-sub { font-size: .95rem; }
  .meta-chips { gap: .4rem; }
  .meta-chip { font-size: .72rem; padding: .28rem .65rem; }
}

/* --- Profile/ad cards mobile --- */
@media(max-width:720px) {
  .profiles-duo { grid-template-columns: 1fr !important; }
  .profile-col { width: 100%; }
  .profile-card--open .profile-inner,
  .profile-card--live .profile-active-inner { padding: 1.5rem; }
  .profile-headline { font-size: 1.3rem; }
}

/* --- Steps mobile --- */
@media(max-width:560px) {
  .steps::before { left: 18px; }
  .step { gap: 1rem; }
  .step-num { width: 38px; height: 38px; font-size: 1rem; flex-shrink: 0; }
  .step-body, .step-content { padding: 1rem 1.1rem; }
  .step-body h4::before { height: 14px; }
}

/* --- Tables mobile --- */
@media(max-width:640px) {
  table { font-size: .8rem; }
  table th, table td { padding: .55rem .65rem !important; }
}

/* --- Info boxes mobile --- */
@media(max-width:480px) {
  .info-box { flex-direction: column; gap: .5rem; }
  .info-box-icon { font-size: 1.25rem; }
}

/* --- CTA section mobile --- */
@media(max-width:560px) {
  .search-cta-section { padding: 2rem 1.5rem; text-align: center; }
  .search-cta-section h2 { font-size: 1.4rem; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* --- County cards mobile --- */
@media(max-width:480px) {
  .county-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .county-card-body { padding: .9rem 1rem; }
  .county-card-name { font-size: .9rem; }
}

/* --- Search embed mobile --- */
@media(max-width:560px) {
  .search-embed-inner { padding: 1.75rem 1.25rem 1.25rem; }
  .search-embed-icon { width: 56px; height: 56px; font-size: 1.6rem; }
  .search-embed h3 { font-size: 1.2rem; }
  .search-embed-btns { flex-direction: column; align-items: center; }
  .search-embed-btns a,
  .search-embed-btns button { width: 100% !important; justify-content: center; }
}

/* --- Nearby counties mobile --- */
@media(max-width:480px) {
  .nearby-counties-grid { gap: .4rem; }
  .county-pill { font-size: .78rem; padding: .4rem .8rem; }
}

/* --- Footer mobile --- */
@media(max-width:480px) {
  .footer-cols { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .footer-site-phone { font-size: 1.2rem; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}

/* --- Prevent overflow/horizontal scroll --- */
html, body { overflow-x: hidden; max-width: 100vw; }
* { box-sizing: border-box; }
img { max-width: 100%; }

/* No text overflow cut-off */
.nav-logo-name { overflow: visible; }
@media(max-width:400px) { .nav-logo-name { font-size: .88rem; } }

/* ================================================================
   GOOGLE ADS NATIVE CARD STYLING
   Makes AdSense units look like part of the site design
   ================================================================ */
.ad-card-wrap {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  position: relative;
}
.ad-card-wrap::before {
  content: 'Sponsored';
  display: block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  padding: .5rem 1rem .3rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ad-card-wrap ins.adsbygoogle {
  display: block !important;
  min-height: 90px;
}
/* Light background pages */
.ad-card-wrap--light {
  background: rgba(10,22,40,.04);
  border-color: rgba(10,22,40,.08);
}
.ad-card-wrap--light::before {
  color: rgba(10,22,40,.3);
  border-bottom-color: rgba(10,22,40,.06);
}

/* Inline ad between content sections */
.content-ad-break {
  margin: 1.5rem 0;
}
.content-ad-break .ad-card-wrap {
  max-width: 728px;
  margin: 0 auto;
}
@media(max-width:768px) {
  .content-ad-break .ad-card-wrap { max-width: 100%; }
}

/* ================================================================
   MOBILE COMPREHENSIVE - final pass
   ================================================================ */

/* Profiles section on mobile */
@media(max-width:640px) {
  .profiles-duo { grid-template-columns: 1fr; gap: 1rem; }
  .profile-cta-phone { font-size: 1.1rem; }
}

/* Meta chips on mobile */
@media(max-width:480px) {
  .meta-chips { gap: .35rem; }
  .meta-chip { font-size: .72rem; padding: .25rem .6rem; }
}

/* CTA buttons full width on mobile */
@media(max-width:480px) {
  .btn-lg { padding: .85rem 1.25rem; font-size: .95rem; }
  div[style*="display:flex"][style*="gap:1rem"] {
    flex-direction: column;
  }
}

/* Nearby counties pills smaller on mobile */
@media(max-width:480px) {
  .county-pill { font-size: .78rem; padding: .38rem .75rem; }
  .nearby-counties-grid { gap: .4rem; }
}

/* Steps on mobile */
@media(max-width:560px) {
  .step { gap: .85rem; }
  .step-num { width: 36px; height: 36px; font-size: .95rem; flex-shrink: 0; }
  .step-body h4 { font-size: .95rem; }
  .step-body p, .step-content p { font-size: .88rem; }
}

/* Next steps grid mobile */
@media(max-width:560px) {
  .next-steps, .next-steps-grid { grid-template-columns: 1fr !important; gap: .85rem; }
  .next-step, .next-step-card { padding: 1.1rem; }
}

/* Table overflow on mobile */
@media(max-width:640px) {
  .table-wrap, table { font-size: .78rem; }
  table th, table td { padding: .5rem .6rem !important; }
}

/* Hero mobile search */
@media(max-width:900px) {
  .hero-content { gap: 1.5rem !important; }
  .hero-left h1 { font-size: clamp(1.7rem, 6vw, 2.8rem); }
  .hero-sub { font-size: .92rem; line-height: 1.6; }
}
@media(max-width:560px) {
  .hero { padding: 1.5rem 0 2rem; }
  .hero-search-card { padding: 1.25rem 1rem; }
  .hero-search-card > div[style] { flex-direction: column; gap: .75rem; }
  .btn-search { width: 100%; justify-content: center; }
}

/* Footer mobile */
@media(max-width:640px) {
  .site-footer .footer-cols { grid-template-columns: 1fr !important; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* Back to top on mobile - above sticky bar */
@media(max-width:768px) {
  #back-to-top { bottom: 90px; right: 1rem; }
}

/* Prevent text from overflowing screen */
@media(max-width:480px) {
  h1 { font-size: clamp(1.6rem, 7vw, 2.5rem); word-break: break-word; }
  h2 { font-size: clamp(1.3rem, 5vw, 2rem); }
  .section-title { font-size: clamp(1.3rem, 5vw, 2rem) !important; }
}

/* Fix content-visibility auto on mobile causing flicker */
@media(max-width:900px) {
  .section { content-visibility: visible; }
}

/* ================================================================
   CONSOLIDATED MOBILE CSS - single source of truth
   All overrides for max-width breakpoints in one place
   Order: 900px -> 768px -> 640px -> 560px -> 480px -> 400px
   ================================================================ */

/* -- GLOBAL OVERFLOW PREVENTION -- */
html, body { overflow-x: hidden !important; max-width: 100vw !important; }
* { box-sizing: border-box; }
img, video { max-width: 100%; display: block; }

/* -- 900px: Tablet landscape -- */
@media(max-width:900px) {
  /* Wrap padding */
  .wrap, .container { padding: 0 1.1rem; }

  /* Hero: kill 100vh, stack columns */
  .hero { min-height: auto !important; padding: 3rem 0 2.5rem !important; align-items: flex-start !important; }
  .hero-content { grid-template-columns: 1fr !important; gap: 1.25rem !important; max-width: 100% !important; }
  .hero-left { order: 1; max-width: 100% !important; }
  .hero-right { order: 2; display: block !important; max-width: 100% !important; }
  .hero-left .hero-search-card { display: none !important; }
  .hero--county, .hero-county { min-height: auto !important; padding: 2.5rem 0 2rem !important; }
  .hero-sub { font-size: .95rem !important; margin-bottom: 1.25rem !important; max-width: 100% !important; }
  .hero-stats { gap: 1.5rem !important; margin-top: 1.5rem !important; padding-top: 1.5rem !important; }
  .two-col, .layout-two-col { grid-template-columns: 1fr !important; gap: 2rem; }
  .section { content-visibility: visible !important; contain-intrinsic-size: none !important; }
  .section-sm { content-visibility: visible !important; }
}

/* -- 860px: Hero/nav breakpoint -- */
@media(max-width:860px) {
  /* Nav: show hamburger */
  .nav-toggle { display: flex !important; }
  .nav-phone-btn { display: none !important; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(4,13,26,.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .3s ease;
    border-bottom: 0 solid rgba(255,255,255,.07); z-index: 999;
  }
  .nav-links.open {
    max-height: 420px;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom-width: 1px;
  }
  .nav-links a { display: block; padding: .85rem 1rem; border-radius: 10px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links li:last-child a { border-bottom: none; }

  /* Hero search card - stack dropdown + button */
  .hero-search-card { padding: 1.25rem 1.1rem 1.1rem !important; }
  .hero-search-label { font-size: .72rem !important; margin-bottom: .65rem !important; }
  .hero-search-card > div[style*="flex"] { flex-direction: column !important; gap: .55rem !important; margin-bottom: .7rem !important; }
  .hero-search-card .custom-select { width: 100% !important; flex: none !important; }
  .hero-search-card .btn-search,
  .hero-search-card button[onclick] { width: 100% !important; padding: .85rem 1rem !important; justify-content: center !important; }
  .hero-search-card > p { font-size: .7rem !important; margin-top: .5rem !important; line-height: 1.4 !important; }

  /* Feature pills 2x2 */
  .hero-feature-pills { grid-template-columns: 1fr 1fr !important; gap: .5rem !important; margin-top: .85rem !important; }
  .hero-pill { padding: .7rem .8rem !important; }
  .hero-pill-icon { font-size: 1.2rem !important; margin-bottom: .3rem !important; }
  .hero-pill-title { font-size: .78rem !important; }
  .hero-pill-sub { font-size: .66rem !important; }

  /* Hero left spacing */
  .hero-left { padding-bottom: .5rem; }
  .hero-left h1 { margin-bottom: .75rem !important; line-height: 1.1 !important; }
  .hero-left .hero-sub { margin-bottom: 0 !important; }
}

/* -- 768px: Sticky bar breakpoint -- */
@media(max-width:768px) {
  
  
  
  
  #back-to-top { bottom: 88px; }
}

/* -- 640px: Phone landscape / small tablet -- */
@media(max-width:640px) {
  .wrap, .container { padding: 0 1rem !important; }
  .section { padding: 2rem 0 !important; }
  .section-sm { padding: 1.25rem 0 !important; }

  /* Hero */
  .hero { padding: 2rem 0 !important; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.5rem) !important; word-break: break-word !important; margin-bottom: 1rem !important; }
  .hero-sub { font-size: .92rem !important; }
  .hero-stats { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: .85rem !important; margin-top: 1.25rem !important; padding-top: 1rem !important; }
  .hero-stat-val { font-size: 1.5rem !important; }
  .hero-stat-key { font-size: .68rem !important; }
  .hero-content { gap: 1rem !important; }
  .hero--county, .hero-county { padding: 1.75rem 0 !important; }

  /* County hero buttons */
  .hero-county-btns { flex-direction: column !important; gap: .6rem !important; }
  .hero-county-btns .btn { width: 100% !important; justify-content: center !important; }

  /* Meta chips */
  .meta-chips { gap: .3rem !important; margin-top: .85rem !important; }
  .meta-chip { font-size: .7rem !important; padding: .22rem .55rem !important; }

  /* Typography */
  h2, .section-title { font-size: clamp(1.3rem, 5vw, 1.9rem) !important; word-break: break-word !important; }
  .section-lead { font-size: 1rem !important; max-width: 100% !important; }

  /* Grids */
  .profiles-duo { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
  .footer-cols { grid-template-columns: 1fr 1fr !important; gap: 1.25rem !important; }

  /* CTA sections */
  .search-cta-section { padding: 2rem 1.25rem !important; }
  .cta-buttons { flex-direction: column !important; gap: .6rem !important; }
  .cta-buttons .btn { width: 100% !important; justify-content: center !important; }
  .cta-disclosure { font-size: .65rem !important; display: block !important; text-align: center !important; }

  /* Search embed */
  .search-embed-btns { flex-direction: column !important; gap: .6rem !important; }
  .search-embed-btns a, .search-embed-btns button { width: 100% !important; justify-content: center !important; }

  /* Steps */
  .step { gap: .85rem; }
  .step-num { width: 36px; height: 36px; font-size: .95rem; flex-shrink: 0; }
  .step-body h4 { font-size: .95rem; }
  .step-body p, .step-content p { font-size: .88rem; }

  /* Next steps */
  .next-steps, .next-steps-grid { grid-template-columns: 1fr !important; gap: .85rem !important; }

  /* Tables */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Ad cards */
  .ad-card-wrap { border-radius: 10px; }

  /* Footer */
  .footer-bottom-bar { flex-direction: column; gap: .4rem; }
  .footer-site-phone { font-size: 1.1rem; }
  .footer-split-col { flex-direction: column; gap: .85rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: .72rem; flex-wrap: wrap; gap: .2rem; }
}

/* -- 480px: Small phone -- */
@media(max-width:480px) {
  .wrap, .container { padding: 0 .9rem !important; }

  h1 { font-size: clamp(1.5rem, 7vw, 2.2rem) !important; }

  /* Grid collapses */
  .grid-4 { grid-template-columns: 1fr !important; }
  .footer-cols { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .footer-split-col { flex-direction: column; gap: .75rem; }

  /* Nearby counties */
  .nearby-counties-section { padding: 1.75rem 0; }
  .county-pill { font-size: .75rem; padding: .35rem .65rem; }

  /* Info box */
  .info-box { flex-direction: column; gap: .5rem; }

  /* Profile cards */
  .profile-cta-phone { font-size: 1.1rem; }

  /* Next step cards */
  .next-step, .next-step-card { padding: 1rem 1.1rem; }
}

/* -- 400px: Very small phone -- */
@media(max-width:400px) {
  .wrap, .container { padding: 0 .75rem !important; }
  .nav-logo-name { font-size: .82rem; }
  .nav-inner { padding: 0 .85rem; }
  .hero-feature-pills { grid-template-columns: 1fr 1fr !important; }
  .hero-pill { padding: .6rem .65rem !important; }
  .meta-chip { font-size: .65rem !important; }
}

/* -- First section after hero: no white gap -- */
.hero + section { padding-top: 2.5rem; }
.hero-county + section, .hero--county + section { padding-top: 2rem; }
.hero + section .fade-up,
.hero + section .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }

/* -- County hero buttons class -- */
.hero-county-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
/* ================================================================
   INLINE MAX-WIDTH OVERRIDES - all variants used across pages
   ================================================================ */
@media(max-width:640px) {
  /* Every inline max-width style that could cause overflow */
  [style*="max-width:720px"],
  [style*="max-width:760px"],
  [style*="max-width:820px"],
  [style*="max-width:860px"],
  [style*="max-width:900px"],
  [style*="max-width:960px"],
  [style*="max-width:1060px"],
  [style*="max-width:1100px"] {
    max-width: 100% !important;
  }
  /* Two-column layout divs with inline styles */
  div[style*="display:grid;grid-template-columns:1fr 1fr"],
  div[style*="display:grid;grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   TROUBLE CALLOUT - inline action card inside search embed
   ================================================================ */
.trouble-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, rgba(14,165,201,.12) 0%, rgba(245,158,11,.08) 100%);
  border: 1px solid rgba(14,165,201,.28);
  border-radius: 14px;
  flex-wrap: wrap;
}
.trouble-callout-left {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex: 1;
  min-width: 0;
}
.trouble-callout-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(14,165,201,.15);
  border: 1px solid rgba(14,165,201,.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.trouble-callout-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.trouble-callout-text strong {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
}
.trouble-callout-text span {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.trouble-callout-btn {
  flex-shrink: 0;
  font-size: .88rem !important;
  padding: .6rem 1.25rem !important;
  border-radius: 10px !important;
  white-space: nowrap;
}
@media(max-width:560px) {
  .trouble-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 1.1rem;
  }
  .trouble-callout-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Search embed buttons - no overflow, no wrapping text */
.search-embed-btns .btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media(max-width:640px) {
  .search-embed-btns .btn {
    width: 100% !important;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

/* ================================================================
   GOOGLE AD UNITS - Placed sections that fit the site theme
   3 positions: top (horizontal), mid (rectangle), bottom (horizontal)
   ================================================================ */

.ifc-ad-unit {
  width: 100%;
  padding: .5rem 0;
  position: relative;
  text-align: center;
}

/* Sponsored label - centered, subtle, required by Google policy */
.ifc-ad-label {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(100,116,139,.5);
  text-align: center;
  margin-bottom: .25rem;
  line-height: 1;
  display: block;
  width: 100%;
}

/* Top unit - horizontal banner */
.ifc-ad-unit--top {
  padding: .75rem 0;
  background: rgba(0,0,0,.025);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.ifc-ad-unit--top .adsbygoogle {
  min-height: 50px;
  max-height: 90px;
  margin: 0 auto;
  display: block !important;
}

/* Mid unit - rectangle, centered */
.ifc-ad-unit--mid {
  padding: 1rem 0;
  background: rgba(0,0,0,.015);
  border-top: 1px solid rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.ifc-ad-unit--mid .adsbygoogle {
  width: 100%;
  max-width: 336px;
  min-height: 250px;
  margin: 0 auto;
  display: block !important;
}

/* Bottom unit - horizontal banner */
.ifc-ad-unit--btm {
  padding: .75rem 0;
  background: rgba(0,0,0,.025);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.ifc-ad-unit--btm .adsbygoogle {
  min-height: 50px;
  max-height: 90px;
  margin: 0 auto;
  display: block !important;
}

/* Mobile */
@media(max-width:640px) {
  .ifc-ad-unit--mid .adsbygoogle {
    max-width: 100%;
    min-height: 200px;
  }
}
