/* ======================================
   TitleCheckKY — Stylesheet
   Aesthetic: Authoritative utility — 
   clean government-adjacent but human,
   trustworthy, scannable. Not corporate,
   not AI-generic. Think: a good local
   newspaper's digital presence.
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

/* ---- TOKENS ---- */
:root {
  --brand-navy:    #1a2a47;
  --brand-blue:    #1e4fa8;
  --brand-gold:    #c9861f;
  --brand-gold-lt: #f5e8d0;
  --alert-amber:   #fef3cd;
  --alert-border:  #d97706;
  --bg:            #f7f6f3;
  --bg-alt:        #eeecea;
  --white:         #ffffff;
  --text:          #1e1e1e;
  --text-muted:    #555;
  --border:        #d5d0c8;
  --tag-ky-bg:     #dbeafe;
  --tag-ky-text:   #1e40af;
  --tag-oh-bg:     #fee2e2;
  --tag-oh-text:   #991b1b;
  --radius:        6px;
  --radius-lg:     10px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 12px rgba(0,0,0,.10);

  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
address { font-style: normal; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--brand-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo img { filter: brightness(0) invert(1); }
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: rgba(255,255,255,.80);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .15s;
}
.main-nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---- HERO ---- */
.hero {
  background: var(--brand-navy);
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  max-width: 440px;
  margin-bottom: 28px;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  width: 100%;
  height: 340px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-gold);
  color: var(--brand-navy);
}
.btn-primary:hover { background: #b5751a; text-decoration: none; }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }

/* ---- ALERT BAR ---- */
.alert-bar {
  background: var(--alert-amber);
  border-top: 3px solid var(--alert-border);
  border-bottom: 1px solid #f0d888;
  padding: 12px 0;
  font-size: .9rem;
}
.alert-bar strong { color: var(--alert-border); }

/* ---- SECTIONS ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand-navy);
  margin-bottom: 10px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 620px;
}

/* ---- COUNTY GRID ---- */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.county-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.county-card.featured {
  border-color: var(--brand-blue);
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(30,79,168,.12);
}
.ohio-card { border-left: 4px solid #b91c1c; }

.county-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.county-badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
}
.tag-ky { background: var(--tag-ky-bg); color: var(--tag-ky-text); }
.tag-oh { background: var(--tag-oh-bg); color: var(--tag-oh-text); }

.county-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-navy);
}
.county-card h3 a { color: inherit; }
.county-card h3 a:hover { color: var(--brand-blue); }
.county-desc { font-size: .88rem; color: var(--text-muted); }

.coming-soon {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.office-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.office {
  font-size: .86rem;
}
.office strong {
  display: block;
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--brand-navy);
  margin-bottom: 3px;
}
.office address { color: var(--text); margin-bottom: 2px; }
.office .phone a { color: var(--brand-blue); }
.office .hours { color: var(--text-muted); }
.office .note {
  margin-top: 4px;
  font-size: .8rem;
  color: var(--brand-gold);
  background: var(--brand-gold-lt);
  border-left: 3px solid var(--brand-gold);
  padding: 4px 8px;
  border-radius: 0 3px 3px 0;
}

.key-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.fact {
  display: flex;
  flex-direction: column;
  font-size: .82rem;
}
.fact-label {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 600;
}
.fact-val { font-weight: 500; color: var(--text); }

.card-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: auto;
}

/* ---- COMPARE TABLE ---- */
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.compare-table th {
  background: var(--brand-navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .83rem;
  letter-spacing: .04em;
}
.compare-table th:first-child { border-radius: 6px 0 0 0; }
.compare-table th:last-child { border-radius: 0 6px 0 0; }
.compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: var(--bg); }
.compare-table tr:hover td { background: var(--brand-gold-lt); }

/* ---- CHECKLIST ---- */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.checklist-col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-navy);
}
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--brand-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 2px;
}
.check-icon-alt {
  background: var(--brand-gold);
  color: var(--brand-navy);
}
.checklist li strong { display: block; font-size: .92rem; color: var(--brand-navy); margin-bottom: 3px; }
.checklist li p { font-size: .85rem; color: var(--text-muted); }

/* ---- FEE TABLE ---- */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-bottom: 20px;
}
.fee-table th {
  background: var(--brand-navy);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
}
.fee-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.fee-table tr:nth-child(even) td { background: var(--bg-alt); }
.fee-note {
  background: var(--brand-gold-lt);
  border-left: 4px solid var(--brand-gold);
  padding: 14px 18px;
  font-size: .88rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---- STEPS ---- */
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid var(--brand-blue);
  margin-left: 20px;
}
.step {
  display: flex;
  gap: 20px;
  padding: 0 0 36px 28px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  position: absolute;
  left: -20px;
  top: 0;
  width: 38px;
  height: 38px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}
.step-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 8px; }
.step-warning {
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: .83rem !important;
  color: #78350f !important;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background .15s;
}
.faq-item summary:hover { background: var(--bg); }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { background: var(--bg-alt); }
.faq-item p {
  padding: 0 20px 18px;
  font-size: .9rem;
  color: var(--text-muted);
  background: var(--white);
}

/* ---- COVERAGE ---- */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.coverage-col h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.coverage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.coverage-list li {
  font-size: .9rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.coverage-list li.covered {
  border-color: var(--brand-blue);
  background: #f0f5ff;
}
.coverage-list li.covered a { font-weight: 600; color: var(--brand-blue); }
.status-soon {
  font-size: .75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--brand-navy);
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 20px 40px;
}
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; }
.footer-links h4 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.45); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-legal a { color: rgba(255,255,255,.45); }
.footer-legal a:hover { color: #fff; text-decoration: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 800px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-image { display: none; }
  .checklist-grid { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .main-nav { display: none; }
  .key-facts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 44px 0 52px; }
  .section { padding: 48px 0; }
  .hero h1 { font-size: 1.75rem; }
  .step-list { margin-left: 12px; }
}
