/* ===== Fonts (self-hosted, no third-party requests) ===== */
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --teal: #0f5257;
  --teal-dark: #0b3d41;
  --teal-soft: #dcebea;
  --cream: #faf7f2;
  --sand: #f1ebe1;
  --coral: #e07a5f;
  --coral-dark: #c9654b;
  --ink: #1f2a30;
  --muted: #4a5a61;
  --line: #ddd5c8;
  --white: #fff;
  --error: #a3261b;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--teal-dark); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--teal-dark); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 8px; color: var(--white); }

.confirm { background: #fff1b8; color: #5c4600; padding: 0 4px; border-radius: 3px; font-size: .9em; }
.note { color: var(--muted); font-size: .95rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: 600 .975rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: #eb9a85; color: var(--ink); }
.btn-secondary { background: var(--teal); color: var(--white); }
.btn-secondary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: var(--white); }
.btn-on-dark { border-color: var(--white); color: var(--white); background: transparent; }
.btn-on-dark:hover { background: var(--white); color: var(--teal-dark); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }

.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--teal-dark); }
.logo-mark { font: 700 1.6rem/1 var(--serif); letter-spacing: -.02em; }
.logo-mark .amp { color: var(--coral-dark); font-style: italic; padding: 0 1px; }
.logo-text { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.logo-light { color: var(--white); }
.logo-light .amp { color: var(--coral); }

.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border: 2px solid var(--teal); border-radius: 999px;
  background: transparent; color: var(--teal); font: 600 .95rem var(--sans); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-actions { display: flex; gap: 10px; }

/* Mobile nav: only collapse when JS is available to open it */
@media (max-width: 959px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
  }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; }
  .header-inner { position: relative; flex-wrap: wrap; }
  html:not(.js) .site-nav { position: static; padding: 0 0 16px; }
}

/* ===== Sections ===== */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-tint { background: var(--sand); }

.eyebrow { font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 46rem; }

/* Hero */
.hero { padding: 48px 0 64px; }
@media (min-width: 768px) { .hero { padding: 80px 0 96px; } }
.hero h1 { max-width: 16ch; }
.hero-grid { display: grid; gap: 32px; grid-template-areas: "text" "paths" "img"; }
.hero-text { grid-area: text; }
.hero-text .lead { margin-bottom: 0; }
.hero-img { grid-area: img; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; grid-template-areas: "text img" "paths paths"; column-gap: 56px; row-gap: 48px; align-items: center; }
}
.hero-paths { grid-area: paths; display: grid; gap: 16px; }
@media (min-width: 768px) { .hero-paths { grid-template-columns: 1fr 1fr; gap: 24px; } }
.path-card { padding: 28px; border-radius: var(--radius); }
.path-card h2 { font-size: 1.6rem; }
.path-card p { margin-bottom: 22px; }
.path-facility { background: var(--teal); color: var(--white); }
.path-facility h2 { color: var(--white); }
.path-clinician { background: var(--white); border: 1px solid var(--line); }
@media (max-width: 480px) { .path-card .btn { width: 100%; } }

/* Roles */
.role-grid { list-style: none; padding: 0; margin: 28px 0 20px; display: grid; gap: 16px; }
@media (min-width: 768px) { .role-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.role-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.role-card p { margin: 0; color: var(--muted); }
.role-short { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--muted); }
.icon { width: 48px; height: 48px; margin-bottom: 14px; fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* How it works */
.how-grid { display: grid; gap: 40px; margin-top: 28px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.how-track h3 { font-size: 1.4rem; padding-bottom: 12px; border-bottom: 2px solid var(--teal); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 24px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 20px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white); font: 600 1rem/1 var(--sans);
}
.text-link { font-weight: 600; }

/* Why */
.why-layout { display: grid; gap: 40px; }
@media (min-width: 900px) { .why-layout { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px; } }
.why-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 24px; }
.why-list li::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--coral); margin-bottom: 12px; }
.why-list h3 { font-size: 1.15rem; margin-bottom: .3em; }
.why-list p { margin: 0; color: var(--muted); }

.why-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) { .why-photo { aspect-ratio: 3 / 2; object-position: center 30%; } }

/* Service area */
.area-layout { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) { .area-layout { grid-template-columns: 220px 1fr; gap: 56px; } }
.ohio { width: 160px; fill: var(--teal-soft); stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; }
@media (min-width: 768px) { .ohio { width: 220px; } }
.area-layout p { max-width: 40rem; }

/* Closing CTA */
.cta { background: var(--teal-dark); color: var(--white); }
.cta h2 { color: var(--white); }
.cta p { color: #d7e6e5; font-size: 1.15rem; }
.cta-inner { text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
@media (max-width: 480px) { .cta-actions .btn { width: 100%; } }

/* ===== Footer ===== */
.site-footer { background: #0a2f32; color: #d7e6e5; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--coral); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 14px; max-width: 26rem; }
.footer-heading { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a { display: inline-block; padding: 2px 0; overflow-wrap: anywhere; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); }
.eoe { font-size: .85rem; max-width: 60rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Inner pages ===== */
.page-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .page-hero { padding: 72px 0 56px; } }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 22ch; }
.page-hero .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.section-intro { color: var(--muted); max-width: 44rem; }

.card-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .card-grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

/* ===== Forms ===== */
.form-section { background: var(--sand); }
.form-wrap { max-width: 760px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { margin: 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: .9em; }
.hint { font-size: .9rem; color: var(--muted); margin: -2px 0 8px; }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #8c9a9f; border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--coral-dark); outline-offset: 1px; border-color: var(--teal); }
.field.has-error input:not([type=checkbox]), .field.has-error select, .field.has-error textarea { border-color: var(--error); border-width: 2px; }
.error { color: var(--error); font-size: .92rem; font-weight: 600; margin: 6px 0 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex !important; align-items: center; gap: 10px; font-weight: 500 !important;
  min-height: 48px; padding: 10px 16px; margin: 0 !important;
  border: 1.5px solid #8c9a9f; border-radius: 10px; background: var(--white); cursor: pointer;
}
.check input { width: 20px; height: 20px; accent-color: var(--teal); margin: 0; }
.check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.has-error .check { border-color: var(--error); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 20px; }
.form-note { font-size: .9rem; color: var(--muted); margin: 24px 0 16px; }
.form-status { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-status.is-error { background: #fbe9e7; color: var(--error); border: 1px solid #e8b4ad; }

.form-success { background: var(--white); border: 2px solid var(--teal); border-radius: var(--radius); padding: 32px; margin-top: 24px; }
.form-success:focus { outline: 3px solid var(--coral-dark); outline-offset: 3px; }
.form-success h3 { font-size: 1.5rem; }

/* ===== About ===== */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ===== Contact ===== */
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.contact-list strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--teal-dark); }
.contact-list a { overflow-wrap: anywhere; }

/* ===== Legal ===== */
.legal-banner { background: #fff1b8; color: #5c4600; border: 1px solid #e6cf6e; border-radius: 10px; padding: 14px 18px; font-weight: 600; margin-bottom: 32px; }
.updated { color: var(--muted); }

/* ===== 404 ===== */
.not-found { padding: 96px 0; text-align: center; }
.not-found h1 { margin-left: auto; margin-right: auto; }
.not-found .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.contact-list + .note { margin-top: 28px; }
address { font-style: normal; }

/* Page hero with photo */
.hero-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-split { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* Social links (footer) */
.social { display: flex; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.social-link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); color: var(--white);
}
.social-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.social-link:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.social-link.is-placeholder { opacity: .45; border-style: dashed; cursor: default; }
