/* RehabGuide NKY — styles.css
   Tone: warm, trustworthy, calm. Not clinical. Not ad-farm. */

:root {
  --sage:       #4a7c6f;
  --sage-light: #6a9e8f;
  --sage-dark:  #2e5247;
  --warm:       #f5f0e8;
  --warm-mid:   #ede5d4;
  --warm-dark:  #d4c9b0;
  --ink:        #1e1e1e;
  --ink-mid:    #4a4a4a;
  --ink-light:  #767676;
  --ky:         #003087;
  --oh:         #bb0000;
  --crisis:     #7b2d2d;
  --white:      #ffffff;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); }

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
h4 { font-size: 1rem; }
em { font-style: italic; }
a { color: var(--sage); }
a:hover { color: var(--sage-dark); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.3rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--warm-dark); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.85rem 1.25rem; }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.logo img { border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); line-height: 1; }
.logo-name em { color: var(--sage); font-style: normal; }
.logo-tagline { font-size: 0.67rem; color: var(--ink-light); }
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--ink-mid); font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
.main-nav a:hover { color: var(--sage); }
.crisis-btn { background: var(--crisis); color: var(--white); padding: 0.45rem 0.9rem; border-radius: 6px; font-size: 0.82rem; font-weight: 500; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.crisis-btn:hover { background: #5c1f1f; color: var(--white); }

/* HERO */
.hero { background: var(--sage-dark); color: var(--white); padding: 4rem 0 0; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero-kicker { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.2rem; color: rgba(255,255,255,0.8); }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 em { color: #8fcfbf; font-style: italic; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.78); max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn { display: inline-block; padding: 0.72rem 1.4rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: all 0.15s; }
.btn-primary { background: var(--sage-light); color: var(--white); }
.btn-primary:hover { background: #7bbcac; color: var(--white); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.hero-stats { display: flex; gap: 2.5rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,0.15); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: 'Fraunces', serif; font-size: 1.8rem; color: #8fcfbf; line-height: 1; }
.stat span { font-size: 0.76rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }
.hero-img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: center 40%; margin-top: 2rem; opacity: 0.45; }

/* CRISIS BANNER */
.crisis-banner { background: #fdf3f3; border-top: 3px solid var(--crisis); padding: 0.85rem 0; font-size: 0.88rem; color: var(--crisis); }
.crisis-banner strong { font-weight: 600; }

/* SECTIONS */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--warm); }
.section-label { display: inline-block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.4rem; }
.section-sub { font-size: 1rem; color: var(--ink-mid); max-width: 640px; margin-bottom: 2.5rem; }

/* STATE GROUP */
.state-group { margin-bottom: 3rem; }
.state-group:last-child { margin-bottom: 0; }
.state-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--warm-dark); }
.state-header h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.state-note { font-size: 0.78rem; color: var(--ink-light); margin-left: auto; }
.state-pill { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; }
.state-pill.ky { background: var(--ky); color: #fff; }
.state-pill.oh { background: var(--oh); color: #fff; }

/* COUNTY CARDS */
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.county-card { display: block; background: var(--white); border: 1.5px solid var(--warm-dark); border-radius: var(--radius-lg); padding: 1.25rem; text-decoration: none; color: var(--ink); transition: all 0.15s; box-shadow: var(--shadow); }
.county-card:hover { border-color: var(--sage-light); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink); }
.county-soon { opacity: 0.65; cursor: default; }
.county-soon:hover { transform: none !important; border-color: var(--warm-dark) !important; box-shadow: var(--shadow) !important; }
.county-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.7rem; }
.county-top h4 { font-size: 1rem; color: var(--sage-dark); }
.pop { font-size: 0.76rem; color: var(--ink-light); }
.county-card ul { font-size: 0.83rem; color: var(--ink-mid); margin-bottom: 0.8rem; padding-left: 1rem; }
.county-card p { font-size: 0.83rem; color: var(--ink-mid); margin-bottom: 0.8rem; }
.card-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.tag { font-size: 0.68rem; padding: 0.18rem 0.5rem; border-radius: 20px; font-weight: 500; }
.tag.medicaid  { background: #e8f0fe; color: #1a56d6; }
.tag.walkin    { background: #e6f4ea; color: #1a7a3c; }
.tag.mat       { background: #fef3e2; color: #b45309; }
.tag.detox     { background: #fce8f3; color: #9d174d; }
.tag.residential { background: #f0e8ff; color: #6d28d9; }
.card-cta { font-size: 0.82rem; font-weight: 500; color: var(--sage); }
.card-cta.soon { color: var(--ink-light); }

/* CARE GRID */
.care-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.25rem; }
.care-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--warm-dark); }
.care-icon { font-size: 1.7rem; display: block; margin-bottom: 0.7rem; }
.care-card h3 { color: var(--sage-dark); }
.care-card p { font-size: 0.88rem; color: var(--ink-mid); }
.care-local { font-size: 0.83rem !important; color: var(--ink-light) !important; margin-top: 0.75rem; border-top: 1px solid var(--warm-dark); padding-top: 0.75rem; }
.care-local strong { color: var(--ink-mid); }

/* INSURANCE */
.insurance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.ins-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; border-top: 4px solid var(--warm-dark); box-shadow: var(--shadow); }
.ins-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.ins-card p { font-size: 0.86rem; color: var(--ink-mid); margin-bottom: 0.75rem; }
.ins-card ul { font-size: 0.83rem; color: var(--ink-mid); }
.ins-ky  { border-top-color: var(--ky); }
.ins-oh  { border-top-color: var(--oh); }
.ins-private { border-top-color: var(--sage); }
.ins-free { border-top-color: #f59e0b; }

/* CALCULATOR */
.calc-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); max-width: 680px; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.calc-field { display: flex; flex-direction: column; gap: 0.35rem; }
.calc-field label { font-size: 0.84rem; font-weight: 500; color: var(--ink-mid); }
.calc-field select { padding: 0.6rem 0.8rem; border: 1.5px solid var(--warm-dark); border-radius: 8px; font-family: inherit; font-size: 0.88rem; background: var(--warm); color: var(--ink); cursor: pointer; }
.calc-field select:focus { outline: 2px solid var(--sage-light); border-color: var(--sage-light); }
.calc-result { background: var(--sage-dark); color: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.calc-amount { font-family: 'Fraunces', serif; font-size: 1.9rem; color: #8fcfbf; margin-bottom: 0.3rem; }
.calc-note { font-size: 0.84rem; color: rgba(255,255,255,0.72); }
.calc-disclaimer { font-size: 0.76rem; color: var(--ink-light); }

/* CHECKLIST */
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 1.5rem; }
.checklist-col h3 { font-size: 0.95rem; margin-bottom: 0.85rem; color: var(--sage-dark); }
.checklist { list-style: none; padding-left: 0; }
.checklist li { margin-bottom: 0.55rem; }
.checklist label { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.86rem; color: var(--ink-mid); cursor: pointer; }
.checklist input[type=checkbox] { margin-top: 0.2rem; accent-color: var(--sage); flex-shrink: 0; }
.checklist.no-check li { font-size: 0.86rem; color: var(--ink-mid); padding-left: 1.2rem; position: relative; margin-bottom: 0.45rem; }
.checklist.no-check li::before { content: '✕'; position: absolute; left: 0; color: #e53e3e; font-size: 0.72rem; top: 0.15rem; }
.print-btn { background: var(--sage); color: var(--white); border: none; padding: 0.7rem 1.4rem; border-radius: 8px; font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; }
.print-btn:hover { background: var(--sage-dark); }

/* REGIONAL CONTEXT */
.context-grid { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
.context-body p { font-size: 0.93rem; color: var(--ink-mid); }
.context-sidebar { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--warm-dark); }
.context-sidebar h4 { font-size: 0.9rem; margin-bottom: 1rem; color: var(--sage-dark); }
.resource-list { list-style: none; padding-left: 0; }
.resource-list li { display: flex; flex-direction: column; padding: 0.75rem 0; border-bottom: 1px solid var(--warm-dark); font-size: 0.84rem; }
.resource-list li:last-child { border-bottom: none; }
.resource-list strong { color: var(--ink); }
.resource-list span { color: var(--ink-light); font-size: 0.76rem; margin: 0.1rem 0; }
.resource-list a { color: var(--sage); font-weight: 500; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--warm-dark); }
.faq-item summary { padding: 1rem 0; font-weight: 500; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--sage); font-size: 1.3rem; font-weight: 300; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 0 1.25rem; font-size: 0.88rem; color: var(--ink-mid); }

/* FOOTER */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding: 3rem 1.25rem; }
.footer-logo { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--white); display: block; margin-bottom: 0.75rem; }
.footer-logo em { color: var(--sage-light); font-style: normal; }
.footer-brand p { font-size: 0.81rem; line-height: 1.6; margin-bottom: 0.5rem; }
.disclaimer { font-size: 0.74rem !important; opacity: 0.55; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer-cols h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 0.75rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.footer-cols ul { list-style: none; padding: 0; }
.footer-cols li { margin-bottom: 0.35rem; }
.footer-cols a { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-cols a:hover { color: var(--sage-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 1.25rem; }
.footer-bottom p { font-size: 0.74rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.4); }

/* PRINT */
@media print {
  .site-header, .hero, .crisis-banner, .site-footer { display: none; }
  .section:not(#checklist) { display: none; }
  #checklist { display: block !important; padding: 2rem 0; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .context-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .calc-inputs { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .main-nav { display: none; }
  .hero-stats { gap: 1.5rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
  .state-note { display: none; }
}
