/* ================================================================
   InmateSearchIdaho.com — Theme v1.0
   Mountain State Design System
   Playfair Display + Outfit | Forest · Copper · Stone
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand colors - Idaho Forest Palette */
  --forest:       #0A1F0F;      /* deep forest night */
  --forest-mid:   #0E2B14;      /* forest midtone */
  --forest-soft:  #163B1D;      /* forest soft */
  --forest-rim:   #1E5228;      /* forest rim light */

  --green:        #22C55E;      /* electric forest green - primary */
  --green-light:  #4ADE80;      /* lighter green */
  --green-dim:    #16A34A;      /* deeper green */
  --green-glow:   rgba(34,197,94,.25);

  --copper:       #F59E0B;      /* warm copper - secondary */
  --copper-warm:  #FBBF24;      /* bright copper */
  --copper-deep:  #D97706;      /* deep copper */

  --stone:        #F5F4F0;      /* warm stone white */
  --bg:           #F2F4F0;      /* page background */
  --surface:      #FFFFFF;
  --border:       #D8E4D9;
  --border-soft:  #E8F0E9;

  --text-dark:    #0C1A0E;
  --text-body:    #243B27;
  --text-muted:   #4A6B50;
  --text-light:   #7A9E82;

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Outfit', system-ui, sans-serif;

  /* Layout */
  --nav-h:        68px;
  --max-w:        1360px;

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(10,31,15,.07);
  --shadow-md:  0 4px 20px rgba(10,31,15,.11);
  --shadow-lg:  0 8px 40px rgba(10,31,15,.16);
  --shadow-xl:  0 20px 60px rgba(10,31,15,.22);
  --shadow-green: 0 4px 24px rgba(34,197,94,.3);

  /* Transition */
  --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 }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-body);
  background: var(--stone);
  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(--green-dim); text-decoration:none; transition:color var(--t) }
a:hover { color:var(--green) }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.18;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem,5vw,3.5rem); letter-spacing:-.025em }
h2 { font-size: clamp(1.5rem,3vw,2.25rem); letter-spacing:-.018em }
h3 { font-size: clamp(1.15rem,2.5vw,1.6rem) }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700 }
p  { margin-bottom: 1.1rem }
p:last-child { margin-bottom:0 }
ul,ol { padding-left: 1.5rem }
li { margin-bottom: .45rem }
strong { color:var(--text-dark); font-weight:700 }

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

.layout-two-col { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:start }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem }
@media(max-width:900px) { .layout-two-col { grid-template-columns:1fr; gap:2rem } .grid-2 { grid-template-columns:1fr } }
.prose-wrap { max-width:820px; margin:0 auto }

/* ── Navigation ─────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top:0; left:0; right:0;
  height: var(--nav-h); z-index: 1000;
  background: rgba(10,31,15,.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(34,197,94,.12);
  transition: background var(--t), box-shadow var(--t);
}
#site-nav.scrolled {
  background: rgba(10,31,15,.94);
  box-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex; align-items:center; gap:2rem;
  height: 100%; max-width:var(--max-w);
  margin:0 auto; padding:0 2rem;
}
.nav-logo {
  display: flex; align-items:center; gap:.7rem;
  font-family: var(--font-sans);
  font-size: .95rem; font-weight: 700;
  color: #fff; text-decoration: none; flex-shrink:0;
}
.nav-logo-icon {
  width: 34px; height:34px; border-radius:9px;
  background: linear-gradient(135deg, var(--green-dim), var(--forest-rim));
  display: flex; align-items:center; justify-content:center;
  box-shadow: 0 0 0 1px rgba(34,197,94,.25), var(--shadow-green);
  flex-shrink:0;
}
.nav-logo-name { color:#fff; letter-spacing:-.01em }
.nav-logo-name em { font-style:normal; color:var(--copper) }
.nav-links {
  display:flex; align-items:center; gap:.25rem;
  list-style:none; padding:0; margin:0 auto;
}
.nav-links a {
  padding:.45rem .9rem; border-radius:var(--r-full);
  font-size:.875rem; font-weight:500; color:rgba(255,255,255,.72);
  transition:all var(--t); white-space:nowrap;
}
.nav-links a:hover,.nav-links a.active {
  color:#fff; background:rgba(34,197,94,.15);
}
.nav-links a.active { color:var(--green-light) }
.nav-phone-btn {
  display: flex; align-items:center; gap:.55rem;
  padding:.55rem 1.1rem; border-radius:var(--r-full);
  background: linear-gradient(135deg,var(--copper),var(--copper-deep));
  color: var(--forest); font-weight:700; font-size:.875rem;
  white-space:nowrap; flex-shrink:0;
  box-shadow: 0 2px 12px rgba(245,158,11,.4);
  transition: all var(--t);
}
.nav-phone-btn:hover { transform:translateY(-1px); box-shadow:0 4px 20px rgba(245,158,11,.55); color:var(--forest) }

/* Mobile nav toggle */
.nav-toggle {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer;
  padding:.5rem; margin-left:auto; flex-shrink:0;
}
.nav-toggle span {
  display:block; width:22px; height:2px;
  background:rgba(255,255,255,.8); border-radius:2px;
  transition:all var(--t);
}
.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-links {
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch;
    background:rgba(10,31,15,.97);
    padding:1rem; gap:.25rem;
    border-bottom:1px solid rgba(34,197,94,.12);
    box-shadow:0 8px 32px rgba(0,0,0,.3);
  }
  .nav-links.open { display:flex }
  .nav-links a { padding:.65rem 1rem; border-radius:var(--r-md) }
}
@media(max-width:480px) {
  .nav-inner { padding:0 1rem; gap:1rem }
  .nav-phone-btn { font-size:.78rem; padding:.45rem .85rem }
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.8rem 1.6rem; border-radius:var(--r-full);
  font-family:var(--font-sans); font-size:.9rem; font-weight:700;
  border:2px solid transparent; cursor:pointer;
  transition:all var(--t); white-space:nowrap;
  text-decoration:none; line-height:1.2;
}
.btn-lg { padding:1rem 2rem; font-size:.975rem }
.btn-sm { padding:.5rem 1.1rem; font-size:.8rem }

.btn-primary {
  background:linear-gradient(135deg,var(--green),var(--green-dim));
  color:#fff; border-color:transparent;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 28px rgba(34,197,94,.45); color:#fff }

.btn-teal {
  background:linear-gradient(135deg,var(--green),var(--green-dim));
  color:#fff; border-color:transparent;
  box-shadow: var(--shadow-green);
}
.btn-teal:hover { transform:translateY(-2px); box-shadow:0 6px 28px rgba(34,197,94,.45); color:#fff }

.btn-amber {
  background:linear-gradient(135deg,var(--copper),var(--copper-deep));
  color:var(--forest); border-color:transparent;
  box-shadow:0 4px 16px rgba(245,158,11,.35);
}
.btn-amber:hover { transform:translateY(-2px); box-shadow:0 6px 24px rgba(245,158,11,.5); color:var(--forest) }

.btn-ghost {
  background:transparent;
  border-color:rgba(255,255,255,.3);
  color:rgba(255,255,255,.85);
}
.btn-ghost:hover { border-color:rgba(255,255,255,.7); color:#fff; background:rgba(255,255,255,.08) }

.btn-search {
  padding:.9rem 1.5rem; border-radius:var(--r-full);
  background:linear-gradient(135deg,var(--copper),var(--copper-deep));
  color:var(--forest); font-weight:700; font-size:.92rem;
  border:none; cursor:pointer; transition:all var(--t);
  white-space:nowrap; flex-shrink:0;
}
.btn-search:hover { transform:translateY(-1px); box-shadow:0 4px 16px rgba(245,158,11,.5) }

.cta-buttons { display:flex; gap:1rem; flex-wrap:wrap; justify-content:center }
@media(max-width:480px) { .cta-buttons { flex-direction:column; align-items:center } .cta-buttons .btn { width:100%; justify-content:center } }

/* ── Hero — Full Viewport ───────────────────────────────────────── */
.hero {
  position:relative; min-height:100vh;
  display:flex; align-items:center;
  padding:5rem 0;
  background:var(--forest);
  overflow:visible;
}
/* Mountain silhouette mesh background */
.hero::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 70% 90% at 5% 50%,  rgba(34,197,94,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 95% 20%,  rgba(245,158,11,.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(34,197,94,.08) 0%, transparent 50%);
  animation:hero-mesh 18s ease-in-out infinite alternate;
}
@keyframes hero-mesh { from{transform:scale(1) rotate(0deg)} to{transform:scale(1.04) rotate(.5deg)} }
/* Dot grid overlay */
.hero::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:32px 32px;
  mask-image:radial-gradient(ellipse 80% 100% at 50% 0%, black 0%, transparent 70%);
}

.hero-content {
  position:relative; z-index:1; width:100%;
  display:grid; grid-template-columns:1fr 1fr; gap:3.5rem; align-items:center;
}
@media(max-width:900px) { .hero-content { grid-template-columns:1fr; gap:2rem } }
.hero-left {}

.hero-chip,.hero-badge {
  display:inline-flex; align-items:center; gap:.55rem;
  background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.3);
  color:var(--green-light); border-radius:var(--r-full);
  padding:.35rem 1rem; font-size:.75rem; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; margin-bottom:1.25rem;
}
.hero-chip-dot {
  width:7px; height:7px; border-radius:50%;
  background:var(--green); flex-shrink:0;
  animation:pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.hero h1 { color:#fff; margin-bottom:1.5rem; line-height:1.08 }
.hero h1 em {
  font-style:italic;
  background:linear-gradient(135deg,var(--copper),var(--copper-warm));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-sub { font-size:1.1rem; color:rgba(255,255,255,.62); max-width:520px; margin-bottom:2.5rem; line-height:1.75 }

.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(--copper-warm); line-height:1; font-weight:700 }
.hero-stat-key { font-size:.7rem; color:rgba(255,255,255,.42); 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 — search card panel */
.hero-right {
  position:relative; z-index:1;
  display:flex; flex-direction:column; gap:1rem;
}

/* Hero Search Card */
.hero-search-card {
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-xl); padding:2.25rem;
  backdrop-filter:blur(20px);
}
.hero-search-label {
  display:block; font-size:.75rem; font-weight:700;
  color:rgba(255,255,255,.5); text-transform:uppercase;
  letter-spacing:.09em; margin-bottom:.85rem;
}

/* Feature Pills 2x2 */
.hero-feature-pills {
  display:grid; grid-template-columns:1fr 1fr; gap:.75rem;
  align-items:start; align-content:start;
  margin-top:.85rem;
}
.hero-pill {
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  border-radius:var(--r-md); padding:.9rem 1rem;
  backdrop-filter:blur(12px); transition:all var(--t);
}
.hero-pill:hover { background:rgba(34,197,94,.1); border-color:rgba(34,197,94,.3) }
.hero-pill-icon { font-size:1.35rem; margin-bottom:.35rem; display:block }
.hero-pill-title { font-size:.88rem; font-weight:700; color:#fff; margin-bottom:.15rem }
.hero-pill-sub { font-size:.74rem; color:rgba(255,255,255,.5); line-height:1.35 }

/* Mobile: hero-left card hidden on desktop, hero-right shown */
.hero-left .hero-search-card { display:none }
@media(min-width:901px) { .hero-left .hero-search-card { display:none } }
@media(max-width:900px) {
  .hero-content { grid-template-columns:1fr !important; gap:2rem }
  .hero-right { order:-1 }
  .hero-search-card { width:100%; max-width:100%; padding:1.5rem }
  .hero-search-card > div[style*="display:flex"] { flex-direction:column }
  .btn-search { width:100%; justify-content:center; margin-top:.5rem }
  .hero-feature-pills { grid-template-columns:1fr 1fr !important; gap:.6rem }
}
@media(max-width:560px) {
  .hero { padding:1.5rem 0 2rem; overflow:visible }
  .hero-right { overflow:visible }
  .hero h1 { font-size:clamp(1.85rem,7.5vw,2.4rem) }
  .hero-sub { font-size:.95rem }
  .hero-search-card { padding:1.25rem; border-radius:18px }
}

/* ── Hero — County Inner Pages ──────────────────────────────────── */
.hero-county,.hero--county {
  min-height:580px; padding:4rem 0 4.5rem;
  display:flex; align-items:center;
  overflow:visible;
}
.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;
}
.hero-county .hero-content { grid-template-columns:1fr 1fr; gap:2rem }
@media(max-width:900px) { .hero-county .hero-content { grid-template-columns:1fr; gap:2rem } }
@media(max-width:640px) { .hero-county,.hero--county { min-height:auto; padding:2rem 0 2.5rem } }

.hero-county-btns {
  display:flex; gap:1rem; flex-wrap:wrap; margin-top:1.75rem;
}
@media(max-width:560px) { .hero-county-btns { flex-direction:column } .hero-county-btns .btn { width:100%; justify-content:center } }

/* ── 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:.4; color:rgba(255,255,255,.5) }
.breadcrumb li:last-child::after { display:none }
.breadcrumb a { color:rgba(255,255,255,.5); transition:color var(--t) }
.breadcrumb a:hover { color:var(--copper) }
.breadcrumb li:last-child { color:var(--copper-warm) }
@media(max-width:560px) { .breadcrumb { font-size:.72rem; gap:.2rem; margin-bottom:1rem } }

/* ── Section Labels & Headings ─────────────────────────────────── */
.section-label {
  display:inline-block; font-size:.72rem; font-weight:700;
  color:var(--green-dim); text-transform:uppercase; letter-spacing:.1em;
  margin-bottom:.65rem;
}
.section-title { margin-bottom:1rem }
.section-lead {
  font-size:1.1rem; color:var(--text-muted); max-width:600px;
  margin-bottom:2rem; line-height:1.72;
}
.section-head { text-align:center }

/* ── Trust Bar ─────────────────────────────────────────────────── */
.trust-bar {
  background:rgba(34,197,94,.04);
  border-bottom:1px solid rgba(34,197,94,.15);
  padding:.6rem 0;
}
.trust-bar .wrap {
  display:flex; align-items:center; gap:1.5rem;
  flex-wrap:wrap; font-size:.78rem; color:var(--text-muted);
}
@media(max-width:640px) { .trust-bar .wrap { gap:.75rem; font-size:.72rem } }

/* ── Feature Cards ────────────────────────────────────────────── */
.feature-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:1.75rem;
  box-shadow:var(--shadow-sm); transition:all var(--t);
}
.feature-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); border-color:rgba(34,197,94,.2) }
.feature-icon { font-size:1.75rem; margin-bottom:1rem }
.feature-card h4 { color:var(--text-dark); margin-bottom:.6rem }

/* ── County Cards ─────────────────────────────────────────────── */
.county-card {
  display:block; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); text-decoration:none;
  box-shadow:var(--shadow-sm); transition:all var(--t); overflow:hidden;
}
.county-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); border-color:rgba(34,197,94,.3) }
.county-card-body { padding:1.25rem 1.4rem }
.county-card-name { font-weight:700; color:var(--text-dark); font-size:.95rem; margin-bottom:.2rem }
.county-card-sub { font-size:.78rem; color:var(--text-muted) }
.county-card-cta { font-size:.8rem; color:var(--green-dim); font-weight:600; margin-top:.65rem }
.county-card:hover .county-card-cta { color:var(--green) }

/* ── Steps ─────────────────────────────────────────────────────── */
.steps { position:relative; display:flex; flex-direction:column; gap:0 }
.steps::before {
  content:''; position:absolute; left:22px; top:20px;
  bottom:20px; width:2px;
  background:linear-gradient(to bottom, var(--green), rgba(34,197,94,.1));
}
.step { display:flex; gap:1.5rem; align-items:flex-start; position:relative }
.step+.step { margin-top:2rem }
.step-num {
  width:46px; height:46px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg,var(--green),var(--green-dim));
  color:#fff; font-weight:700; font-size:.95rem;
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:1;
  box-shadow: 0 0 0 4px var(--bg), 0 4px 12px rgba(34,197,94,.3);
}
.step-body {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:1.4rem 1.5rem;
  flex:1; box-shadow:var(--shadow-sm);
  transition:box-shadow var(--t);
}
.step-body:hover { box-shadow:var(--shadow-md) }
.step-body h4 { color:var(--text-dark); margin-bottom:.5rem }
@media(max-width:560px) {
  .steps::before { left:18px }
  .step { gap:1rem }
  .step-num { width:38px; height:38px; font-size:.85rem; flex-shrink:0 }
  .step-body { padding:1rem 1.1rem }
}

/* ── Next Steps (horizontal) ────────────────────────────────────── */
.next-steps {
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem;
}
@media(max-width:900px) { .next-steps { grid-template-columns:1fr 1fr } }
@media(max-width:560px) { .next-steps { grid-template-columns:1fr; gap:1rem } }
.next-step {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:1.75rem 1.5rem;
  box-shadow:var(--shadow-sm); transition:all var(--t);
  text-align:center;
}
.next-step:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); border-color:rgba(34,197,94,.2) }
.next-step-emoji { font-size:2rem; display:block; margin-bottom:.85rem }
.next-step h4 { color:var(--text-dark); font-size:.95rem; margin-bottom:.5rem }
.next-step p { font-size:.85rem; color:var(--text-muted); line-height:1.6 }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list { display:flex; flex-direction:column; gap:.75rem }
.faq-item {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:box-shadow var(--t);
}
.faq-item.active { box-shadow:var(--shadow-md); border-color:rgba(34,197,94,.25) }
.faq-question {
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:1.2rem 1.5rem; background:none; border:none;
  text-align:left; cursor:pointer; transition:background var(--t);
  font-family:var(--font-sans); font-size:.95rem; font-weight:700;
  color:var(--text-dark); gap:1rem;
}
.faq-question:hover { background:rgba(34,197,94,.04) }
.faq-icon {
  font-size:1.25rem; color:var(--green); flex-shrink:0;
  transition:transform var(--t); font-style:normal; font-weight:400;
}
.faq-item.active .faq-icon { transform:rotate(45deg) }
.faq-answer {
  display:none; padding:0 1.5rem 1.2rem;
  font-size:.92rem; color:var(--text-body); line-height:1.72;
}
.faq-item.active .faq-answer { display:block }
@media(max-width:560px) { .faq-question { padding:1rem 1.1rem; font-size:.88rem } .faq-answer { padding:0 1.1rem 1rem } }

/* ── Info Boxes ─────────────────────────────────────────────────── */
.info-box {
  display:flex; gap:1rem; align-items:flex-start;
  padding:1.25rem 1.35rem; border-radius:var(--r-lg);
  border:1px solid; line-height:1.65;
}
.info-box-icon { font-size:1.35rem; flex-shrink:0; margin-top:.1rem }
.info-box-body strong { display:block; margin-bottom:.3rem; font-size:.92rem; color:var(--text-dark) }
.info-box-body p { font-size:.88rem; margin-bottom:0 }
.info-box--tip {
  background:rgba(34,197,94,.06);
  border-color:rgba(34,197,94,.2);
}
.info-box--info {
  background:rgba(245,158,11,.06);
  border-color:rgba(245,158,11,.2);
}
@media(max-width:480px) { .info-box { flex-direction:column; gap:.5rem } }

/* ── Meta Chips ─────────────────────────────────────────────────── */
.meta-chips { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1.25rem }
.meta-chip {
  display:inline-flex; align-items:center; gap:.35rem;
  background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.2);
  color:rgba(255,255,255,.85); border-radius:var(--r-full);
  padding:.3rem .85rem; font-size:.78rem; font-weight:500;
}
@media(max-width:480px) { .meta-chip { font-size:.72rem; padding:.25rem .65rem } }

/* ── Stats ──────────────────────────────────────────────────────── */
.stats-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:2rem;
  text-align:center;
}
@media(max-width:768px) { .stats-grid { grid-template-columns:1fr 1fr; gap:1.5rem } }
@media(max-width:480px) { .stats-grid { grid-template-columns:1fr 1fr; gap:1rem } }
.stat-num {
  font-family:var(--font-serif); font-size:2.5rem; font-weight:700;
  color:var(--copper-warm); line-height:1;
}
.stat-label { font-size:.75rem; color:rgba(255,255,255,.45); text-transform:uppercase; letter-spacing:.08em; margin-top:.4rem }

.hero-stats .hero-stat-val { color:var(--copper-warm) }
.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,.1) }
.search-stats-strip > div { display:flex; flex-direction:column; min-width:60px }
.search-stat-val { font-family:var(--font-serif); font-size:2rem; color:var(--copper-warm); font-weight:700; line-height:1 }
.search-stat-key { font-size:.7rem; color:rgba(255,255,255,.42); text-transform:uppercase; letter-spacing:.07em; margin-top:.3rem }
@media(max-width:560px) { .search-stats-strip{gap:1.5rem;flex-wrap:wrap} }

/* ── Custom Select / Dropdown ──────────────────────────────────── */
.custom-select { position:relative; width:100%; user-select:none; z-index:20 }
.select-trigger {
  width:100%; padding:.95rem 1.15rem;
  background:rgba(255,255,255,.1); border:1.5px solid rgba(255,255,255,.25);
  border-radius:var(--r-md); 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,.5); background:rgba(255,255,255,.15) }
.select-trigger.open { border-color:var(--copper); border-radius:var(--r-md) var(--r-md) 0 0; box-shadow:0 0 0 3px rgba(245,158,11,.2) }
.select-trigger-text { flex:1; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.95rem; color:rgba(255,255,255,.5) }
.select-arrow { color:rgba(255,255,255,.5); flex-shrink:0; transition:transform var(--t); font-size:.8rem }
.select-trigger.open .select-arrow { transform:rotate(180deg) }
.select-dropdown {
  position:absolute; top:100%; left:0; right:0; z-index:200;
  background:var(--forest-mid); border:1.5px solid var(--copper);
  border-top:none; border-radius:0 0 var(--r-md) var(--r-md);
  overflow:hidden; max-height:0; opacity:0;
  visibility:hidden; transition:max-height .25s ease,opacity .2s ease,visibility .2s;
}
.select-dropdown.open { max-height:320px; opacity:1; visibility:visible; pointer-events:auto }
.select-search {
  padding:.65rem .95rem; border-bottom:1px solid rgba(255,255,255,.08);
  background:var(--forest-mid); position:sticky; top:0; z-index:2;
}
.select-search input {
  width:100%; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  border-radius:var(--r-sm); padding:.45rem .8rem; color:#fff; font-size:.85rem;
  font-family:var(--font-sans); outline:none;
}
.select-search input::placeholder { color:rgba(255,255,255,.4) }
.select-search input:focus { border-color:rgba(34,197,94,.4); background:rgba(255,255,255,.1) }
.select-list { list-style:none; padding:0; margin:0; overflow-y:auto; max-height:250px; color:#fff }
.select-option {
  display:flex; align-items:center; justify-content:space-between;
  padding:.7rem 1.1rem; cursor:pointer; transition:background var(--t);
}
.select-option:hover { background:rgba(34,197,94,.12) }
.select-option.selected { background:rgba(34,197,94,.18) }

/* Mobile select - bottom sheet style */
@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;
    border-top:1.5px solid var(--copper) !important;
  }
  .select-dropdown.open { max-height:60vh }
  .select-list { max-height:calc(60vh - 60px) }
}

/* ── Search Embed ───────────────────────────────────────────────── */
.search-embed-section { padding:2.5rem 0 }
.search-embed-card {
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--r-xl); padding:3.5rem 3rem 2.5rem;
  max-width:960px; margin:0 auto;
  box-shadow:var(--shadow-lg); text-align:center;
}
.search-embed-icon-wrap { margin-bottom:1.25rem }
.search-embed-icon {
  width:88px; height:88px; border-radius:22px;
  background:linear-gradient(135deg,rgba(34,197,94,.1),rgba(34,197,94,.05));
  border:1.5px solid rgba(34,197,94,.2);
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(34,197,94,.15);
}
.search-embed-title { font-family:var(--font-serif); font-size:clamp(1.4rem,3vw,1.85rem); color:var(--text-dark); margin-bottom:.75rem }
.search-embed-sub { font-size:1rem; color:var(--text-muted); max-width:520px; margin:0 auto 2rem; line-height:1.65 }
.search-embed-btns { display:flex; gap:1.25rem; justify-content:center; flex-wrap:wrap; margin-bottom:2rem }
.search-embed-trouble {
  display:flex; align-items:center; gap:1rem;
  background:linear-gradient(135deg,rgba(34,197,94,.05),rgba(245,158,11,.04));
  border:1px solid rgba(34,197,94,.15);
  border-radius:var(--r-lg); padding:1rem 1.25rem;
  text-align:left; flex-wrap:wrap;
}
.search-embed-trouble-icon {
  width:36px; height:36px; flex-shrink:0;
  background:rgba(34,197,94,.1); border-radius:10px;
  display:flex; align-items:center; justify-content:center; color:var(--green);
}
.search-embed-trouble-text { flex:1; min-width:180px }
.search-embed-trouble-text strong { display:block; font-size:.88rem; color:var(--text-dark); margin-bottom:.15rem }
.search-embed-trouble-text span { font-size:.8rem; color:var(--text-muted) }
@media(max-width:560px) {
  .search-embed-btns { flex-direction:column; align-items:center }
  .search-embed-btns .btn { width:100%; justify-content:center }
  .search-embed-trouble { flex-direction:column; text-align:center }
}

/* ── County Pill Cards (search page) ───────────────────────────── */
.county-pill-card {
  display:block; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); padding:.85rem 1.1rem;
  text-decoration:none; transition:all var(--t);
  box-shadow:var(--shadow-sm);
}
.county-pill-card:hover { border-color:rgba(34,197,94,.35); box-shadow:var(--shadow-md); transform:translateY(-1px) }
.cpc-name { font-weight:700; color:var(--text-dark); font-size:.9rem }
.cpc-city { font-size:.75rem; color:var(--text-muted); margin-top:.1rem }
.cpc-arrow { color:var(--green-dim); font-weight:700; transition:transform var(--t) }
.county-pill-card:hover .cpc-arrow { transform:translateX(3px); color:var(--green) }

/* ── Nearby Counties ────────────────────────────────────────────── */
.nearby-counties-section { background:var(--bg); padding:2rem 0 }
.nearby-counties-label { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.09em; color:var(--text-muted); margin-bottom:1rem }
.nearby-counties-grid { display:flex; flex-wrap:wrap; gap:.5rem }
.county-pill {
  display:inline-flex; align-items:center; gap:.35rem;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-full); padding:.4rem .9rem;
  font-size:.8rem; font-weight:600; color:var(--text-body);
  text-decoration:none; transition:all var(--t);
}
.county-pill:hover { border-color:rgba(34,197,94,.3); color:var(--green-dim); background:rgba(34,197,94,.04) }

/* ── Ad Units ───────────────────────────────────────────────────── */
.ifc-ad-unit { margin:0; padding:2rem 0 }
.ifc-ad-label { font-size:.65rem; font-weight:700; color:var(--text-light); text-transform:uppercase; letter-spacing:.08em; margin-bottom:.5rem; text-align:center }
.profiles-duo { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; align-items:stretch; justify-items:center }
.profiles-duo > * { width:100%; max-width:560px }
@media(max-width:720px) { .profiles-duo { grid-template-columns:1fr; gap:1.25rem } }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, var(--forest) 0%, #050f07 100%);
  border-top:1px solid rgba(34,197,94,.12);
  padding:4.5rem 0 2rem;
}
.footer-inner {}
.footer-cols { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem }
@media(max-width:900px) { .footer-cols { grid-template-columns:1fr 1fr; gap:2rem } }
@media(max-width:560px) { .footer-cols { grid-template-columns:1fr; gap:1.75rem } }
.footer-brand {}
.footer-logo { display:flex; align-items:center; gap:.7rem; text-decoration:none; margin-bottom:1rem }
.footer-tagline { font-size:.85rem; color:rgba(255,255,255,.45); line-height:1.65; margin-bottom:1rem; max-width:320px }
.footer-site-phone { font-size:1.1rem; font-weight:700; color:var(--copper); display:block; margin-bottom:.3rem }
.footer-site-phone:hover { color:var(--copper-warm) }
.footer-disclaimer { font-size:.72rem; color:rgba(255,255,255,.28); line-height:1.55 }
.footer-col h5 { font-family:var(--font-sans); font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.45); margin-bottom:1rem }
.footer-col ul { list-style:none; padding:0; margin:0 }
.footer-col ul li { margin-bottom:.5rem }
.footer-col ul a { font-size:.85rem; color:rgba(255,255,255,.5); transition:color var(--t) }
.footer-col ul a:hover { color:var(--green-light) }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding-top:1.75rem; text-align:center }
.footer-bottom p { font-size:.78rem; color:rgba(255,255,255,.3); line-height:1.65 }

/* ── Trust Bar ──────────────────────────────────────────────────── */
.trust-bar { background:rgba(34,197,94,.04); border-bottom:1px solid rgba(34,197,94,.12); padding:.6rem 0 }

/* ── Scroll Reveal ──────────────────────────────────────────────── */
.reveal,.fade-up { opacity:0; transform:translateY(20px); transition:opacity .55s ease,transform .55s ease }
.reveal.revealed,.fade-up.revealed { opacity:1; transform:translateY(0) }
.d1 { transition-delay:.1s } .d2 { transition-delay:.2s } .d3 { transition-delay:.3s }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes shimmer { 0%{background-position:200% center} 100%{background-position:-200% center} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes glow-pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* ── CTA Dark Section ───────────────────────────────────────────── */
.cta-section-dark {
  position:relative; overflow:hidden;
  background: linear-gradient(160deg, var(--forest) 0%, #0a1f0a 50%, var(--forest) 100%);
  padding:5rem 0;
}
.cta-section-dark::before {
  content:''; position:absolute; top:-40%; left:50%; transform:translateX(-50%);
  width:800px; height:800px;
  background:radial-gradient(ellipse at center, rgba(34,197,94,.15) 0%, rgba(245,158,11,.06) 40%, transparent 70%);
  pointer-events:none; animation:float 8s ease-in-out infinite;
}

/* ── Jail Info Quick Reference Card ────────────────────────────── */
.jail-quick-ref {
  background:var(--forest); border-radius:var(--r-xl); padding:2rem;
  color:rgba(255,255,255,.85);
}
.jail-quick-ref-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem }
.jail-ref-label { font-size:.68rem; color:rgba(255,255,255,.4); text-transform:uppercase; letter-spacing:.07em; margin-bottom:.3rem }
.jail-ref-val { font-weight:600; font-size:.95rem }

/* ── Text Utilities ─────────────────────────────────────────────── */
.text-center { text-align:center }
.text-muted { color:var(--text-muted) }
.text-green { color:var(--green) }
.text-copper { color:var(--copper) }
.fw-700 { font-weight:700 }

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

/* ── Partner Ad Cards ───────────────────────────────────────────── */
.partner-card { position:relative; border-radius:var(--r-xl); overflow:hidden; background:var(--surface); border:1.5px solid var(--border) }
.partner-card--active { border-color:transparent }
.partner-card-glow { display:none }
.partner-card--active .partner-card-glow {
  display:block; position:absolute; inset:-2px; border-radius:inherit;
  background:conic-gradient(from var(--a,0deg),#22C55E 0deg,#F59E0B 90deg,#22C55E 180deg,#F59E0B 270deg,#22C55E 360deg);
  z-index:0; animation:card-spin 3s linear infinite;
}
@property --a{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes card-spin{to{--a:360deg}}
.partner-card-inner { position:relative; z-index:1; background:var(--surface); border-radius:calc(var(--r-xl) - 2px); margin:2px; padding:1.75rem }
.partner-card-header { display:flex; align-items:flex-start; gap:1rem; margin-bottom:1.25rem }
.partner-logo-wrap { flex-shrink:0 }
.partner-logo-img { width:56px; height:56px; border-radius:12px; object-fit:contain; border:1px solid var(--border) }
.partner-logo-placeholder { width:56px; height:56px; border-radius:12px; background:linear-gradient(135deg,var(--green),var(--green-dim)); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.1rem; color:#fff; letter-spacing:.05em }
.partner-verified-badge { display:inline-flex; align-items:center; gap:.35rem; font-size:.68rem; font-weight:700; color:#10B981; text-transform:uppercase; letter-spacing:.08em; margin-bottom:.35rem }
.partner-verified-dot { width:6px; height:6px; border-radius:50%; background:#10B981; animation:pulse-dot 2s infinite; flex-shrink:0 }
.partner-name { font-family:var(--font-serif); font-size:1.05rem; font-weight:700; color:var(--text-dark); line-height:1.2 }
.partner-tagline { font-size:.8rem; color:var(--text-muted); margin-top:.2rem }
.partner-cta-phone { display:flex; align-items:center; gap:.65rem; width:100%; padding:1rem 1.25rem; background:linear-gradient(135deg,var(--green),var(--green-dim)); border-radius:12px; color:#fff; font-weight:700; font-size:1.05rem; transition:all .2s; box-shadow:0 4px 16px rgba(34,197,94,.3) }
.partner-cta-phone:hover { transform:translateY(-1px); box-shadow:0 6px 24px rgba(34,197,94,.45); color:#fff }
.partner-meta-chips { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem }
.partner-chip { display:inline-flex; align-items:center; gap:.3rem; font-size:.72rem; background:rgba(34,197,94,.07); border:1px solid rgba(34,197,94,.18); border-radius:100px; padding:.25rem .7rem; color:var(--text-body) }
.partner-chip--live .live-dot { width:5px; height:5px; border-radius:50%; background:#10B981; flex-shrink:0; animation:pulse-dot 2s infinite }
.partner-website-link { display:inline-flex; align-items:center; gap:.35rem; margin-top:1rem; font-size:.82rem; color:var(--green-dim); font-weight:600; transition:color .15s }
.partner-website-link:hover { color:var(--green) }
.partner-type-badge { margin-top:1.25rem; padding-top:1.25rem; border-top:1px solid var(--border-soft); font-size:.72rem; color:var(--text-muted); font-weight:600; text-transform:uppercase; letter-spacing:.07em }

/* ── Mobile Comprehensive ────────────────────────────────────────── */
@media(max-width:900px) {
  .hero-content { grid-template-columns:1fr !important; gap:2rem }
  .hero-right { order:-1 }
  .hero-search-card { width:100%; padding:1.5rem }
  .hero-feature-pills { grid-template-columns:1fr 1fr !important; gap:.6rem }
  .search-stats-strip { gap:1.5rem }
  .hero-county-btns { flex-wrap:wrap }
}
@media(max-width:680px) {
  .layout-two-col { grid-template-columns:1fr !important }
  .grid-2 { grid-template-columns:1fr !important }
}
@media(max-width:560px) {
  h1 { font-size:clamp(1.75rem,7.5vw,2.4rem) }
  .hero-sub { font-size:.95rem }
  .search-embed-card { padding:1.75rem 1.25rem 1.25rem }
  .hero-county-btns { flex-direction:column }
  .hero-county-btns .btn { width:100%; justify-content:center }
  .stats-grid { gap:.75rem }
  .stat-num { font-size:1.8rem }
  .nearby-counties-grid { gap:.4rem }
  .county-pill { font-size:.75rem; padding:.35rem .75rem }
  .footer-cols { grid-template-columns:1fr }
  .next-steps { grid-template-columns:1fr }
}
@media(max-width:400px) {
  .wrap { padding:0 1rem }
  .nav-phone-btn { display:none }
  .hero-feature-pills { grid-template-columns:1fr 1fr !important }
}

/* ── Ad Spots - Centering ──────────────────────────────────────── */
.profiles-duo {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}
.profiles-duo > * { width: 100%; }
@media(max-width:720px) { .profiles-duo { grid-template-columns: 1fr !important; max-width: 560px; } }

/* Sponsored label centering */
.ifc-ad-label { text-align: center !important; }
.ifc-ad-unit .wrap { text-align: center; }

/* ---- Dropdown z-index fix - must be above hero pills ---- */
.custom-select { position: relative; z-index: 500; }
.select-dropdown { z-index: 501 !important; }
.hero-right { overflow: visible !important; }
.hero-search-card { overflow: visible !important; }
.hero-left .hero-search-card { overflow: visible !important; }
/* Mobile bottom-sheet for small screens */
@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: 65vh !important;
    z-index: 9999 !important;
  }
  .select-dropdown.open { max-height: 65vh; }
}

/* === CRITICAL: Dropdown must appear above hero pills === */
.hero-right {
  position: relative;
  z-index: 50;
  overflow: visible !important;
}
.hero-right .hero-search-card {
  position: relative;
  z-index: 100;
  overflow: visible !important;
}
.hero-right .custom-select {
  position: relative;
  z-index: 200;
}
.hero-right .select-dropdown {
  position: absolute !important;
  z-index: 9999 !important;
}
/* Pills must be below the dropdown */
.hero-feature-pills {
  position: relative;
  z-index: 1;
}
/* Also for homepage hero-left mobile card */
.hero-left .hero-search-card {
  overflow: visible !important;
}
.hero-left .custom-select {
  z-index: 200;
}
.hero-left .select-dropdown {
  position: absolute !important;
  z-index: 9999 !important;
}
/* Search page hero also */
.hero-county .custom-select {
  position: relative;
  z-index: 200;
}
.hero-county .select-dropdown {
  position: absolute !important;
  z-index: 9999 !important;
}
.hero-county .hero-search-card {
  overflow: visible !important;
}

/* Hero must not clip dropdown */
.hero, .hero-county, .hero--county { overflow: visible !important; }
