/* =============================================
   Marriage License Guide — styles.css
   Aesthetic: Refined editorial, warm cream + navy
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   ============================================= */

:root {
  --navy: #1a2744;
  --navy-mid: #243358;
  --navy-light: #2e4070;
  --gold: #b8943f;
  --gold-light: #d4aa5a;
  --cream: #faf7f2;
  --cream-dark: #f0ebe2;
  --cream-mid: #e8e1d6;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
  --text-light: #767676;
  --ky-green: #2d5a27;
  --ky-green-light: #e8f0e7;
  --oh-red: #8b1a1a;
  --oh-red-light: #f5e8e8;
  --border: #ddd5c8;
  --shadow-sm: 0 2px 8px rgba(26,39,68,0.08);
  --shadow-md: 0 4px 20px rgba(26,39,68,0.12);
  --shadow-lg: 0 8px 40px rgba(26,39,68,0.16);
  --radius: 8px;
  --radius-lg: 14px;
  --max-width: 1180px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, 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-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.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;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  color: rgba(250,247,242,0.8);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--gold-light); }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,39,68,0.92) 0%, rgba(26,39,68,0.75) 55%, rgba(26,39,68,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 64px;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(250,247,242,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,148,63,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(250,247,242,0.5);
}
.btn-secondary:hover {
  background: rgba(250,247,242,0.1);
  border-color: var(--white);
  color: var(--white);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(250,247,242,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(250,247,242,0.2);
}

/* ── Sections ────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 680px;
  font-weight: 300;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.ky-label { background: var(--ky-green-light); color: var(--ky-green); }
.oh-label { background: var(--oh-red-light); color: var(--oh-red); }

/* ── State Comparison ────────────────────────── */
.state-compare {
  padding: 72px 0;
  background: var(--white);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.compare-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.compare-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-card.ky .compare-header { background: var(--ky-green-light); }
.compare-card.oh .compare-header { background: var(--oh-red-light); }

.compare-card.ky .compare-header h3 { color: var(--ky-green); }
.compare-card.oh .compare-header h3 { color: var(--oh-red); }

.compare-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.state-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.ky-badge { background: var(--ky-green); color: white; }
.oh-badge { background: var(--oh-red); color: white; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table tr {
  border-bottom: 1px solid var(--cream-mid);
}
.compare-table tr:last-child { border-bottom: none; }
.compare-table th, .compare-table td {
  padding: 10px 20px;
  text-align: left;
  font-size: 0.92rem;
  font-family: var(--font-body);
}
.compare-table th {
  color: var(--text-light);
  font-weight: 400;
  width: 42%;
  background: var(--cream);
}
.compare-table td {
  color: var(--text-dark);
  font-weight: 600;
}

.compare-note {
  background: #fffbf0;
  border: 1px solid #e8d48a;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-mid);
}

/* ── Directory ───────────────────────────────── */
.directory-section {
  padding: 72px 0;
  background: var(--cream);
}
.alt-bg { background: var(--cream-dark); }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.office-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.office-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.office-header {
  padding: 20px 24px 16px;
  background: var(--navy);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.office-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

.county-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(184,148,63,0.25);
  color: var(--gold-light);
  white-space: nowrap;
}
.county-badge.oh-badge {
  background: rgba(139,26,26,0.3);
  color: #f0a0a0;
}

.office-details {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
}

.detail-icon {
  width: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hours-note {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}

.office-notes {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  border-left: 3px solid var(--gold);
}

.office-link {
  display: block;
  padding: 14px 24px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}
.office-link:hover {
  background: var(--navy);
  color: var(--gold-light);
}

.ky-universal-rules, .oh-universal-rules {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.ky-universal-rules h3, .oh-universal-rules h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.ky-universal-rules ul, .oh-universal-rules ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ky-universal-rules li, .oh-universal-rules li {
  padding-left: 24px;
  position: relative;
  font-size: 0.93rem;
  color: var(--text-mid);
}
.ky-universal-rules li::before, .oh-universal-rules li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* ── Checklist ───────────────────────────────── */
.checklist-section {
  padding: 72px 0;
  background: var(--white);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.checklist-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  border: 1px solid var(--border);
}

.checklist-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-mid);
  cursor: pointer;
}

.checklist input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--navy);
  cursor: pointer;
}

.checklist-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  padding-left: 26px;
  line-height: 1.5;
}

/* ── Calculator ──────────────────────────────── */
.calculator-section {
  padding: 72px 0;
  background: var(--cream-dark);
}

.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 640px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-field input, .calc-field select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s;
}
.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: var(--navy);
}

.calc-result {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.result-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.result-label {
  color: var(--text-light);
  font-weight: 400;
}

.result-val {
  font-weight: 600;
  font-family: var(--font-display);
}
.result-expire { font-size: 1.05rem; color: var(--navy); }
.result-good { color: var(--ky-green); }
.result-urgent { color: #b85a00; }
.result-expired { color: var(--oh-red); }

.result-status {
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.status-good { background: var(--ky-green-light); color: var(--ky-green); }
.status-urgent { background: #fff3e0; color: #b85a00; }
.status-expired { background: var(--oh-red-light); color: var(--oh-red); }

.calc-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  max-width: 640px;
}

/* ── FAQ ─────────────────────────────────────── */
.faq-section {
  padding: 72px 0;
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.faq-item {
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Next Steps CTA ──────────────────────────── */
.next-steps {
  padding: 64px 0;
  background: var(--navy);
  text-align: center;
}

.next-steps h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.next-steps p {
  color: rgba(250,247,242,0.75);
  margin-bottom: 36px;
  font-size: 1rem;
}

.county-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.county-link-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.county-link-group .group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.county-link-group a {
  color: rgba(250,247,242,0.75);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.county-link-group a:hover { color: var(--gold-light); }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: #111a2e;
  padding: 56px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(250,247,242,0.5);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col strong {
  color: var(--cream);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(250,247,242,0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(250,247,242,0.35);
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .main-nav { display: none; }
  .hero { min-height: 480px; }
  .hero-stats { gap: 0; }
  .stat { padding: 0 14px; }
  .stat-num { font-size: 1.4rem; }
  .county-links { gap: 28px; flex-direction: column; align-items: center; }
  .county-link-group { align-items: center; }
  .checklist-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .calc-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .office-header { flex-direction: column; gap: 8px; }
}
