/* ============================================================
   Ohio Recovery Directory — Design System
   Aesthetic: quiet editorial field guide. Warm paper, evergreen
   ink, amber helpline accent. Fraunces display / Public Sans body.
   Mobile-first. Breakpoints: 640 / 768 / 1024 / 1280.
   ============================================================ */

:root {
  /* Palette */
  --paper: #faf7f1;
  --paper-deep: #f3eee4;
  --ink: #1e3a32;          /* deep evergreen — primary text */
  --ink-soft: #46615a;     /* secondary text */
  --evergreen: #24544b;    /* primary brand */
  --evergreen-dark: #173b34;
  --moss: #dce8e0;         /* tint surfaces */
  --amber: #c97b1e;        /* helpline / action accent */
  --amber-deep: #a05f0e;
  --amber-wash: #fdf3e3;
  --line: #d9d2c2;         /* hairlines on paper */
  --white: #fffdf9;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Public Sans", "Helvetica Neue", sans-serif;

  /* Rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(30, 58, 50, 0.06), 0 6px 24px -8px rgba(30, 58, 50, 0.12);
  --shadow-lift: 0 2px 4px rgba(30, 58, 50, 0.08), 0 16px 40px -12px rgba(30, 58, 50, 0.22);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: radial-gradient(rgba(30, 58, 50, 0.025) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe, svg { max-width: 100%; height: auto; }
a { color: var(--evergreen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 var(--space-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: var(--space-1);
}
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-tint { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section-dark { background: var(--evergreen-dark); color: var(--moss); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--evergreen); color: var(--white); }
.btn-primary:hover { background: var(--evergreen-dark); color: var(--white); box-shadow: var(--shadow-lift); }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover { background: var(--amber-deep); color: var(--white); box-shadow: var(--shadow-lift); }
.btn-ghost { border-color: var(--evergreen); color: var(--evergreen); background: transparent; }
.btn-ghost:hover { background: var(--moss); color: var(--evergreen-dark); }

/* ---------- Helpline utility bar ---------- */
.helpline-bar {
  background: var(--evergreen-dark);
  color: var(--moss);
  font-size: 0.9rem;
  padding: 0.55rem 0;
}
.helpline-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  text-align: center;
}
.helpline-bar a { color: #ffd9a0; font-weight: 700; text-decoration: none; white-space: nowrap; }
.helpline-bar a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.85rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.2vw, 1.35rem);
  font-weight: 640;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  flex: none;
}
.wordmark:hover { color: var(--evergreen); }
.wordmark svg { width: 30px; height: 30px; max-width: 30px; max-height: 30px; flex: none; }
.wordmark .tag { display: none; }
@media (min-width: 768px) {
  .wordmark .tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-left: 1px solid var(--line);
    padding-left: 0.6rem;
  }
}

.site-nav { display: none; }
.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--moss); color: var(--evergreen-dark); }
@media (min-width: 1024px) {
  .site-nav { display: flex; align-items: center; gap: 0.25rem; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
  min-height: 44px;
  min-width: 44px;
}
.nav-toggle svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: var(--space-1) 0 var(--space-2);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.8rem clamp(16px, 5vw, 48px);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-deep);
}
.mobile-nav a:hover { background: var(--moss); }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 7fr 5fr; gap: var(--space-5); }
}
.hero h1 { max-width: 17ch; }
.hero h1 em {
  font-style: italic;
  color: var(--evergreen);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg); /* arched window */
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--white);
  aspect-ratio: 4 / 4.6;
  max-width: 440px;
  margin-inline: auto;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::before {
  /* offset echo of the arch */
  content: "";
  position: absolute;
  inset: -14px auto auto -14px;
  width: 100%;
  height: 100%;
  max-width: 440px;
  border: 1.5px solid var(--amber);
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  opacity: 0.45;
  z-index: -1;
  left: 50%;
  transform: translateX(calc(-50% - 14px));
}

.trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.chip svg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; flex: none; color: var(--evergreen); }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--white); }
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding-block: var(--space-3);
  text-align: center;
}
@media (min-width: 768px) { .stats-band .container { grid-template-columns: repeat(4, 1fr); } }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  color: var(--evergreen);
  display: block;
  line-height: 1.1;
}
.stat .label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }

.city-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.city-card .count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-deep);
  background: var(--amber-wash);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}
.city-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.city-card .go {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--evergreen);
}
a.card:hover .go { color: var(--amber-deep); }

/* ---------- Treatment list ---------- */
.treatment-item {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.treatment-item:hover h3 { color: var(--amber-deep); }
.treatment-item .t-icon {
  flex: none;
  width: 44px; height: 44px;
  max-width: 44px; max-height: 44px;
  border-radius: 12px;
  background: var(--moss);
  color: var(--evergreen-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.treatment-item .t-icon svg { width: 22px; height: 22px; max-width: 22px; max-height: 22px; }
.treatment-item h3 { margin-bottom: 0.2rem; font-size: 1.15rem; transition: color 0.15s ease; }
.treatment-item p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------- How we list (trust steps) ---------- */
.step { position: relative; padding-top: var(--space-2); }
.step .step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--amber);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.5rem;
}
.section-dark .step p { color: #b9cec4; font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-1);
  overflow: hidden;
}
.faq summary {
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1rem 3rem 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--amber-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }

/* ---------- Crisis band ---------- */
.crisis { text-align: center; }
.crisis .phone {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 620;
  color: #ffd9a0;
  text-decoration: none;
  display: inline-block;
  margin: var(--space-1) 0 var(--space-2);
}
.crisis .phone:hover { color: var(--white); }
.crisis p { max-width: 56ch; margin-inline: auto; color: #b9cec4; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #a8bcb3;
  font-size: 0.92rem;
  padding-block: var(--space-4) var(--space-3);
}
.site-footer a { color: #d6e4dc; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-3); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-2);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #7e978c;
}

/* ---------- Page-load reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.18s; }
  .reveal-3 { animation-delay: 0.32s; }
  .reveal-4 { animation-delay: 0.46s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Inner-page helpers (city pages, guides) ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); padding-top: var(--space-2); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { color: var(--ink); font-weight: 600; }

.facility-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.facility-card .addr { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.facility-card .phone-link { font-weight: 700; color: var(--evergreen); text-decoration: none; font-size: 1.02rem; }
.facility-card .phone-link:hover { color: var(--amber-deep); }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.badge-service { background: var(--moss); color: var(--evergreen-dark); }
.badge-pay { background: var(--amber-wash); color: var(--amber-deep); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--space-4); }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
