/* ============================================================
   Wyoming Bail Bonds — main.css
   Shared styles only. Page-specific CSS goes in a <style>
   block in that page's <head>.
   ============================================================ */

@font-face {
  font-family: 'Rokkitt';
  src: url('/fonts/rokkitt-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rokkitt';
  src: url('/fonts/rokkitt-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rokkitt';
  src: url('/fonts/rokkitt-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── VARIABLES ── */
:root {
  --brown-deep:  #1a1208;
  --brown-dark:  #2a1f12;
  --brown-mid:   #3d2e1a;
  --amber:       #c29850;
  --amber-light: #d4b070;
  --amber-dark:  #a07830;
  --cream:       #fdf8f0;
  --cream-lt:    #faf7f2;
  --white:       #ffffff;
  --border:      #ede8de;
  --text-dark:   #2a1f12;
  --text-body:   #5a4a38;
  --text-muted:  #7a6a52;
  --text-subtle: #9a8870;
  --font-head:   'Rokkitt', Georgia, serif;
  --font-body:   'Source Sans 3', system-ui, sans-serif;
  --max-w:       1160px;
  --radius:      4px;
  --ease:        0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; height: auto; }

/* ── BASE ── */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--white);
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
}
a { color: var(--amber-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--amber); }
address { font-style: normal; }

/* ── LAYOUT ── */
.wrap        { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section     { padding: 72px 0; }
.section-alt { background: var(--cream); }

/* ── SECTION LABELS ── */
.section-label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800; line-height: 1.2; margin-bottom: 14px;
}
.section-sub  { font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 600px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .section-sub { margin: 0 auto; }

/* ── BUTTONS ── */
.btn-primary, .btn-ghost, .btn-outline {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius);
  border: none; cursor: pointer; text-align: center;
  transition: all var(--ease);
}
.btn-primary { background: var(--amber); color: var(--brown-deep); }
.btn-primary:hover { background: var(--amber-light); color: var(--brown-deep); transform: translateY(-1px); }
.btn-ghost   { background: rgba(42,31,18,0.4); border: 1px solid rgba(194,152,80,0.4); color: var(--amber); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-light); }
.btn-outline { background: transparent; border: 2px solid var(--amber); color: var(--amber-dark); }
.btn-outline:hover { background: var(--amber); color: var(--brown-deep); }

/* ── TOPBAR ── */
.topbar {
  background: #1a1208;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(240,230,206,0.5);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a { color: var(--amber); font-weight: 700; }
.topbar a:hover { color: var(--amber-light); }

/* ── HEADER ── */
.site-header {
  background: rgba(26,18,8,0.97);
  border-bottom: 1px solid rgba(194,152,80,0.15);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ── LOGO ── */
.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #f0e6ce;
  flex-shrink: 0;
}
.logo em    { color: var(--amber); font-style: normal; }
.logo:hover { color: #f0e6ce; }

/* ── NAV LINKS ── */
.main-nav > ul {
  display: flex;
  list-style: none;
  align-items: center;
}
.nav-dropdown { list-style: none; }

.main-nav a {
  display: block;
  height: 68px;
  line-height: 68px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(240,230,206,0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--ease), background var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--amber); }

/* CTA button in nav */
.main-nav a.nav-cta {
  background: var(--amber);
  color: var(--brown-deep) !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  height: 42px;
  line-height: 42px;
  align-self: center;
  border-radius: var(--radius);
  margin-left: 8px;
  padding: 0 20px;
}
.main-nav a.nav-cta:hover { background: var(--amber-light); }

/* ── DROPDOWNS ── */
.nav-has-dropdown { position: relative; }

.nav-has-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.55;
  margin-left: 2px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #1e1610;
  border-top: 2px solid var(--amber);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  z-index: 300;
  padding: 8px 0;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown { display: block; }

.nav-dropdown a {
  height: auto;
  line-height: 1.4;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(240,230,206,0.7);
  text-transform: none;
  letter-spacing: 0;
  border-left: 2px solid transparent;
}
.nav-dropdown a:hover {
  color: var(--amber);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--amber);
}

/* Divider link at bottom of locations dropdown */
.nav-dropdown-footer a {
  border-top: 1px solid rgba(194,152,80,0.15);
  margin-top: 4px;
  padding-top: 12px;
  color: var(--amber) !important;
  font-size: 12px;
}

/* ── MOBILE TOGGLE ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(194,152,80,0.3);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(240,230,206,0.7);
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar-tagline { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #1a1208;
    border-top: 1px solid rgba(194,152,80,0.15);
    padding: 10px 0 16px;
    z-index: 200;
  }
  .main-nav.open { display: block; }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav a {
    height: auto;
    line-height: 1.4;
    padding: 13px 24px;
  }
  .main-nav a.nav-cta {
    margin: 12px 20px 4px;
    height: auto;
    line-height: 1.4;
    padding: 13px 24px;
    text-align: center;
    display: block;
    border-radius: var(--radius);
  }

  /* Mobile dropdowns */
  .nav-dropdown {
    display: none;
    position: static;
    background: rgba(255,255,255,0.03);
    border: none;
    border-left: 2px solid rgba(194,152,80,0.25);
    box-shadow: none;
    padding: 0;
    margin: 0 0 4px 24px;
  }
  .nav-has-dropdown.open .nav-dropdown { display: block; }
  .nav-has-dropdown > a::after        { content: ' ▾'; }
  .nav-has-dropdown.open > a::after   { content: ' ▴'; }
  .nav-dropdown-footer a { border-top: none; margin-top: 0; padding-top: 10px; }
}

/* ── CTA BAR ── */
.cta-bar {
  background: var(--brown-dark);
  border-top: 3px solid var(--amber);
  padding: 40px 0;
}
.cta-bar-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-bar-text p {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  color: #f0e6ce; line-height: 1.2; margin-bottom: 4px;
}
.cta-bar-text span { font-size: 16px; color: rgba(240,230,206,0.55); }
.cta-bar-actions   { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-phone {
  display: flex; align-items: center; gap: 12px;
  color: rgba(240,230,206,0.7); transition: color var(--ease);
}
.cta-phone:hover { color: var(--amber); }
.cta-phone-icon {
  width: 44px; height: 44px;
  background: rgba(194,152,80,0.15);
  border: 1px solid rgba(194,152,80,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); flex-shrink: 0;
  transition: background var(--ease);
}
.cta-phone:hover .cta-phone-icon { background: rgba(194,152,80,0.25); }
.cta-phone-text       { line-height: 1; }
.cta-phone-text small {
  display: block; font-size: 10px;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(240,230,206,0.4); margin-bottom: 3px;
}
.cta-phone-text strong {
  font-family: var(--font-head); font-size: 20px;
  font-weight: 800; color: var(--amber);
}

/* ── MAP ── */
.map-section  { padding: 72px 0 0; }
.map-intro    { margin-bottom: 32px; }
.map-outer    { position: relative; line-height: 0; }
.map-frame    { width: 100%; display: block; border: 0; }
.map-card {
  position: absolute; bottom: 28px; left: 28px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px;
  box-shadow: 0 8px 32px rgba(42,31,18,0.15); max-width: 280px;
}
.map-card h3      { font-size: 17px; margin-bottom: 8px; }
.map-card address { font-size: 15px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.65; }
.map-card-phone   { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.map-card-phone:hover  { color: var(--amber-dark); }
.map-card-directions   { font-size: 12px; font-weight: 700; color: var(--amber-dark); text-transform: uppercase; letter-spacing: 1px; }
.map-card-hours        { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-top: 14px; flex-wrap: wrap; }
.map-hours-badge       { background: #e8f5e9; color: #2e7d32; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }

/* ── BAIL CALCULATOR ── */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start;
}
.calc-intro h2    { margin-bottom: 14px; }
.calc-intro p     { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 12px; }
.calc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 32px;
  box-shadow: 0 4px 24px rgba(42,31,18,0.07);
}
.calc-group            { margin-bottom: 24px; }
.calc-group label      { display: block; font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.calc-group .hint      { font-size: 15px; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }
.calc-input-wrap       { position: relative; }
.calc-input-wrap .prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text-subtle);
}
.calc-input-wrap input {
  width: 100%; padding: 14px 14px 14px 32px;
  font-size: 26px; font-family: var(--font-head); font-weight: 700; color: var(--text-dark);
  border: 2px solid var(--border); border-radius: var(--radius);
  outline: none; transition: border-color var(--ease);
}
.calc-input-wrap input:focus { border-color: var(--amber); }
.calc-slider-row { display: flex; align-items: center; gap: 16px; }
input[type="range"] {
  flex: 1; -webkit-appearance: none;
  height: 8px; background: var(--border); border-radius: 4px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px;
  background: var(--amber); border-radius: 50%;
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--amber);
  cursor: pointer; transition: background var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { background: var(--amber-light); }
.calc-slider-row output {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  color: var(--amber-dark); min-width: 52px; text-align: right;
}
.calc-results-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.calc-result {
  background: var(--cream-lt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.calc-result--hi    { background: var(--brown-dark); border-color: var(--brown-dark); }
.calc-result--hi .calc-result-label,
.calc-result--hi .calc-result-note  { color: rgba(240,230,206,0.6); }
.calc-result--hi .calc-result-value { color: var(--amber); }
.calc-result-label  { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.calc-result-value  { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.calc-result-note   { font-size: 14px; color: var(--text-muted); }
.calc-disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--text-muted); line-height: 1.65;
  padding: 16px; background: #fff8ec;
  border: 1px solid #f0dba0; border-radius: var(--radius); margin-bottom: 20px;
}
.calc-disclaimer svg { flex-shrink: 0; margin-top: 3px; color: var(--amber-dark); }
.calc-disclaimer a   { color: var(--amber-dark); font-weight: 700; }
.calc-cta { width: 100%; text-align: center; font-size: 17px; padding: 16px 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .calc-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .wrap    { padding: 0 20px; }
  .section { padding: 52px 0; }
  .cta-bar-inner { flex-direction: column; text-align: center; }
  .cta-bar-actions { justify-content: center; }
  .map-card { position: static; max-width: 100%; margin: 16px; }
  .calc-results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cta-bar-text p { font-size: 19px; }
}
/* ── INTERLINKS ──────────────────────────────────────────────
   Add these rules to the bottom of main.css
   ─────────────────────────────────────────────────────────── */

.interlinks-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.interlinks-section--cities {
  background: var(--white);
}
.interlinks-heading {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-subtle);
  margin-bottom: 18px;
}
.interlinks-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.interlinks-grid li {
  display: flex;
  flex-direction: column;
}
.interlinks-grid a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--ease);
  white-space: nowrap;
}
.interlinks-grid a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--brown-deep);
}
.interlinks-section--cities .interlinks-grid a {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}
.interlinks-grid span {
  font-size: 11px;
  color: var(--text-subtle);
  padding: 4px 16px 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}