/* =============================================
   MarriageLicenseLocal.com — Main Stylesheet
   Aesthetic: Editorial civic — warm cream, deep navy, gold
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300&family=DM+Mono:wght@400;500&display=swap');

:root {
  --cream:     #f7f3ee;
  --cream-mid: #ede7dd;
  --cream-dark:#d8cfbf;
  --navy:      #1a2540;
  --navy-mid:  #253158;
  --navy-light:#3a4d7a;
  --gold:      #c8961e;
  --gold-light:#e8b84b;
  --gold-pale: #f5e8c8;
  --rust:      #a3522a;
  --text:      #1e1a14;
  --text-mid:  #4a4236;
  --text-light:#7a6f62;
  --white:     #ffffff;
  --shadow-sm: 0 2px 8px rgba(26,37,64,0.08);
  --shadow-md: 0 6px 24px rgba(26,37,64,0.12);
  --shadow-lg: 0 16px 48px rgba(26,37,64,0.16);
  --radius:    6px;
  --radius-lg: 12px;
  --max-w:     1100px;
  --col-w:     680px;
}

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

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

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.2em; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

ul, ol { padding-left: 1.4em; margin-bottom: 1.2em; }
li { margin-bottom: 0.4em; color: var(--text-mid); }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.col-text  { max-width: var(--col-w); }
.section   { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 24px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-nav { display: flex; gap: 0; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  margin-left: 8px;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200,150,30,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(58,77,122,0.4) 0%, transparent 55%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
}
.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: block;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero-lead {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,150,30,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.07); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }

/* Hero quick-find card */
.hero-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--navy);
}
.hero-card select,
.hero-card input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 12px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.hero-card select:focus,
.hero-card input:focus { outline: none; border-color: var(--navy-mid); }
.hero-card .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--cream-mid);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.03em;
}
.trust-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card-icon {
  width: 44px; height: 44px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { font-size: 0.9rem; margin-bottom: 0; }
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link:hover .card { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── DATA TABLE (county details) ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 24px 0;
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-mid);
  color: var(--text-mid);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--cream); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--text); }

/* ── BADGE / TAG ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.badge-green  { background: #e6f4ea; color: #2e6b3e; }
.badge-amber  { background: #fef3e2; color: #92600a; }
.badge-blue   { background: #e8edf8; color: #2a4080; }
.badge-red    { background: #fce8e6; color: #8b2011; }

/* ── INFO BOX ── */
.info-box {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.info-box.navy {
  border-left-color: var(--navy);
  background: #edf0f7;
}
.info-box.rust {
  border-left-color: var(--rust);
  background: #f9ece4;
}
.info-box p { font-size: 0.9rem; margin-bottom: 0; }
.info-box strong { display: block; margin-bottom: 6px; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--navy); font-family: 'DM Mono', monospace; text-transform: uppercase; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
  padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--cream-dark); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding-bottom: 20px;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* ── CHECKLIST TOOL ── */
.tool-wrap {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.tool-step {
  display: none;
}
.tool-step.active { display: block; }
.tool-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.tool-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin: 20px 0;
}
.tool-opt {
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-mid);
  font-family: 'Source Serif 4', serif;
  background: var(--white);
  transition: all 0.15s;
  text-align: left;
}
.tool-opt:hover { border-color: var(--navy-mid); color: var(--navy); }
.tool-opt.selected { border-color: var(--navy); background: #edf0f7; color: var(--navy); font-weight: 600; }
.tool-nav { display: flex; gap: 12px; margin-top: 24px; }
.checklist-output { display: none; }
.checklist-output.show { display: block; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-mid);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-cb {
  width: 20px; height: 20px;
  border: 2px solid var(--navy-light);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  appearance: none;
  background: var(--white);
  transition: all 0.15s;
}
.checklist-cb:checked { background: var(--navy); border-color: var(--navy); }
.checklist-cb:checked + .checklist-text { text-decoration: line-through; color: var(--text-light); }
.checklist-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }
.checklist-text span { display: block; font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }

/* ── PROGRESS BAR (tool steps) ── */
.progress-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.progress-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--cream-dark);
  transition: background 0.3s;
}
.progress-dot.done { background: var(--gold); }

/* ── STATE INDEX GRID ── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.state-tile {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.state-tile:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.state-tile .flag { font-size: 1.1rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--navy-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--cream-dark); }

/* ── COUNTY HERO ── */
.county-hero {
  background: var(--navy);
  padding: 52px 0 48px;
  background-image: radial-gradient(ellipse at 30% 60%, rgba(200,150,30,0.1) 0%, transparent 60%);
}
.county-hero h1 { color: var(--white); margin-bottom: 12px; }
.county-hero .county-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.county-hero .meta-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
}
.county-hero .meta-pill.highlight {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
}

/* ── STAT BOXES ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-box .stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-box .stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

/* ── ARTICLE CONTENT ── */
.article-body h2 { margin: 40px 0 16px; padding-top: 8px; border-top: 1px solid var(--cream-dark); }
.article-body h3 { margin: 28px 0 12px; color: var(--navy-mid); }
.article-body p  { font-size: 1rem; line-height: 1.85; margin-bottom: 1.4em; }
.article-body ul,
.article-body ol { margin-bottom: 1.4em; }
.article-body li { margin-bottom: 0.6em; font-size: 0.97rem; }

/* ── SIDEBAR ── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h4 { margin-bottom: 14px; font-size: 0.95rem; }
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { border-bottom: 1px solid var(--cream-mid); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  padding: 9px 0;
  font-size: 0.85rem;
  color: var(--navy-mid);
  text-decoration: none;
}
.sidebar-links a:hover { color: var(--gold); }

/* ── DISCLAIMER ── */
.disclaimer {
  background: var(--cream-mid);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 32px 0 0;
  line-height: 1.6;
}
.disclaimer strong { color: var(--text-mid); font-size: 0.78rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-main { color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 400px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  html { font-size: 16px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .trust-items { gap: 24px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ── ANALYTICS PLACEHOLDER ── */
/* GA4, AdSense, Clarity injected here in Phase 3 */
