/* ============================================================
   Comfort Counseling LLC
   Design direction: Eucalyptus

   Derived from the Eucalyptus therapist template. Palette, type
   pairing, scale and rhythm follow it closely:

     ground   #F5F5F5   cool light grey, not a warm cream
     ink      #1E2825   deep green-black
     sage     #8D9A95   pale, used as wash — never as text on light
     band     #D9DDD8   light accent, full-width alternate sections
     h1 5rem / h2 2.2rem / body line-height 1.5 / heading 1.2
     pill buttons, 1.2em padding, serif set on serif

   The one deliberate departure: the template's sage reads 2.68:1 on
   its own ground, so a darkened --accent-text carries any small text.
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* ---------- 2. tokens ---------- */
:root {
  --bg:          #F5F5F5;
  --bg-alt:      #D9DDD8;
  --bg-deep:     #1E2825;
  --surface:     #FFFFFF;
  --ink:         #1E2825;
  --ink-soft:    #4F5C56;   /* 6.4:1 ground · 5.1:1 band · 7.0:1 white */
  --brand:       #5A6C64;   /* button grounds; 5.6:1 under white */
  --accent:      #8D9A95;   /* decorative + text on the dark band only */
  --accent-text: #4F5C56;   /* the sage darkened until it can hold text */
  --line:        #CFD4CE;
  --on-deep:     #D9DDD8;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;

  --max: 1140px;
  --max-prose: 64ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* Eucalyptus scale: a dramatic h1, then a long drop to a quiet h2 */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1.02rem, 0.98rem + 0.2vw, 1.13rem);
  --step-1:  clamp(1.18rem, 1.09rem + 0.44vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.95vw, 2.2rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.45vw, 2.75rem);
  --step-4:  clamp(2.3rem, 1.7rem + 2.9vw, 4rem);
  --step-5:  clamp(2.9rem, 1.75rem + 5.4vw, 5rem);

  --sp-1: 0.5rem;  --sp-2: 0.875rem; --sp-3: 1.25rem; --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4.5rem;
  --section-y: clamp(4rem, 8vw, 9rem);

  --radius: 3px;
  --radius-sm: 3px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. base ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 400; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--max-prose); }
.prose p + p { margin-top: 1.15em; }
.lede { font-size: var(--step-1); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.center { text-align: center; margin-inline: auto; }

/* Small, letterspaced, quiet — the template's section label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent-text);
  margin-bottom: var(--sp-3);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: var(--on-deep); }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .eyebrow { color: var(--accent); }
.section--deep .muted { color: color-mix(in srgb, var(--on-deep) 78%, transparent); }
.section-head { max-width: 58ch; margin-bottom: var(--sp-5); }
.section-head.center { text-align: center; }

/* Shelter's arch dividers are gone in this direction — the template is flat
   and quiet. Rule kept so any leftover markup stays inert. */
.arc-cap { display: none; }

/* ---------- 4. buttons: pill, 1.2em, generous ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1.05em 2.1em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.section--deep .btn-ghost { color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 45%, transparent); }
.section--deep .btn-ghost:hover { background: var(--on-deep); color: var(--ink); border-color: var(--on-deep); }
.btn-accent { background: var(--bg-alt); color: var(--ink); }
.btn-accent:hover { background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ---------- 5. announcement bar ---------- */
.announce-bar {
  background: var(--bg-deep); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .4rem 1.1rem;
  padding: .7rem var(--gutter);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .16em;
}
.announce-bar a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.announce-bar a:hover { text-decoration-thickness: 2px; }

/* ---------- 6. header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); min-height: 86px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: 44px; flex: none; object-fit: contain; }
/* Sits on one line — the two words must never stack in the header */
.brand-name {
  font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 400; letter-spacing: .01em; line-height: 1.1; white-space: nowrap;
}

/* One straight row. nowrap on the links is what stops "Rates & insurance"
   breaking in two and pushing the nav out of line. */
.nav { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(.85rem, 1.7vw, 1.7rem); }
.nav a {
  font-size: .72rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.header-cta .btn { padding: .85em 1.5em; font-size: .72rem; letter-spacing: .1em; }
.header-phone { font-size: .72rem; font-weight: 500; text-decoration: none; white-space: nowrap; letter-spacing: .06em; }
/* The phone is the first thing to go when the row runs out of room —
   it is repeated in the footer and on the contact page. */
@media (max-width: 1120px) { .header-phone { display: none; } }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: .55rem 1rem; cursor: pointer;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
}

/* ---------- 7. hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem); }
.hero h1 { margin-bottom: var(--sp-3); }
.hero-lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 44ch; }
/* Sits a step below the lede so the hero keeps its hierarchy as copy grows */
.hero-support {
  margin-top: 1rem; font-size: var(--step-0); line-height: 1.65;
  color: var(--ink-soft); max-width: 48ch; font-style: italic;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-figure { position: relative; }
/* Circular lens. Both source images are pre-framed so the subject sits inside
   the circle at these object-positions rather than being clipped by it. */
.hero-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: var(--bg-alt);
  border-radius: 50%;
}
.hero-figure { max-width: 520px; margin-inline: auto; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-4);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ---------- 8. at-a-glance: a quiet ruled line, not a boxed strip ---------- */
.glance {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: var(--sp-4) var(--gutter);
  border-block: 1px solid var(--line);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .13em;
}
.glance-item { display: inline-flex; align-items: baseline; gap: .5rem; }
.glance-k { color: var(--accent-text); }
.glance-v { color: var(--ink); }

/* ---------- 9. eight-phase list ---------- */
.phases { counter-reset: phase; border-top: 1px solid var(--line); margin-top: var(--sp-4); }
.phase {
  counter-increment: phase;
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line);
}
.phase::before {
  content: counter(phase, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 300;
  color: var(--accent-text); line-height: 1;
}
.phase h3 { font-size: var(--step-0); font-weight: 500; margin-bottom: .25em; }
.phase p { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.6; }

/* ---------- 10. cards: hairline and quiet, no shadow ---------- */
.grid { display: grid; gap: var(--sp-4); }
.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: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.section--alt .card { border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.card--service { display: flex; flex-direction: column; text-decoration: none; transition: background .25s var(--ease), border-color .25s var(--ease); }
.card--service:hover { background: var(--surface); border-color: var(--brand); }
.card--service h3 { margin-bottom: .5em; }
.card--service p { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.65; flex: 1; }
.card-more {
  display: inline-flex; align-items: center; gap: .5em; margin-top: var(--sp-3);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--accent-text);
}
.card-more::after { content: "→"; transition: transform .25s var(--ease); }
.card--service:hover .card-more::after { transform: translateX(4px); }

/* ---------- 10b. image beside body copy ---------- */
/* Image sits fully in the left column, text fills the right. No crop —
   the picture keeps its natural 2:3 ratio so the whole frame is visible. */
.body-split {
  display: grid; grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start;
}
.body-figure { max-width: 200px; }
.body-figure img {
  width: 100%; height: auto;
  border-radius: var(--radius); background: var(--bg-alt);
}
/* Below the split point the image sits small at the top of the text block. */
@media (max-width: 760px) {
  .body-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .body-figure { max-width: 160px; }
}

/* ---------- 11. clinicians ---------- */
.clinician { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.75rem, 5vw, 3.5rem); align-items: start; }
.portrait {
  aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  background: var(--bg-alt);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.6rem; color: var(--ink);
}
/* Both headshots are 4:5 with the face in the upper third, so a single
   object-position centres both faces inside the circle. */
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.clinician-name { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.cred {
  font-family: var(--font-body); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text);
}
.role { color: var(--ink-soft); font-size: var(--step--1); margin-top: .35em; }

/* ---------- 12. tags and checklists ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .74rem; padding: .45em 1em;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--ink-soft);
}
.section--alt .tag { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.section--deep .tag { border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); color: var(--on-deep); }

/* Quiet em-dash bullets — reads calmer than discs in this direction.
   Qualifiers sit inline so each plan is a single tight line. */
.bullets { display: grid; gap: .4rem; }
.bullets li { display: grid; grid-template-columns: .8em 1fr; gap: .5rem; font-size: var(--step--1); line-height: 1.4; }
.bullets li::before { content: "•"; color: var(--accent-text); }
.bullets .note { color: var(--ink-soft); font-style: italic; }
.bullets--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem var(--sp-4); }
@media (max-width: 560px) { .bullets--2col { grid-template-columns: 1fr; } }

/* Single vertical column, set tight — each plan is one line with its
   qualifier inline. */
.bullets--tight { gap: .3rem; max-width: 34ch; }
.bullets--tight li { grid-template-columns: .8em 1fr; gap: .5rem; line-height: 1.35; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem var(--sp-4); }
.checks li {
  display: grid; grid-template-columns: 1fr; gap: .3rem;
  padding-bottom: .7rem; border-bottom: 1px solid var(--line);
  font-size: var(--step-0);
}
.section--alt .checks li { border-color: color-mix(in srgb, var(--ink) 14%, transparent); }

/* ---------- 13. rates and insurance ---------- */
.rates { border-top: 1px solid var(--line); }
.rate-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.section--alt .rate-row, .section--alt .rates { border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.rate-label { font-weight: 500; }
.rate-detail { font-size: var(--step--1); color: var(--ink-soft); }
.rate-price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 300; white-space: nowrap; }

.insurance { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 0; }
.ins-item { padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.ins-name { font-weight: 500; }
.ins-note { display: block; font-size: var(--step--1); color: var(--ink-soft); font-style: italic; }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.section--alt .faq, .section--alt .faq details { border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.35rem; color: var(--accent-text); flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: var(--sp-4); color: var(--ink-soft); max-width: var(--max-prose); line-height: 1.65; }

/* ---------- 15. forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-soft); }
.field .hint { text-transform: none; letter-spacing: 0; font-size: var(--step--1); font-style: italic; }
.field input, .field select, .field textarea {
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--ink-soft); border-radius: 0;
  padding: .6rem 0; width: 100%;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--ink); border-bottom-width: 2px; padding-bottom: calc(.6rem - 1px);
}
.field textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-left: 2px solid var(--accent);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-3);
  font-size: var(--step--1); line-height: 1.65; color: var(--ink-soft);
}
.notice strong { display: block; margin-bottom: .3em; color: var(--ink); font-weight: 500; }
/* Single-line variant — label and text run together on one row */
.notice--inline { padding-block: .3rem; line-height: 1.5; }
.notice--inline strong { display: inline; margin-bottom: 0; }

/* Tighter variant for the standing practice-details block */
.details--compact { gap: var(--sp-3) var(--sp-4); }
.details--compact .detail-k { margin-bottom: .1em; }
.details--compact .detail-v { font-size: var(--step--1); line-height: 1.4; }

/* ---------- 16. contact details ---------- */
.detail-list { display: grid; gap: var(--sp-3); }
.detail-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent-text); margin-bottom: .3em; }
.detail-v { font-size: var(--step-0); line-height: 1.6; }
.detail-v a { text-underline-offset: 3px; }

/* ---------- 17. pull quote ---------- */
.pullquote {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-3); line-height: 1.25; letter-spacing: -0.02em;
  text-wrap: balance; max-width: 20ch;
}
/* Held to a single line inside a half-width grid column. The cap is set so
   29 characters of Cormorant still fit the ~466px column at the 1140px
   layout width, where vw scaling would otherwise keep growing past it. */
.pullquote--oneline {
  max-width: none; white-space: nowrap; text-wrap: nowrap;
  font-size: clamp(1.05rem, 2.6vw, 2rem);
  margin-top: .25rem;
}

/* ---------- 18. footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--on-deep); padding-block: var(--sp-6) var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-4); }
.site-footer h4 {
  font-family: var(--font-body); font-size: .7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; color: #fff; margin-bottom: var(--sp-3);
}
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links li { margin-bottom: .6rem; font-size: var(--step--1); }
.footer-brand p { font-size: var(--step--1); opacity: .85; margin-top: var(--sp-2); max-width: 32ch; line-height: 1.7; }
.footer-bottom {
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between;
  font-size: var(--step--1); opacity: .8;
}

/* ---------- 19. quality floor ---------- */
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.skip-link {
  position: absolute; left: 50%; translate: -50% -140%;
  background: var(--ink); color: #fff; padding: .8rem 1.4rem; z-index: 100;
  text-decoration: none; transition: translate .2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 20. responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; }
  .clinician { grid-template-columns: 220px 1fr; }
}

@media (max-width: 760px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: block; }
  .site-header[data-open="true"] .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: var(--sp-2) var(--gutter) var(--sp-3);
  }
  .site-header[data-open="true"] .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .clinician { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .rate-row { flex-direction: column; gap: .3rem; }
  .glance { flex-direction: column; align-items: center; }
}
