:root {
  --sage: #2A7F62;
  --sage-dark: #1E5E48;
  --sage-light: #E8F5EF;
  --sage-mid: #B8DFC9;
  --cream: #FBF8F3;
  --cream-100: #F5F2ED;
  --cream-200: #EDE9E3;
  --cream-300: #E2DDD5;
  --text: #1A2E25;
  --text-muted: #5A6B63;
  --text-light: #8A9990;
  --accent: #D4763B;
  --accent-light: #FFF0E5;
  --accent-dark: #B5612E;
  --white: #FFFFFF;
  --purple: #6B4FA0;
  --purple-light: #F3EFFE;
}

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.fd { font-family: 'Fraunces', Georgia, serif; }
a { color: inherit; text-decoration: none; }
input, select, button { font-family: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip { position: absolute; left: -9999px; z-index: 999; padding: 12px 24px; background: var(--sage); color: #fff; font-weight: 600; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; top: 0; }

/* ── Layout ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,243,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-200);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -0.5px;
}
.nav-logo-text { font-size: 18px; font-weight: 600; color: var(--text); }
.nav-logo-text span { color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 14px; color: var(--text-muted); font-weight: 500; transition: color 0.2s; border: none; background: none; cursor: pointer; }
.nav-link:hover { color: var(--sage); }
.nav-link.active { color: var(--sage); border-bottom: 2px solid var(--sage); }
.nav-cta {
  padding: 8px 18px; background: var(--sage); color: #fff;
  font-size: 13px; font-weight: 600; border-radius: 10px; border: none; cursor: pointer;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--sage-dark); }

@media (max-width: 640px) {
  .nav-link.hide-mobile { display: none; }
}

/* ── Hero ── */
.hero {
  text-align: center; padding: 60px 24px 48px;
  background: linear-gradient(180deg, var(--sage-light) 0%, var(--cream) 100%);
}
.hero-eyebrow {
  font-size: 13px; font-weight: 600; color: var(--sage);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 5vw, 48px); font-weight: 400;
  color: var(--text); line-height: 1.15; margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero-sub {
  font-size: 18px; color: var(--text-muted); line-height: 1.6;
  max-width: 540px; margin: 0 auto 32px;
}

/* ── Search bar ── */
.search-bar {
  display: flex; background: var(--white); border-radius: 16px;
  border: 2px solid var(--cream-300); overflow: hidden; max-width: 680px; margin: 0 auto;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--sage-mid); }
.search-bar input {
  flex: 1; padding: 16px 20px; border: none; outline: none;
  font-size: 16px; color: var(--text); background: transparent;
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar button {
  padding: 12px 28px; background: var(--sage); color: #fff;
  border: none; cursor: pointer; font-weight: 600; font-size: 15px;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--sage-dark); }

/* ── Pills ── */
.pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pill {
  padding: 6px 16px; border-radius: 20px; border: 1px solid var(--cream-300);
  font-size: 13px; color: var(--text-muted); background: transparent;
  cursor: pointer; transition: all 0.2s;
}
.pill:hover { border-color: var(--sage); color: var(--sage); }

/* ── Stats banner ── */
.stats-banner {
  display: flex; justify-content: center; gap: 48px; padding: 32px 24px;
  border-bottom: 1px solid var(--cream-200); flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--sage); font-family: 'Fraunces', Georgia, serif; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Section headers ── */
.section-header {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px;
}
.section-title { font-size: 24px; font-family: 'Fraunces', Georgia, serif; font-weight: 400; color: var(--text); }
.section-link { font-size: 14px; color: var(--sage); font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ── Card grid ── */
.card-grid { display: grid; gap: 14px; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── Service cards ── */
.service-card {
  background: var(--white); border-radius: 16px; border: 1px solid var(--cream-200);
  padding: 20px 22px; transition: all 0.25s; cursor: pointer; display: block;
}
.service-card:hover {
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  border-color: var(--sage-mid);
}
.service-card-icon { font-size: 28px; margin-bottom: 10px; }
.service-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.service-card-meta { font-size: 12px; color: var(--text-light); margin-top: 10px; }

/* ── State cards ── */
.state-card {
  background: var(--white); border-radius: 14px; border: 1px solid var(--cream-200);
  padding: 18px 22px; transition: all 0.25s; cursor: pointer; display: block;
}
.state-card:hover { border-color: var(--sage-mid); transform: translateY(-1px); }
.state-card-header { display: flex; justify-content: space-between; align-items: baseline; }
.state-card h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.state-card-count { font-size: 13px; color: var(--sage); font-weight: 600; }
.state-card-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── How it works ── */
.how-section { background: var(--sage-light); padding: 56px 24px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.how-step { text-align: center; }
.how-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--sage);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; font-family: 'Fraunces', Georgia, serif; margin-bottom: 16px;
}
.how-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  border-radius: 20px; padding: 40px 36px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.cta-banner h2 { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 400; color: #fff; margin-bottom: 8px; }
.cta-banner p { font-size: 15px; color: rgba(255,255,255,0.8); max-width: 420px; line-height: 1.5; }
.cta-btn {
  padding: 14px 32px; background: #fff; color: var(--sage-dark);
  border: none; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.cta-btn:hover { background: var(--sage-light); }

/* ── Provider CTA section ── */
.provider-cta { background: var(--cream-100); padding: 48px 24px; text-align: center; }
.provider-cta h2 { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.provider-cta p { font-size: 15px; color: var(--text-muted); max-width: 500px; margin: 0 auto 24px; line-height: 1.6; }
.btn-accent {
  display: inline-block; padding: 14px 28px; background: var(--accent); color: #fff;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-accent:hover { background: var(--accent-dark); }

/* ── Badge ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge-sage { color: var(--sage-dark); background: var(--sage-light); }
.badge-accent { color: var(--accent); background: var(--accent-light); }
.badge-purple { color: var(--purple); background: var(--purple-light); }
.badge-gray { color: var(--text-muted); background: var(--cream-100); }
.badge-white { color: #fff; background: var(--sage); }

/* ── District link grid ── */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.link-card {
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--cream-200);
  font-size: 14px; color: var(--text-muted); transition: all 0.2s; display: block;
}
.link-card:hover { border-color: var(--sage-mid); color: var(--sage); background: var(--sage-light); }

/* ── Breadcrumbs ── */
.breadcrumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--sage); }
.breadcrumbs .sep { margin: 0 8px; }

/* ── Page header ── */
.page-header h1 {
  font-family: 'Fraunces', Georgia, serif; font-size: 28px;
  font-weight: 400; color: var(--text); margin-bottom: 8px;
}
.page-header p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px; }

/* ── Provider card ── */
.provider-card {
  background: var(--white); border-radius: 16px; border: 1px solid var(--cream-200);
  padding: 24px; transition: all 0.25s; position: relative; cursor: pointer;
}
.provider-card:hover {
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--sage-mid);
}
.provider-card-inner { display: flex; gap: 16px; }
.provider-avatar {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700;
  font-family: 'Fraunces', Georgia, serif; flex-shrink: 0;
}
.provider-card-body { flex: 1; min-width: 0; }
.provider-name { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.provider-location { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.provider-rating { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.stars { color: #E8A838; font-size: 14px; letter-spacing: 1px; }
.rating-num { font-size: 14px; font-weight: 600; }
.review-count { font-size: 13px; color: var(--text-muted); }
.provider-desc {
  margin-top: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.provider-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.provider-response { font-size: 12px; color: var(--sage); margin-top: 8px; font-weight: 500; }

/* ── FAQ ── */
.faq-item { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--cream-200); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Footer ── */
footer {
  background: #1A2E25; color: rgba(255,255,255,0.6); padding: 48px 24px 32px; margin-top: 48px;
}
.footer-grid {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.footer-heading { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0.5px; }
.footer-brand { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.footer-link { font-size: 13px; padding: 4px 0; cursor: pointer; display: block; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  max-width: 960px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { margin-left: 16px; }
.footer-bottom a:hover { color: #fff; }

/* ── Forms (calculator) ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-select, .form-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--cream-300); font-size: 15px;
  color: var(--text); background: var(--white); outline: none;
  transition: border-color 0.2s;
}
.form-select:focus, .form-input:focus { border-color: var(--sage-mid); }
.btn-primary {
  width: 100%; padding: 14px; background: var(--sage); color: #fff;
  border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--sage-dark); }
.btn-primary:disabled { background: var(--cream-300); color: var(--text-light); cursor: not-allowed; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pricing-card {
  background: var(--white); border-radius: 20px; padding: 24px;
  border: 1px solid var(--cream-200); position: relative;
}
.pricing-card.highlight { border: 2px solid var(--sage); box-shadow: 0 4px 24px rgba(42,127,98,0.12); }
.pricing-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; background: var(--sage); color: #fff;
  font-size: 11px; font-weight: 600; border-radius: 20px; white-space: nowrap;
}
.pricing-tier { font-size: 18px; font-weight: 600; }
.pricing-price { font-size: 28px; font-weight: 700; color: var(--sage); font-family: 'Fraunces', Georgia, serif; }
.pricing-period { font-size: 13px; color: var(--text-light); }
.pricing-desc { font-size: 14px; color: var(--text-muted); margin: 4px 0 20px; }
.pricing-feature { font-size: 14px; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid var(--cream-200); }
.pricing-feature:last-child { border-bottom: none; }
.btn-outline {
  width: 100%; padding: 12px; background: transparent; color: var(--sage);
  border: 2px solid var(--sage); border-radius: 12px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.2s; margin-top: 20px;
}
.btn-outline:hover { background: var(--sage-light); }

/* ── Results stats ── */
.results-stats { display: flex; gap: 40px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--cream-200); flex-wrap: wrap; }
.results-stat-num { font-size: 24px; font-weight: 700; color: var(--sage); font-family: 'Fraunces', Georgia, serif; }
.results-stat-label { font-size: 13px; color: var(--text-muted); }
