/* ============================================================
   ExpungeNKY — styles.css
   Aesthetic: Editorial / Legal Authority — refined, trustworthy,
   clean serif display + clean sans body. Navy + warm amber accent.
   ============================================================ */

:root {
  --navy: #0f1e35;
  --navy-mid: #1a3054;
  --navy-light: #2a4a78;
  --amber: #c8860a;
  --amber-light: #f0a825;
  --cream: #faf8f4;
  --cream-dark: #f0ece3;
  --text: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #7a7a9a;
  --border: #ddd9d0;
  --green: #1a6b3a;
  --green-bg: #e8f5ee;
  --red: #8b1a1a;
  --red-bg: #fdf0f0;
  --yellow-bg: #fefbe8;
  --yellow-border: #d4a017;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15,30,53,0.08);
  --shadow-md: 0 4px 16px rgba(15,30,53,0.12);
  --shadow-lg: 0 8px 32px rgba(15,30,53,0.16);
  --radius: 8px;
  --radius-lg: 14px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.3rem; }
p { margin-bottom: 1rem; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--amber); }
address { font-style: normal; }
strong { font-weight: 600; }

/* ---- LAYOUT ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- HEADER ---- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo img { height: 36px; width: auto; display: none; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo-text::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: super;
}
.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--amber-light); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,30,53,0.92) 0%, rgba(15,30,53,0.6) 60%, rgba(15,30,53,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.25rem;
  max-width: 780px;
}
.hero-badge {
  display: inline-block;
  background: rgba(200,134,10,0.25);
  border: 1px solid var(--amber);
  color: var(--amber-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-content h1 em {
  color: var(--amber-light);
  font-style: italic;
}
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1;
}
.stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.15rem;
  letter-spacing: 0.03em;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,134,10,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-full { width: 100%; text-align: center; }

/* On light backgrounds */
.section .btn-outline,
.calc-result .btn-outline,
.download-box .btn-outline {
  color: var(--navy);
  border-color: var(--navy-light);
}
.section .btn-outline:hover,
.download-box .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---- ALERT BANNER ---- */
.alert-banner {
  background: var(--yellow-bg);
  border-top: 3px solid var(--yellow-border);
  border-bottom: 1px solid var(--yellow-border);
  padding: 0.85rem 0;
  font-size: 0.88rem;
  color: #5a4000;
}

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ---- ELIGIBILITY CHECKER ---- */
.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.elig-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.elig-header {
  padding: 1.25rem 1.5rem;
  color: var(--white);
}
.elig-header.ky { background: var(--navy); }
.elig-header.oh { background: #1a3a6b; }
.state-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}
.elig-header h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.2rem; }
.elig-header p { color: rgba(255,255,255,0.65); font-size: 0.78rem; margin: 0; }
.elig-body { padding: 1.25rem 1.5rem; }
.elig-footer {
  padding: 0.85rem 1.5rem;
  background: var(--cream-dark);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  color: var(--text-mid);
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.form-group select,
.form-group input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a6a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,74,120,0.12);
}

/* ---- CHECKER RESULTS ---- */
.checker-result {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}
.checker-result.eligible {
  background: var(--green-bg);
  border-left: 4px solid var(--green);
  color: #0f4a28;
}
.checker-result.ineligible {
  background: var(--red-bg);
  border-left: 4px solid var(--red);
  color: #5a0f0f;
}
.checker-result.uncertain {
  background: var(--yellow-bg);
  border-left: 4px solid var(--yellow-border);
  color: #4a3000;
}

/* ---- TABLE ---- */
.table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}
.table-wrap h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--cream); }
td.eligible { color: var(--green); font-weight: 500; }
td.ineligible { color: var(--red); font-weight: 500; }
td.partial { color: #7a5500; font-weight: 500; }
.table-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ---- STATE TABS ---- */
.state-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-mid);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--amber);
}

/* ---- COUNTY CARDS ---- */
.county-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.county-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.county-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.county-header {
  background: var(--navy);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.county-header h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
}
.county-pop {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.county-court { padding: 1.25rem; }
.county-court strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 0.4rem; }
.county-court address { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 0.75rem; line-height: 1.6; }
.county-court address a { color: var(--navy-light); }
.hours-block {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.hours-block strong { margin-bottom: 0.2rem; }
.hours-block ul { list-style: none; padding: 0; }
.hours-block li { color: var(--text-mid); }
.local-notes { margin-bottom: 1rem; font-size: 0.83rem; }
.local-notes strong { display: block; color: var(--amber); margin-bottom: 0.3rem; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.local-notes ul { list-style: none; padding: 0; }
.local-notes li {
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
  color: var(--text-mid);
  border-bottom: 1px solid var(--cream-dark);
}
.local-notes li:last-child { border-bottom: none; }
.local-notes li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}
.county-link {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy-light);
  border-bottom: 1.5px solid var(--navy-light);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.county-link:hover { color: var(--amber); border-color: var(--amber); }

/* ---- FEE CALCULATOR ---- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.calc-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.calc-result {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--white);
}
.result-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.result-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.result-breakdown { margin-bottom: 1.25rem; }
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.breakdown-row span:first-child { color: rgba(255,255,255,0.7); }
.breakdown-row span:last-child { color: var(--white); font-weight: 600; }
.result-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}

/* ---- DOWNLOAD BOX ---- */
.download-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.download-icon { font-size: 2rem; flex-shrink: 0; }
.download-text { flex: 1; }
.download-text strong { display: block; margin-bottom: 0.2rem; }
.download-text p { font-size: 0.85rem; color: var(--text-mid); margin: 0; }
.download-box .btn { flex-shrink: 0; white-space: nowrap; }

/* ---- STEPS ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.step-card h4 { margin-bottom: 0.4rem; color: var(--navy); }
.step-card p { font-size: 0.83rem; color: var(--text-mid); margin: 0; line-height: 1.6; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--white);
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--amber);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--cream); }
.faq-body { padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---- CTA SECTION ---- */
.section-cta {
  background: var(--navy);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.cta-text h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-text p { color: rgba(255,255,255,0.72); margin-bottom: 0.75rem; font-size: 0.92rem; }
.cta-text p:last-child { margin-bottom: 0; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
}
.cta-actions .btn-outline {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.4);
}
.cta-actions .btn-outline:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ---- FOOTER ---- */
.site-footer {
  background: #07111f;
  color: rgba(255,255,255,0.6);
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text { font-size: 1.3rem; color: var(--white); display: block; margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; max-width: 280px; }
.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--amber-light); }
.footer-bottom { padding: 1rem 0; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--amber-light); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .eligibility-grid { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .calc-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.25rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .hero-content { padding: 3rem 1.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .download-box { flex-direction: column; align-items: flex-start; }
  .section { padding: 3.5rem 0; }
}
