/* ============================================
   HealthDeptGuide — styles.css
   Aesthetic: Clean civic authority — editorial
   serif headlines, generous whitespace, 
   teal/forest green accent on warm white.
   ============================================ */

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

:root {
  --green:       #1a6b4a;
  --green-dark:  #124d36;
  --green-light: #e8f4ef;
  --teal:        #2a8f6f;
  --teal-light:  #d4ede5;
  --warm-white:  #faf9f7;
  --off-white:   #f3f1ee;
  --border:      #ddd9d3;
  --text:        #1c1c1a;
  --text-mid:    #4a4a46;
  --text-light:  #7a7a74;
  --ky-blue:     #003087;
  --oh-red:      #c8102e;
  --yes-green:   #1a6b4a;
  --no-gray:     #b0aca5;
  --warn-amber:  #b36800;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--warm-white);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 400; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--green-dark); }

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

/* --- HEADER --- */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

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

.logo-text {
  font-size: 1.1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.logo-text strong { color: var(--green); font-weight: 600; }

.main-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--green); text-decoration: none; }

.btn-find {
  background: var(--green);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-find:hover { background: var(--green-dark); text-decoration: none !important; }

/* --- HERO --- */
.hero {
  background: var(--green-dark);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,107,74,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; max-width: 760px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 { color: #fff; margin-bottom: 16px; }

.hero-sub {
  font-size: 1.35rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}

.hero-detail {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
  background: #fff;
  color: var(--green-dark) !important;
  padding: 13px 28px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary:hover { background: var(--teal-light); text-decoration: none !important; }

.btn-secondary {
  background: transparent;
  color: #fff !important;
  padding: 13px 28px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover { border-color: #fff; text-decoration: none !important; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.hero-img-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  opacity: 0.2;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }

/* --- QUICK STRIP --- */
.quick-strip {
  background: var(--green);
  padding: 20px 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  color: #fff;
  text-align: center;
}

.quick-icon { font-size: 1.4rem; }
.quick-label { font-size: 0.72rem; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,0.9); }

/* --- DIRECTORY SECTIONS --- */
.directory-section { padding: 72px 0; }
.directory-section.alt-bg { background: var(--off-white); }

.section-header { max-width: 720px; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-mid); font-size: 0.97rem; line-height: 1.7; }

/* --- DISTRICT BLOCK --- */
.district-block { margin-bottom: 56px; }
.district-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

.district-muted .district-label { color: var(--no-gray); }
.district-note { color: var(--text-mid); font-size: 0.93rem; margin-bottom: 20px; }

/* --- OFFICE GRID --- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 24px;
}
.office-grid.two-up { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* --- OFFICE CARD --- */
.office-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.office-card:hover { box-shadow: var(--shadow-lg); }

.office-card.mini { padding: 20px 24px; }
.office-card.mini h3 { font-size: 1rem; margin-bottom: 8px; }
.office-card.mini p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.5; }
.office-card.mini a { color: var(--green); }

.office-header {
  background: var(--green-light);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.office-header h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
}

.office-detail-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

.office-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.office-address,
.office-phone,
.office-hours,
.office-services,
.office-note,
.office-fees {
  font-size: 0.9rem;
  line-height: 1.6;
}

.office-address strong,
.office-phone strong,
.office-hours strong,
.office-services strong,
.office-note strong,
.office-fees strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.office-hours ul,
.office-services ul {
  list-style: none;
  padding: 0;
}

.office-hours ul li { color: var(--text-mid); }
.office-hours ul li::before { content: ''; }

.office-services ul li {
  color: var(--text-mid);
  padding-left: 14px;
  position: relative;
}
.office-services ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.office-note {
  background: #fffbf0;
  border-left: 3px solid var(--warn-amber);
  padding: 12px 14px;
  border-radius: 0 4px 4px 0;
}
.office-note strong { color: var(--warn-amber); }

/* --- FEE TABLE --- */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.fee-table tr { border-bottom: 1px solid var(--off-white); }
.fee-table tr:last-child { border-bottom: none; }
.fee-table td { padding: 5px 0; color: var(--text-mid); }
.fee-table td:last-child { text-align: right; font-weight: 500; color: var(--text); }

/* --- SERVICES TABLE --- */
.services-section { padding: 72px 0; background: var(--green-dark); }
.services-section .section-header { max-width: 720px; }
.services-section .section-tag { background: rgba(255,255,255,0.15); color: #fff; }
.services-section h2 { color: #fff; }
.services-section .section-header p { color: rgba(255,255,255,0.75); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }

.services-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.88rem;
  white-space: nowrap;
}

.services-table thead { background: var(--green); }
.services-table th {
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.services-table tbody tr { border-bottom: 1px solid var(--off-white); }
.services-table tbody tr:last-child { border-bottom: none; }
.services-table tbody tr:hover { background: var(--green-light); }
.services-table td { padding: 11px 14px; color: var(--text-mid); }
.services-table td:first-child { color: var(--text); }

.services-table td.yes { color: var(--yes-green); font-weight: 500; }
.services-table td.partial { color: var(--warn-amber); font-size: 0.82rem; }
.services-table td.no { color: var(--no-gray); }

.table-note {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  margin-top: 16px;
}

/* --- CALCULATOR --- */
.calculator-section { padding: 72px 0; }

.calculator-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 640px;
  box-shadow: var(--shadow);
}

.calc-group {
  margin-bottom: 24px;
}

.calc-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-group select,
.calc-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--warm-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='%234a4a46' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.calc-group input { background-image: none; }

.calc-group select:focus,
.calc-group input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
}

.btn-calc {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-calc:hover { background: var(--green-dark); }

.calc-result {
  margin-top: 28px;
  padding: 24px;
  background: var(--green-light);
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
}

.result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.result-amount {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.4rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.result-detail {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.result-note {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- COMPARISON --- */
.comparison-section { padding: 72px 0; background: var(--off-white); }

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

.compare-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-header {
  padding: 16px 24px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: #fff;
}
.compare-header.ky { background: var(--ky-blue); }
.compare-header.oh { background: var(--oh-red); }

.compare-list {
  list-style: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-list li {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--off-white);
}
.compare-list li:last-child { border-bottom: none; padding-bottom: 0; }
.compare-list li strong { color: var(--text); }

/* --- FAQ --- */
.faq-section { padding: 72px 0; }

.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 4px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-size: 0.97rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.45;
}
.faq-q:hover { color: var(--green); background: var(--green-light); }

.faq-arrow { font-size: 1.1rem; color: var(--text-light); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--green); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 500px; }

.faq-a p {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
  border-top: 1px solid var(--off-white);
  padding-top: 16px;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 48px;
  align-items: start;
}

.footer-brand .logo-text {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.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: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .office-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .hero-img-wrap { display: none; }
}

@media (max-width: 600px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 44px; }
  .directory-section, .services-section, .calculator-section,
  .comparison-section, .faq-section { padding: 48px 0; }
  .hero-stats { gap: 24px; }
  .calculator-card { padding: 24px; }
  .footer-links { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .btn-find { padding: 7px 14px; font-size: 0.8rem; }
}
