/* =========================================================================
   Brighter Future Psychological Services
   site.css  |  v1.0.0  |  Mobile-first, no framework, no external requests
   Design direction: "Morning light" - sunrise over the hills, taken from
   the practice logo. Horizon curves separate sections; the sun is the only
   decorative flourish and it is used once, in the hero.
   ========================================================================= */

/* ---------- 1. Fonts (self-hosted, no third-party calls) ---------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- 2. Tokens --------------------------------------------------- */
:root {
  /* Palette pulled from the practice logo: hill green, sun yellow, plus a
     dusk blue for links so green never has to do two jobs. */
  --paper:      #FBFAF3;
  --paper-2:    #F1F5EA;
  --card:       #FFFFFF;
  --ink:        #1E2E22;
  --ink-soft:   #4C5D50;
  --line:       #DCE3D5;
  --leaf:       #35683C;
  --leaf-deep:  #24402A;
  --leaf-bright:#61A761;
  --sun:        #FFD75E;
  --dawn:       #FFF3C9;
  --dusk:       #3E4E7A;
  --shadow:     0 1px 2px rgba(30,46,34,.06), 0 10px 30px -12px rgba(30,46,34,.18);

  --step--1: clamp(.86rem, .84rem + .1vw, .93rem);
  --step-0:  clamp(1rem, .97rem + .17vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + .35vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + .7vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.35vw, 2.7rem);
  --step-4:  clamp(2.15rem, 1.6rem + 2.4vw, 3.6rem);

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --block:  clamp(3.2rem, 8vw, 6rem);
  --wrap:   72rem;
  --radius: 14px;
  --radius-lg: 26px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #121A14;
    --paper-2: #18231A;
    --card:    #1C2A1F;
    --ink:     #E9F0E6;
    --ink-soft:#B2C3B4;
    --line:    #2E4033;
    --leaf:    #8FCB96;
    --leaf-deep:#C6E4C8;
    --leaf-bright:#61A761;
    --dawn:    #2A2A18;
    --dusk:    #A9B9E8;
    --shadow:  0 1px 2px rgba(0,0,0,.4), 0 12px 34px -14px rgba(0,0,0,.6);
  }
}

/* ---------- 3. Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-variation-settings: 'SOFT' 40, 'wght' 600;
  color: var(--leaf-deep);
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); font-variation-settings: 'SOFT' 40, 'wght' 700; }

p, li { text-wrap: pretty; }
p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--dusk); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--dusk);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--block) 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--leaf); color: #fff; padding: .8rem 1.2rem;
  z-index: 200; border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Layout helpers ------------------------------------------ */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 46rem); margin-inline: auto; }

.section { padding-block: var(--block); }
.section--tint { background: var(--paper-2); }
.section--dawn { background: linear-gradient(180deg, var(--dawn), var(--paper)); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 .8rem;
}

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }

/* ---------- 5. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font: inherit; font-weight: 700;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--leaf); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--leaf-deep); color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn--primary { background: var(--leaf); color: #10190F; }
  .btn--primary:hover { background: #A9DCAF; color: #10190F; }
}

.btn--ghost { background: transparent; color: var(--leaf-deep); border-color: var(--leaf); }
.btn--ghost:hover { background: var(--card); }
@media (prefers-color-scheme: dark) { .btn--ghost { color: var(--leaf); } }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- 6. Header --------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px; padding-block: .55rem;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: 210px; max-width: 48vw; height: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; min-width: 44px; padding: .4rem .8rem;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars span { display: block; width: 17px; height: 2px; background: currentColor; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: .6rem var(--gutter) 1.2rem;
  box-shadow: var(--shadow);
}
.site-nav[data-open='true'] { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .8rem .2rem; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--leaf); }
.site-nav .btn { margin-top: 1rem; width: 100%; }

.head-call { display: none; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; background: none; border: 0;
    padding: 0; box-shadow: none; margin-left: auto;
  }
  .site-nav ul { display: flex; align-items: center; gap: .35rem; }
  .site-nav a {
    border: 0; padding: .5rem .7rem; border-radius: 999px; font-size: var(--step--1);
    letter-spacing: .01em;
  }
  .site-nav a[aria-current='page'] { background: var(--paper-2); }
  .site-nav .btn { display: none; }
  .head-call { display: inline-flex; margin-left: .6rem; }
}

/* ---------- 7. Hero ("morning light") ---------------------------------- */
.hero { position: relative; padding-block: clamp(2.4rem, 6vw, 4.5rem) 0; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 78%;
  background: radial-gradient(120% 80% at 78% 0%, var(--dawn) 0%, transparent 62%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: clamp(1.8rem, 5vw, 3.4rem); }
.hero__copy h1 { margin-bottom: .35em; }
.hero__copy h1 em {
  font-style: normal;
  font-variation-settings: 'SOFT' 100, 'wght' 700;
  color: var(--leaf);
}
.hero__trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  margin: 1.8rem 0 0; padding: 0; list-style: none;
  font-size: var(--step--1); color: var(--ink-soft); font-weight: 600;
}
.hero__trust li { display: flex; align-items: center; gap: .45rem; }
.hero__trust li::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--sun); border: 1.5px solid var(--leaf-bright); flex: none;
}

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero__sun {
  position: absolute; right: -14px; top: -22px;
  width: clamp(72px, 14vw, 118px); height: auto; z-index: -1;
  animation: sunrise 1.4s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes sunrise {
  from { transform: translateY(34px) scale(.86); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

@media (min-width: 54rem) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; align-items: center; }
}

/* Horizon divider - the signature structural device */
.horizon { display: block; width: 100%; height: auto; margin-top: -1px; }
.horizon path.hill-back { fill: var(--leaf-bright); opacity: .28; }
.horizon path.hill-front { fill: var(--paper-2); }

/* ---------- 8. Cards / paths ------------------------------------------- */
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 46rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 58rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 58rem) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p:last-of-type { margin-bottom: 1.2em; }
.card__more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card__more::after { content: ' \2192'; }
.card__more:hover { text-decoration: underline; }

.path-card { position: relative; overflow: hidden; }
.path-card::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--dawn); z-index: 0;
}
.path-card > * { position: relative; z-index: 1; }

/* ---------- 9. Steps (a real sequence, so it is numbered) --------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 58rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; padding-top: 3.3rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sun); color: var(--leaf-deep);
  font-family: 'Fraunces', serif; font-variation-settings: 'SOFT' 60, 'wght' 700;
  font-size: 1.2rem;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin-bottom: 0; }

/* ---------- 10. Team ---------------------------------------------------- */
.team-card { text-align: left; }
.team-card img {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; margin-bottom: 1rem;
  border: 3px solid var(--dawn);
}
.team-card .role {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--leaf); margin: 0 0 .2rem;
}
.team-card .lic { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 1rem; }
.team-bio { scroll-margin-top: 90px; }
.team-bio + .team-bio { margin-top: var(--block); padding-top: var(--block); border-top: 1px solid var(--line); }

/* ---------- 11. Fees ---------------------------------------------------- */
.fee-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.fee-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  padding-bottom: .9rem; border-bottom: 1px dashed var(--line);
}
.fee-list .fee { font-weight: 700; color: var(--leaf-deep); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .fee-list .fee { color: var(--leaf); } }

/* ---------- 12. FAQ ----------------------------------------------------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .35rem 1.15rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: .95rem 2rem .95rem 0;
  font-family: 'Fraunces', serif; font-variation-settings: 'SOFT' 40, 'wght' 600;
  font-size: var(--step-1); color: var(--leaf-deep); position: relative;
  min-height: 44px;
}
@media (prefers-color-scheme: dark) { .faq summary { color: var(--leaf-deep); } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .1rem; top: 50%; transform: translateY(-50%);
  font-family: 'Karla', sans-serif; font-size: 1.5rem; color: var(--leaf); line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details > *:not(summary) { padding-bottom: .4rem; }

/* ---------- 13. Callouts ------------------------------------------------ */
.callout {
  border-left: 4px solid var(--sun);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.3rem;
  margin: 1.8rem 0;
}
.callout h3 { font-size: var(--step-0); margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }
.callout--urgent { border-left-color: #C0563C; }

/* ---------- 14. Contact / forms ---------------------------------------- */
.contact-grid { display: grid; gap: var(--block); }
@media (min-width: 58rem) { .contact-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); } }

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: var(--step--1); }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 10px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--leaf); }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #C0563C; }
.field .error { color: #98301A; font-size: var(--step--1); font-weight: 600; display: block; margin-top: .3rem; }
@media (prefers-color-scheme: dark) { .field .error { color: #F0A08C; } }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: var(--step--1); color: var(--ink-soft); }

.info-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1.1rem; }
.info-list dt { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.info-list dd { margin: .15rem 0 0; }

/* ---------- 15. Footer -------------------------------------------------- */
.site-foot {
  background: var(--leaf-deep);
  color: #E7F0E4;
  padding-block: var(--block) 2rem;
  margin-top: var(--block);
}
@media (prefers-color-scheme: dark) { .site-foot { background: #101A12; } }
.site-foot h2, .site-foot h3 { color: #FFFFFF; font-size: var(--step-0); }
.site-foot a { color: #FFF3C9; }
.site-foot__grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .site-foot__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-foot img.logo { width: 220px; margin-bottom: 1rem; }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
}
.social svg { width: 20px; height: 20px; fill: #FFF3C9; }
.colophon {
  margin-top: 2.6rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-size: var(--step--1); color: #C9D8C6;
}
.colophon p { margin: 0; max-width: none; }

/* ---------- 16. Page header (interior pages) --------------------------- */
.page-head { padding-block: clamp(2.4rem, 6vw, 4rem) 0; background: linear-gradient(180deg, var(--dawn), var(--paper)); }
.breadcrumbs { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 1rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { padding: 0 .4rem; }

.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: .5rem; }
.prose > *:first-child { margin-top: 0; }

.media-figure { margin: 2rem 0; }
.media-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media-figure figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: .6rem; }

.updated { font-size: var(--step--1); color: var(--ink-soft); margin-top: 2.5rem; }
