/* Bright Path Psychiatry — site styles
   Palette sampled from the logo: navy wordmark, teal head line, sage leaves,
   sunrise gold and the cream road. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #133858;
  --navy-deep: #0e2c46;
  --ink: #26384a;
  --muted: #576779;
  --teal: #2f6c91;
  --green: #54a38b;
  --green-ink: #2b7560;
  --sage: #8da97e;
  --gold: #f1b544;
  --gold-soft: #f8d58a;
  --cream: #fcedc9;
  --cream-pale: #fdf7e8;
  --mist: #eef4f3;
  --sky: #dde7ec;
  --white: #ffffff;
  --line: #d9e3e2;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* type scale (perfect fourth, 1.333) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem);

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 400; margin: 0; font-optical-sizing: auto; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; padding: 0.6rem 1rem; background: var(--white); color: var(--navy); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 54px; width: auto; }
.brand-sub { display: none; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.97rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 650; background: var(--mist); }
.phone {
  flex: none; text-decoration: none; color: var(--navy); font-weight: 650; font-size: 0.97rem;
  border: 1.5px solid var(--navy); border-radius: 999px; padding: 9px 18px;
}
.phone:hover { background: var(--navy); color: var(--white); }

/* ---------- shared pieces ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 650; color: var(--green-ink);
  letter-spacing: 0.01em; margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(241, 181, 68, 0.22);
}
.h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.018em; font-weight: 380; text-wrap: balance; }
.section-title { font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); margin-top: 26px; max-width: 34em; }
.intro { font-size: 1.125rem; line-height: 1.7; color: var(--ink); max-width: 38em; }
.fine { font-size: var(--step--1); color: var(--muted); line-height: 1.6; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white); text-decoration: none;
  font-weight: 650; font-size: 1rem; padding: 15px 26px; border-radius: 999px;
  transition: background 0.15s;
}
.button::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none;
}
.button:hover { background: var(--teal); color: var(--white); }
.textlink { color: var(--navy); font-weight: 650; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.textlink:hover { color: var(--teal); }

.section { padding: var(--section) 0; position: relative; }
.section-mist { background: var(--mist); }
.section-head { max-width: 44rem; }
.section-head .intro { margin-top: 20px; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.road { position: absolute; left: -36%; top: -6%; width: 62%; height: 136%; pointer-events: none; z-index: 0; overflow: visible; }
.road .ribbon { fill: #fae5b5; }
.road .edge { fill: none; stroke: #f5dfa9; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero .wrap { position: relative; z-index: 1; }
.portrait .arch, .portrait figcaption { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.credential {
  margin-top: 44px; padding-left: 18px; border-left: 3px solid var(--gold);
  font-size: 0.95rem; line-height: 1.6; color: var(--muted); max-width: 30em;
}
.credential strong, .credential b { color: var(--navy); }

.portrait { position: relative; margin: 0; }
.portrait .sun {
  position: absolute; z-index: 0; width: 38%; aspect-ratio: 1; border-radius: 50%;
  left: -13%; top: -5%;
  background: radial-gradient(circle at 50% 50%, var(--gold-soft) 0 58%, rgba(248, 213, 138, 0) 59%);
}
.arch {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: 999px 999px 28px 28px; background: var(--sky);
  aspect-ratio: 4 / 5;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait figcaption, .portrait .caption {
  margin-top: 18px; font-size: var(--step--1); color: var(--muted); line-height: 1.55; text-align: center;
}

/* audience band */
.audience {
  background: var(--navy); color: #e7eef4; text-align: center;
  font-size: 0.98rem; padding: 18px var(--gutter); letter-spacing: 0.01em;
}
.audience span[aria-hidden] {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  vertical-align: middle; margin: 0 14px; font-size: 0; overflow: hidden;
}

/* approach: a three-step sequence along a path */
.steps { --gap: clamp(24px, 4vw, 56px); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 0; list-style: none; margin-top: clamp(48px, 6vw, 72px); }
.steps::before {
  content: ""; position: absolute; left: 11px; right: calc((100% - 2 * var(--gap)) / 3 - 11px); top: 10px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 18px);
  opacity: 0.55;
}
.step { position: relative; }
.step .marker {
  position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white);
  border: 3px solid var(--green); margin-bottom: 26px;
}
.step:last-child .marker { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.step .number { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--green-ink); font-weight: 650; margin-bottom: 8px; }
.step h3 { font-size: var(--step-2); line-height: 1.2; margin-bottom: 12px; }
.step p { color: var(--ink); }

/* areas of care (dark band) */
.areas { background: var(--navy); color: #dfe8f0; }
.areas .section-title { color: var(--white); }
.areas .kicker { color: var(--gold-soft); }
.areas .intro { color: #c9d6e2; margin-top: 20px; }
.areas a.simple-link { color: var(--white); text-decoration-color: var(--gold); }
.areas-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.simple-link { display: inline-block; margin-top: 30px; font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.conditions { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.conditions li {
  break-inside: avoid; font-family: var(--serif); font-size: 1.32rem; line-height: 1.3; color: var(--white);
  padding: 14px 0 14px 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); position: relative;
}
.conditions li::before {
  content: ""; position: absolute; left: 2px; top: 1.32em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
}

/* closing call */
.closing { text-align: center; padding: var(--section) 0; background: var(--cream-pale); position: relative; overflow: hidden; }
.closing .mark { width: 84px; margin: 0 auto 26px; }
.closing h2 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.018em; font-weight: 380; }
.closing p { margin: 18px auto 0; font-size: var(--step-1); color: var(--ink); max-width: 30em; }
.closing .actions { justify-content: center; }

/* ---------- inner page intro ---------- */
.page-intro { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.page-intro .lead { margin-top: 22px; }
.page-intro .intro { margin-top: 18px; }
.creds-line { font-family: var(--serif); font-style: italic; color: var(--green-ink); font-size: var(--step-1); margin-top: 22px; }

/* about: story + quote */
.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.body-copy p { font-size: 1.125rem; line-height: 1.75; max-width: 36em; }
.body-copy p + p { margin-top: 1.1em; }
.body-copy .section-title { margin-bottom: 26px; }
.quote-card { position: relative; padding-top: 10px; }
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 360; color: var(--navy);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance;
}
.quote-source { margin-top: 22px; font-size: var(--step--1); color: var(--muted); line-height: 1.55; padding-left: 18px; border-left: 3px solid var(--gold); }
.licensure { margin-top: 44px; padding: 26px 28px; background: var(--white); border-radius: 18px; border: 1px solid var(--line); }
.licensure .label { font-weight: 650; color: var(--navy); margin-bottom: 8px; font-size: 0.98rem; }
.licensure p:not(.label) { color: var(--ink); }

.approach-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: 36px; }
.approach-cols .intro { border-top: 2px solid var(--green); padding-top: 22px; }

/* care page */
.room { position: relative; margin: 0; }
.room .frame { border-radius: 28px 28px 28px 140px; overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--sky); }
.room img { width: 100%; height: 100%; object-fit: cover; }
.room figcaption { margin-top: 12px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.care-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.service-area { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.45; color: var(--navy); margin-top: 26px; }
.fees { margin-top: 30px; display: grid; gap: 0; }
.fee-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fee-row:first-child { border-top: 1px solid var(--line); }
.fee-row h3 { font-size: 1.3rem; line-height: 1.25; }
.fee-row .dur { grid-column: 1; font-size: 0.92rem; color: var(--muted); margin-top: 4px; }
.fee-row .leader { align-self: start; border-bottom: 2px dotted #b9c8c6; height: 1.15em; min-width: 20px; }
.fee-row .fee { align-self: start; line-height: 1.1; }
.fee-row .fee { font-family: var(--serif); font-size: 1.75rem; color: var(--navy); font-variant-numeric: lining-nums; }
.fee-text { grid-column: 1; }
.rate-note { margin-top: 20px; font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.visit > div { padding: clamp(28px, 4vw, 52px); }
.visit > div:first-child { background: var(--mist); }
.visit address { font-style: normal; font-size: 1.2rem; line-height: 1.6; margin-top: 18px; color: var(--ink); }
.visit .section-title { font-size: var(--step-2); }
.big-phone { display: inline-block; margin-top: 16px; font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.big-phone:hover { color: var(--teal); }
.map-link { display: inline-block; margin-top: 8px; font-size: 0.98rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #c8d5e1; padding: 64px 0 36px; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand .mark { width: 64px; flex: none; background: var(--white); border-radius: 50%; padding: 9px; }
.footer-brand .name { font-family: var(--serif); color: var(--white); font-size: 1.3rem; text-decoration: none; line-height: 1.2; }
.footer-brand .name span { display: block; font-family: var(--sans); font-size: 0.82rem; color: #a9bccd; margin-top: 4px; }
.footer-copy { margin-top: 14px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-meta { text-align: right; line-height: 1.7; grid-column: 3; }
.footer-meta .map-link { color: var(--gold-soft); }
.footnote { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: #9fb2c4; }

/* ---------- one orchestrated motion: the road draws in on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .road .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.45,.05,.2,1) 0.25s forwards; }
  .portrait .sun { animation: rise 1.6s cubic-bezier(.2,.7,.2,1) 1.2s both; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav a { padding: 8px 10px; }
  .areas-grid, .story, .care-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px 16px; min-height: 0; padding-top: 12px; padding-bottom: 10px; }
  .brand img { height: 38px; }
  .phone { margin-left: auto; padding: 7px 14px; font-size: 0.92rem; }
  .nav { order: 3; width: 100%; margin-left: -10px; }
  .hero-grid, .page-grid { grid-template-columns: 1fr; }
  .portrait, .page-grid .portrait { max-width: 420px; margin: 0 auto; width: 88%; }
  .road { display: none; }
  .portrait .sun { left: -8%; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 10px; right: auto; top: 11px; bottom: 40px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--green) 0 10px, transparent 10px 18px); }
  .step { padding-left: 48px; }
  .step .marker { position: absolute; left: 0; top: 0; margin: 0; }
  .approach-cols, .visit { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; grid-column: auto; }
}
@media (max-width: 520px) {
  .conditions { columns: 1; }
  .fee-row .leader { display: none; }
  .fee-row { grid-template-columns: 1fr auto; }
  .audience span[aria-hidden] { margin: 0 8px; }
}
