/* ============================================================
   DUIDefenseNKY — styles.css
   Aesthetic: Dark editorial / serious legal authority
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   ============================================================ */

:root {
  --navy:       #0d1b2a;
  --charcoal:   #1a2a3a;
  --slate:      #2c3e50;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --red-alert:  #c0392b;
  --red-soft:   #e74c3c;
  --white:      #ffffff;
  --off-white:  #f5f3ee;
  --gray-100:   #f0ede6;
  --gray-200:   #e0dbd0;
  --gray-400:   #9a9080;
  --gray-600:   #6b6358;
  --text:       #1c1410;
  --text-muted: #5a5248;
  --link:       #1a4a7a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.16);

  --max-width: 1200px;
  --spacing-section: 80px;
}

/* ─── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img { width: 36px; height: 36px; border-radius: 6px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.logo-accent { color: var(--gold); }
.logo-tagline { font-size: 0.62rem; color: var(--gray-400); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.main-nav a {
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 10px;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,15,25,0.88) 0%,
    rgba(13,27,42,0.80) 40%,
    rgba(13,27,42,0.70) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-badge {
  display: inline-block;
  background: var(--red-alert);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  display: block;
  color: var(--gold);
  font-style: italic;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ─── ALERT BAR ────────────────────────────────────────────── */
.alert-bar {
  background: var(--red-alert);
  color: var(--white);
  padding: 14px 0;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.5;
}
.alert-bar strong { font-weight: 700; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.section-dark .btn-outline { color: var(--white); border-color: var(--white); }
.section-dark .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section { padding: var(--spacing-section) 0; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label.light { color: var(--gold-light); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--navy);
}
.section-dark h2 { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.section-dark .section-lead { color: rgba(255,255,255,0.7); }
.section-lead.light { color: rgba(255,255,255,0.7); }

/* ─── STEP CARDS ────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.step-card:hover { box-shadow: var(--shadow-md); }
.step-card.urgent { border-left: 4px solid var(--red-alert); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.step-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }
.step-body p:last-child { margin-bottom: 0; }
.text-link { color: var(--link); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ─── CHECKLIST DOWNLOAD ────────────────────────────────────── */
.checklist-download {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.checklist-icon { font-size: 2.5rem; flex-shrink: 0; }
.checklist-download strong { font-size: 1.05rem; color: var(--white); }
.checklist-download p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-top: 6px; }
.checklist-download .btn-outline { color: var(--white); border-color: var(--gold); margin-left: auto; flex-shrink: 0; }
.checklist-download .btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ─── STATE TABS ────────────────────────────────────────────── */
.state-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--gray-200);
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-btn:hover { color: var(--navy); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── COUNTY CARDS ──────────────────────────────────────────── */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.county-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.county-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.county-coming-soon { opacity: 0.7; pointer-events: none; }
.county-header { display: flex; align-items: flex-start; gap: 14px; }
.county-flag { font-size: 1.8rem; line-height: 1; }
.county-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.county-court { font-size: 0.78rem; color: var(--text-muted); }
.county-details { display: flex; flex-direction: column; gap: 6px; }
.county-stat { display: flex; flex-direction: column; font-size: 0.82rem; }
.county-stat .label { color: var(--gray-400); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.county-stat .val { color: var(--text); font-weight: 500; }
.county-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--link);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.county-cta.coming { color: var(--gray-400); font-weight: 400; }

/* ─── PENALTY TABLE ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
.penalty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.penalty-table th {
  background: var(--charcoal);
  color: var(--gold);
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.penalty-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  vertical-align: top;
}
.penalty-table tr.row-header td {
  background: rgba(201,168,76,0.12);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.penalty-table tr:hover td { background: rgba(255,255,255,0.04); }
.table-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 4px;
}

/* ─── CALCULATOR ────────────────────────────────────────────── */
.calculator-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.calc-inputs { display: flex; flex-direction: column; gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.calc-field select {
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s;
}
.calc-field select:focus { outline: none; border-color: var(--navy); }
.calc-btn { margin-top: 8px; width: 100%; justify-content: center; display: flex; }

.calc-results {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky;
  top: 80px;
}
.calc-results h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.cost-total {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.calc-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 20px;
  line-height: 1.5;
}

/* ─── CROSSLINK BANNER ──────────────────────────────────────── */
.crosslink-banner {
  background: var(--gold);
  padding: 40px 0;
}
.crosslink-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.crosslink-inner h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.crosslink-inner p { font-size: 0.9rem; color: var(--charcoal); max-width: 580px; }
.crosslink-inner .btn-outline { border-color: var(--navy); color: var(--navy); flex-shrink: 0; }
.crosslink-inner .btn-outline:hover { background: var(--navy); color: var(--white); }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 16px;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-body p { margin-bottom: 12px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ─── TIMELINE ──────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  flex-shrink: 0;
}
.tl-marker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 90px;
  padding-top: 2px;
  flex-shrink: 0;
}
.tl-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.tl-content strong { color: var(--text); }
.tl-content a { color: var(--link); }

/* ─── RESOURCES ─────────────────────────────────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.resource-icon { font-size: 2.4rem; }
.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.resource-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.resource-card .btn { margin-top: auto; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; gap: 48px; }
.footer-brand { max-width: 380px; }
.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.6; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom p { font-size: 0.78rem; line-height: 1.55; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .calculator-wrap { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --spacing-section: 56px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 2px solid var(--gold);
    z-index: 200;
  }
  .main-nav.open a { font-size: 1rem; color: rgba(255,255,255,0.85); }
  .nav-toggle { display: block; }
  .hero { min-height: 440px; padding-bottom: 48px; }
  .hero-stats { gap: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr; }
  .crosslink-inner { flex-direction: column; }
  .checklist-download { flex-direction: column; }
  .checklist-download .btn { margin-left: 0; width: 100%; text-align: center; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { text-align: center; }
  .timeline { padding-left: 32px; }
  .tl-marker { min-width: 72px; }
}
