/* =========================================================
   Transit Health — Design System
   Brand: Navy #1E3264 · Mint #70D8B9
   ========================================================= */

:root {
  /* Brand */
  --navy: #1E3264;
  --navy-deep: #152A5E;
  --navy-700: #24407e;
  --mint: #70D8B9;
  --mint-soft: #A6E7D4;
  --mint-tint: #E7F7F1;

  /* Neutrals */
  --ink: #1c2333;
  --body: #43506b;
  --muted: #6b7690;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --bg-navy: #16264d;

  /* System */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(21, 42, 94, 0.06);
  --shadow: 0 14px 40px rgba(21, 42, 94, 0.10);
  --shadow-lg: 0 30px 70px rgba(21, 42, 94, 0.16);
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--mint-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
  font-family: var(--font-body);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--mint); border-radius: 2px; }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--mint { background: var(--mint); color: var(--navy-deep); }
.btn--mint:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(112,216,185,.45); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }
.nav { gap: 18px; }
.nav-links { flex: 1; justify-content: center; }
.brand-name span { color: var(--mint); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: 0.96rem; font-weight: 500;
  color: var(--body); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-alt); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(112,216,185,.20), transparent 60%),
    radial-gradient(50% 50% at 5% 92%, rgba(30,50,100,.08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--navy); }
.hero .lead { margin-top: 22px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: 0.94rem; color: var(--body); font-weight: 500; }
.hero-trust svg { width: 20px; height: 20px; color: var(--mint); flex: none; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-lg); aspect-ratio: 4/4.4; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 34px; color: #fff;
}
.hero-card::after {
  content: ""; position: absolute; top: -30%; right: -20%; width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(112,216,185,.55), transparent 70%);
}
.hero-card .badge {
  position: absolute; top: 26px; left: 26px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
  padding: 8px 15px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; letter-spacing: .04em;
}
.hero-card h3 { color: #fff; font-size: 1.55rem; position: relative; }
.hero-card p { color: rgba(255,255,255,.8); margin-top: 10px; position: relative; font-size: 0.98rem; }
.hero-float {
  position: absolute; bottom: 26px; right: -18px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 20px; display: flex; align-items: center; gap: 13px;
  max-width: 250px;
}
.hero-float .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--mint-tint); display: grid; place-items: center; flex: none; }
.hero-float .dot svg { width: 22px; height: 22px; color: var(--navy); }
.hero-float strong { display: block; color: var(--ink); font-size: 0.95rem; font-family: var(--font-head); }
.hero-float span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--mint-tint);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .ico svg { width: 26px; height: 26px; color: var(--navy); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: var(--body); }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--navy); font-weight: 600; font-size: 0.94rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Feature chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: var(--mint-tint);
  color: var(--navy); font-size: 0.9rem; font-weight: 500;
}

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--mint-tint), #fff); aspect-ratio: 5/4;
  display: grid; place-items: center; position: relative;
}
.media-frame .logo-mark { width: 55%; opacity: .92; }
.stat-row { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
.stat b { font-family: var(--font-head); font-size: 2.1rem; color: var(--navy); display: block; line-height: 1; }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 30px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 2rem; color: var(--mint); font-weight: 600; display: block; margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.97rem; }

/* ---------- Providers ---------- */
.provider {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.provider:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.provider .photo {
  aspect-ratio: 1/1; background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  display: grid; place-items: center; color: #fff; position: relative;
}
.provider .photo .initials { font-family: var(--font-head); font-size: 3rem; opacity: .9; }
.provider .photo::after { content:""; position:absolute; bottom:-1px; left:0; right:0; height:40%; background:linear-gradient(transparent, rgba(0,0,0,.15)); }
.provider .body { padding: 24px; }
.provider h3 { margin-bottom: 4px; }
.provider .role { color: var(--mint); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .06em; }
.provider p { font-size: 0.96rem; margin-top: 12px; }

.provider .supervise {
  display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 0.76rem; font-weight: 600; color: var(--navy);
  background: var(--mint-tint); padding: 5px 11px; border-radius: 999px;
}
.provider .supervise svg { width: 14px; height: 14px; flex: none; }

/* Flexible, centered provider layout — stays balanced for any number of cards */
.providers-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.providers-grid .provider { flex: 1 1 300px; max-width: 340px; }

/* Per-clinician CTA — pinned to the bottom so buttons align across cards */
.provider { display: flex; flex-direction: column; }
.provider .body { display: flex; flex-direction: column; flex: 1 1 auto; }
.provider-cta-wrap { margin-top: auto; padding-top: 20px; }
.provider-cta { width: 100%; }
@media (max-width: 720px) {
  .providers-grid .provider { flex-basis: 100%; max-width: none; }
}

/* ---------- Insurance ---------- */
.logo-band { display: flex; flex-wrap: wrap; gap: 14px; }
.ins-pill {
  padding: 16px 26px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line);
  font-weight: 600; color: var(--navy); font-size: 1.02rem; box-shadow: var(--shadow-sm);
}
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; height: 100%;
}
.price-card.feature { border: 2px solid var(--mint); box-shadow: var(--shadow); }
.price-card h3 { margin-bottom: 6px; }
.price-card .price { font-family: var(--font-head); font-size: 2.4rem; color: var(--navy); margin: 12px 0; }
.price-card .price small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); }
.check-list li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; font-size: 0.98rem; }
.check-list svg { width: 20px; height: 20px; color: var(--mint); flex: none; margin-top: 2px; }

/* ---------- Accordion (services detail) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 0; }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); font-weight: 600;
}
.acc-head:hover { color: var(--navy); }
.acc-head .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-tint); display: grid; place-items: center; transition: transform .3s; }
.acc-head .plus svg { width: 16px; height: 16px; color: var(--navy); }
.acc-item.open .acc-head .plus { transform: rotate(45deg); background: var(--mint); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-body-inner { padding: 0 28px 26px; }
.acc-body-inner p { color: var(--body); }
.acc-body-inner .chips { margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); color: #fff; text-align: center; }
.cta-band::before { content:""; position:absolute; top:-40%; left:-10%; width:50%; height:120%; background:radial-gradient(circle, rgba(112,216,185,.35), transparent 65%); }
.cta-band::after { content:""; position:absolute; bottom:-50%; right:-10%; width:55%; height:130%; background:radial-gradient(circle, rgba(112,216,185,.18), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 16px auto 30px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field label .req { color: #d5567b; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(112,216,185,.22);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.form-success {
  display: none; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--mint-tint); border: 1px solid var(--mint); color: var(--navy-deep); font-weight: 500;
}
.form-success.show { display: block; }

/* ---------- Contact info cards ---------- */
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--mint-tint); display: grid; place-items: center; flex: none; }
.contact-item .ico svg { width: 22px; height: 22px; color: var(--navy); }
.contact-item h4 { font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.contact-item a, .contact-item p { color: var(--body); font-size: 0.98rem; }
.contact-item a:hover { color: var(--navy); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(50px, 7vw, 84px); background: var(--bg-alt); position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:0; background: radial-gradient(50% 60% at 88% 20%, rgba(112,216,185,.18), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--navy); }
.page-hero h1 { max-width: 760px; }
.page-hero p { margin-top: 16px; max-width: 620px; font-size: 1.12rem; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-navy); color: rgba(255,255,255,.72); padding-block: 64px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); opacity: .95; }
.footer-about { margin-top: 18px; max-width: 300px; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; padding: 6px 0; font-size: 0.96rem; color: rgba(255,255,255,.72); }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; }
.footer-bottom a:hover { color: var(--mint); }
.crisis-note { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 40px; font-size: 0.92rem; }
.crisis-note strong { color: #fff; }
.crisis-note a { color: var(--mint); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile nav ---------- */
.mobile-menu {
  position: fixed; inset: 78px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 20px var(--gutter) 28px; z-index: 99;
  transform: translateY(-120%); transition: transform .35s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a { display: block; padding: 13px 4px; font-size: 1.05rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 18px; width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-cta .btn--ghost { display: none; } /* drop phone chip; number stays in footer + CTA */
  .nav-links a { padding: 9px 11px; }
}
@media (max-width: 900px) {
  .brand-name { display: none; } /* logo alone keeps the header uncluttered */
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: -1; }
  .hero-float { right: 0; }
  .split { grid-template-columns: 1fr; }
  .media-frame { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: flex; }
  .grid-2, .grid-3, .steps, .form-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}
@media (max-width: 560px) {
  .hero-float { position: static; margin: 16px auto 0; right: auto; max-width: none; }
  .hero-card { aspect-ratio: auto; min-height: 320px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
