/* =====================================================
   NKY Property Tax — styles.css
   Clean, professional, high-trust civic design
   ===================================================== */

/* --- RESET & VARIABLES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2e4a;
  --navy-light: #243d5e;
  --blue:       #1e5799;
  --sky:        #3a7bd5;
  --sky-light:  #e8f0fb;
  --gold:       #c9973a;
  --gold-light: #fdf4e3;
  --green:      #2e7d4f;
  --green-light:#e6f4ec;
  --red:        #b83232;
  --red-light:  #fdeaea;
  --gray-50:    #f8f9fa;
  --gray-100:   #f1f3f5;
  --gray-200:   #e9ecef;
  --gray-400:   #adb5bd;
  --gray-600:   #6c757d;
  --gray-800:   #343a40;
  --text:       #1a1a2e;
  --text-muted: #5a6472;
  --white:      #ffffff;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --font-body:  'Georgia', 'Times New Roman', serif;
  --font-ui:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }

/* --- LINKS --- */
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }

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

/* --- HEADER --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo img { width: 36px; height: 36px; border-radius: 6px; }
.logo-text { font-size: 1.15rem; color: var(--white); font-family: var(--font-ui); letter-spacing: -.02em; }
.logo-text strong { color: var(--gold); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: rgba(255,255,255,.85); font-size: .9rem; padding: 8px 14px;
  border-radius: 6px; transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: var(--white); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.4rem; cursor: pointer; padding: 6px 10px; margin-left: auto;
}

/* --- HERO --- */
.hero {
  position: relative; min-height: 420px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,46,74,.92) 0%, rgba(26,46,74,.75) 60%, rgba(26,46,74,.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 60px 20px;
  max-width: 680px;
}
.hero-label {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem); color: var(--white);
  font-family: var(--font-ui); font-weight: 800; line-height: 1.15;
  margin-bottom: 16px;
}
.hero-sub { color: rgba(255,255,255,.88); font-size: 1.05rem; margin-bottom: 28px; max-width: 560px; }

.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.btn {
  display: inline-flex; align-items: center;
  padding: 13px 26px; border-radius: var(--radius); font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition); text-decoration: none !important; border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: #e0aa44; border-color: #e0aa44; color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); color: var(--white); }

.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges span { color: rgba(255,255,255,.8); font-size: .85rem; }
.hero-badges span::before { content: ''; }

/* --- ALERT BANNER --- */
.alert-banner {
  background: var(--gold-light); border-top: 3px solid var(--gold); border-bottom: 1px solid #e8c87a;
  padding: 12px 20px; font-size: .9rem; color: var(--gray-800); text-align: center;
}

/* --- SECTIONS --- */
.section { padding: 64px 0; }
.alt-bg { background: var(--gray-50); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy);
  font-weight: 800; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* --- COUNTY GRID --- */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 28px;
}

.county-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.county-card:hover { box-shadow: var(--shadow); }
.county-card.featured { border-color: var(--sky); border-width: 2px; }
.county-card.small { grid-column: span 1; }

.county-card-header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px;
}
.state-badge {
  flex-shrink: 0; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .05em;
}
.state-badge.ky { background: #003087; color: var(--white); }
.state-badge.oh { background: #bb0000; color: var(--white); }

.county-card h3 { font-size: 1.2rem; color: var(--navy); font-weight: 700; margin-bottom: 3px; }
.county-card h3 a { color: var(--navy); }
.county-card h3 a:hover { color: var(--sky); text-decoration: none; }
.county-subtitle { font-size: .8rem; color: var(--text-muted); }

.county-facts { margin-bottom: 20px; }
.fact-row {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--gray-100); font-size: .88rem;
  align-items: baseline;
}
.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); min-width: 140px; flex-shrink: 0; font-weight: 600; }
.fact-val { color: var(--text); flex: 1; }

.office-block {
  background: var(--sky-light); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
}
.office-block h4 { font-size: .9rem; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.office-block address { font-style: normal; font-size: .88rem; color: var(--text); margin-bottom: 4px; line-height: 1.5; }
.office-block p { font-size: .85rem; color: var(--text); margin-bottom: 2px; }
.office-block p.note {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,.08);
  color: var(--text-muted); font-style: italic;
}
.office-block a { color: var(--sky); }

.county-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .9rem; color: var(--sky);
  margin-top: 8px;
}
.county-link:hover { color: var(--blue); text-decoration: none; }

.coming-soon {
  font-size: .82rem; color: var(--text-muted); font-style: italic; margin-top: 12px;
}

/* --- KY vs OH COMPARISON --- */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.compare-col {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.ky-col { border-top: 4px solid #003087; }
.oh-col { border-top: 4px solid #bb0000; }
.compare-col h3 { font-size: 1.2rem; margin-bottom: 18px; color: var(--navy); }
.compare-list { list-style: none; }
.compare-list li {
  padding: 9px 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; color: var(--text);
}
.compare-list li:last-child { border-bottom: none; }
.compare-list li strong { color: var(--navy); }

/* --- CALCULATOR --- */
.calculator-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  background: var(--white); border: 2px solid var(--sky);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow);
}
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: .88rem; font-weight: 700; color: var(--navy); }
.calc-field select, .calc-field input[type="number"] {
  padding: 11px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-size: .95rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition);
}
.calc-field select:focus, .calc-field input:focus {
  outline: none; border-color: var(--sky);
}
.calc-field input[type="checkbox"] { width: 16px; height: 16px; margin-right: 6px; }
.calc-field label:has(input[type="checkbox"]) {
  flex-direction: row; align-items: center; cursor: pointer;
}

.calc-result {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 20px; margin-top: 4px;
}
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem;
}
.result-row:last-of-type { border-bottom: none; }
.result-highlight { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.calc-disclaimer { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: 12px; font-style: italic; }

.calc-info { }
.calc-info h4 { font-size: 1rem; color: var(--navy); margin-bottom: 12px; font-weight: 700; }
.calc-info p { font-size: .88rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.calc-info p strong { color: var(--navy); }

/* --- EXEMPTIONS --- */
.exemption-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.exemption-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.exemption-icon { font-size: 2rem; margin-bottom: 12px; }
.exemption-card h3 { font-size: 1rem; color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.exemption-card p { font-size: .88rem; color: var(--text); margin-bottom: 12px; line-height: 1.6; }
.exemption-card ul { padding-left: 18px; }
.exemption-card li { font-size: .85rem; color: var(--text-muted); margin-bottom: 5px; }

/* --- PAYMENT TABLE --- */
.payment-table-wrapper { overflow-x: auto; margin-bottom: 16px; }
.payment-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.payment-table th {
  background: var(--navy); color: var(--white);
  padding: 12px 16px; text-align: left; font-weight: 700; white-space: nowrap;
}
.payment-table td { padding: 10px 16px; border-bottom: 1px solid var(--gray-200); }
.payment-table tr:nth-child(even) td { background: var(--gray-50); }
.payment-table tr:hover td { background: var(--sky-light); }
.table-note {
  font-size: .85rem; color: var(--text-muted); background: var(--gold-light);
  border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- FAQ --- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item summary {
  padding: 18px 8px; font-size: .97rem; font-weight: 700;
  color: var(--navy); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--sky); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 8px 18px; font-size: .91rem; color: var(--text);
  line-height: 1.7; max-width: 680px;
}

/* --- FOOTER --- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 52px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer-links h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.45); text-align: center; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-light); padding: 12px 20px; z-index: 200; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .county-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .calculator-wrapper { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .hero { min-height: 340px; }
  .hero-content { padding: 40px 20px; }

  .fact-label { min-width: 120px; font-size: .82rem; }
  .fact-val { font-size: .85rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .btn { padding: 11px 20px; font-size: .88rem; }
  .hero-cta-group { flex-direction: column; }
  .hero-badges { flex-direction: column; gap: 6px; }
}
