/* OpenPath recovery state landing page styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #ccfbf1;
  --teal-xlight: #f0fdf4;
  --slate: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --badge-ccbhc-bg: #dbeafe; --badge-ccbhc-text: #1d4ed8;
  --badge-medicaid-bg: #d1fae5; --badge-medicaid-text: #065f46;
  --badge-sor-bg: #fef3c7; --badge-sor-text: #92400e;
  --badge-sliding-bg: #ede9fe; --badge-sliding-text: #5b21b6;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--slate);
  line-height: 1.6;
}

/* NAV */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-size: 1.2rem; font-weight: 700; color: var(--teal); text-decoration: none; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 0.88rem; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--slate); }
.nav-links .btn-cta {
  background: var(--teal); color: var(--white); padding: 8px 18px;
  border-radius: 8px; font-weight: 600;
}
.nav-links .btn-cta:hover { background: var(--teal-dark); color: var(--white); }

/* HERO */
.hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
  color: var(--white);
  padding: 72px 24px 88px;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-breadcrumb { font-size: 0.82rem; opacity: 0.75; margin-bottom: 20px; }
.hero-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.hero-breadcrumb a:hover { color: var(--white); }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-intro { font-size: 1.05rem; opacity: 0.9; max-width: 660px; margin-bottom: 36px; line-height: 1.7; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-hero-primary {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.hero-sub { font-size: 0.83rem; opacity: 0.7; }

/* MAIN LAYOUT */
.page-wrap { max-width: 960px; margin: 0 auto; padding: 56px 24px 80px; }

/* SECTION HEADERS */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--slate); margin-bottom: 16px; line-height: 1.25; }
.section-intro { font-size: 1rem; color: var(--muted); max-width: 640px; margin-bottom: 36px; line-height: 1.65; }
section { margin-bottom: 64px; }

/* FUNDING SECTION */
.funding-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.funding-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px 22px; }
.funding-card .icon { font-size: 1.6rem; margin-bottom: 12px; }
.funding-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.funding-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.funding-card .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill-green { background: #d1fae5; color: #065f46; }
.pill-amber { background: #fef3c7; color: #92400e; }

/* SPECIAL PROGRAMS */
.special-box {
  background: var(--teal-xlight);
  border: 1.5px solid var(--teal-light);
  border-radius: 14px;
  padding: 24px 22px;
  margin-top: 20px;
}
.special-box h3 { font-size: 1rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 8px; }
.special-box p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* INLINE CTA */
.inline-cta {
  background: linear-gradient(135deg, #134e4a, #0d9488);
  color: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}
.inline-cta h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; }
.inline-cta p { opacity: 0.88; font-size: 0.95rem; max-width: 480px; margin: 0 auto 28px; }
.btn-cta-white {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn-cta-white:hover { transform: translateY(-2px); }

/* PROGRAM CARDS */
.programs-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.program-preview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; line-height: 1.3; }
.card-location { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.funding-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700;
}
.badge-ccbhc { background: var(--badge-ccbhc-bg); color: var(--badge-ccbhc-text); }
.badge-medicaid { background: var(--badge-medicaid-bg); color: var(--badge-medicaid-text); }
.badge-sor { background: var(--badge-sor-bg); color: var(--badge-sor-text); }
.badge-sliding { background: var(--badge-sliding-bg); color: var(--badge-sliding-text); }

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 12px 24px;
  background: var(--teal);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-view-all:hover { background: var(--teal-dark); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; }
.faq-q { font-weight: 700; font-size: 0.98rem; color: var(--slate); margin-bottom: 10px; }
.faq-a { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* OTHER STATES */
.other-states-section { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px; }
.other-states-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.state-links { display: flex; flex-wrap: wrap; gap: 10px; }
.state-link {
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.state-link:hover { background: var(--teal-light); border-color: var(--teal); }

/* DISCLAIMER */
.disclaimer {
  margin-top: 48px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

/* FOOTER */
footer {
  background: var(--slate);
  color: rgba(255,255,255,0.5);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: var(--white); }

@media (max-width: 640px) {
  .hero { padding: 52px 20px 64px; }
  .page-wrap { padding: 40px 20px 60px; }
  .funding-grid { grid-template-columns: 1fr; }
  .nav-links .btn-cta { display: none; }
}
