/* ==========================================================================
   Stakes Therapy Services
   assets/styles.css
   Palette: sampled from the logo — forest green, amber, daylight paper
   Type:    Newsreader (display) + Karla (body) — self-hosted, no CDN
   ========================================================================== */

/* ---------------------------------------------------------- Typefaces --
   Variable fonts served from this repo. Nothing loads from Google, so the
   site makes zero third-party requests. Both are Open Font License. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/karla-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  /* Color */
  --paper:        #F7F8F4;  /* page background — daylight, faint green cast */
  --paper-sunk:   #EEF2EA;  /* alternating band */
  --panel:        #FFFFFF;
  --ink:          #1F2E24;  /* deep forest — body text, not black. 13.4:1 */
  --ink-soft:     #556458;  /* secondary text. 5.9:1 */
  --sage:         #41693F;  /* logo green — links, buttons. 5.9:1 on paper */
  --sage-deep:    #2F5130;  /* hover */
  --sage-pale:    #DDE6DA;  /* washes, rules */

  /* The logo's amber measures 1.5:1 against the paper — lovely as a drawn
     line, unreadable as text. So it is split in two: --gold draws,
     --gold-ink writes. Never set type in --gold. */
  --gold:         #FDC13D;  /* logo amber — DECORATIVE ONLY */
  --gold-ink:     #8C620D;  /* same hue darkened for labels. 5.1:1 */

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 68rem;
  --measure-narrow: 40rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- Reset -- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--sage-deep); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------- Typography -- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.4rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 1.02rem + 0.42vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* The italic display face is the voice of the brand — used for emphasis
   inside headings, never for whole paragraphs. */
.accent {
  font-style: italic;
  color: var(--sage);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--center { justify-content: center; }

/* ------------------------------------------------------------- Layout -- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 52rem; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sunk { background: var(--paper-sunk); }

.rule {
  height: 1px;
  border: 0;
  background: var(--sage-pale);
  margin: 0;
}

/* ------------------------------------------------------------ Buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease),
              color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              transform 0.25s var(--ease);
}

.btn--solid {
  background: var(--sage);
  color: #fff;
}
.btn--solid:hover {
  background: var(--sage-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--sage-pale);
}
.btn--ghost:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------- Header -- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 244, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--sage-pale);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.25s var(--ease);
}
.wordmark:hover { opacity: 0.72; }

.logo {
  height: 3.5rem;        /* ~56px — the script holds up cleanly at this size */
  width: auto;
  display: block;
}

.footer .logo { height: 3.1rem; }

@media (max-width: 34rem) {
  .logo { height: 2.9rem; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__link:hover { color: var(--sage-deep); border-bottom-color: var(--sage); }
.nav__link[aria-current="page"] { border-bottom-color: var(--gold); }

.nav__phone {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--sage);
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone:hover { color: var(--sage-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sage-pale);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* --------------------------------------------------- Hero + breathing -- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 9vw, 7rem);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.hero__sub {
  max-width: 34rem;
  margin-top: 1.5rem;
}

/* SIGNATURE ELEMENT
   Concentric rings on a true box-breathing cycle: 4s in, 4s hold,
   4s out, 4s hold. Ambient and unlabelled — the rhythm does the work.
   Grounding exercises are part of this practice's own vocabulary. */
.breath {
  position: absolute;
  top: 50%;
  right: -6vw;
  translate: 0 -50%;
  width: min(42rem, 58vw);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
}

.breath__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--sage);
  opacity: 0.18;
  animation: breathe 16s var(--ease) infinite;
}
.breath__ring:nth-child(2) { inset: 12%; animation-delay: -0.6s; opacity: 0.14; }
.breath__ring:nth-child(3) { inset: 24%; animation-delay: -1.2s; opacity: 0.1; }
.breath__ring:nth-child(4) {
  inset: 34%;
  border: 0;
  background: radial-gradient(circle at 40% 35%, var(--sage-pale), transparent 72%);
  opacity: 0.75;
  animation-delay: -1.8s;
}

@keyframes breathe {
  0%   { transform: scale(0.84); }  /* rest */
  25%  { transform: scale(1.04); }  /* inhale, 4s */
  50%  { transform: scale(1.04); }  /* hold, 4s */
  75%  { transform: scale(0.84); }  /* exhale, 4s */
  100% { transform: scale(0.84); }  /* hold, 4s */
}

/* ---------------------------------------------------------- Card grid -- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  margin-top: 2.75rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--sage-pale);
  border-radius: 4px;
  padding: 2rem 1.75rem;
}

.card h3 { margin-bottom: 0.55rem; }

.card__meta {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.card__mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 0.9rem;
}

/* ------------------------------------------------------------ Roster -- */
/* Lighter alternative to .grid — hairline rules instead of boxes, so two
   list-like sections in a row don't read as the same component twice. */

.roster {
  display: grid;
  gap: 0 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: 2.5rem;
}

.roster__item {
  border-top: 1px solid var(--sage);
  padding-top: 1.1rem;
}

.roster__item h3 { margin-bottom: 0.4rem; }

.roster__item p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

/* -------------------------------------------------------- Two-column -- */

.split {
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {
  .split { grid-template-columns: 22rem minmax(0, 1fr); }
  .split--flip { grid-template-columns: minmax(0, 1fr) 22rem; }
}

/* -------------------------------------------------- Credentials panel -- */
/* Sits where a portrait would. Credentials are the first thing people
   check when choosing a therapist, so this earns the column on its own. */

.creds {
  border-top: 2px solid var(--sage);
  padding-top: 1.4rem;
}

.creds__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  line-height: 1.15;
  margin: 0;
}

.creds__post {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0.45rem 0 0;
}

.creds__list {
  margin: 1.9rem 0 0;
  display: grid;
  gap: 0;
}

.creds__list dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 1.1rem;
  border-top: 1px solid var(--sage-pale);
}

.creds__list dd {
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0.3rem 0 1.15rem;
}

/* --------------------------------------------------------- Form notice -- */

.notice {
  background: var(--sage-pale);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.75rem;
}
.notice strong { display: block; margin-bottom: 0.2rem; }

/* --------------------------------------------------------- Checklist -- */

.checklist {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--sage);
  border-radius: 50%;
}

/* ------------------------------------------------------------- Quote -- */

.quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}
.quote__by {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.75rem;
}

/* --------------------------------------------------------- Page head -- */

.pagehead { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.pagehead h1 { max-width: 20ch; }
.pagehead .lead { max-width: 42rem; margin-top: 1.25rem; }

/* ----------------------------------------------------------- Details -- */

.faq { max-width: var(--measure-narrow); }
.faq--wide { max-width: 46rem; }

.qa {
  border-bottom: 1px solid var(--sage-pale);
}
.qa:first-of-type { border-top: 1px solid var(--sage-pale); }

.qa summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.32rem);
  line-height: 1.3;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--sage-deep); }

.qa summary::after {
  content: "+";
  font-family: var(--body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--sage);
  flex: none;
  transition: transform 0.3s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }

.qa__body {
  padding-bottom: 1.75rem;
  max-width: 44rem;
  color: var(--ink-soft);
}
.qa__body ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.qa__body li { margin-bottom: 0.4rem; }

/* -------------------------------------------------------- Crisis note -- */

.crisis {
  background: var(--panel);
  border: 1px solid var(--sage-pale);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
}
.crisis h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); }
.crisis__line {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  color: var(--sage);
  text-decoration: none;
  display: inline-block;
  margin-block: 0.35rem 0.75rem;
}
.crisis__line:hover { color: var(--sage-deep); text-decoration: underline; }

/* ------------------------------------------------------- Contact info -- */

.info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.9rem;
}

.info__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 0.35rem;
}

.info__value {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.info__value a { color: var(--ink); text-decoration: none; }
.info__value a:hover { color: var(--sage-deep); text-decoration: underline; }

/* --------------------------------------------------------------- Form -- */

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--sage-pale);
  border-radius: 3px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--sage); outline-offset: 1px; }

.field textarea { resize: vertical; min-height: 8rem; }

.form__note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.form .btn { justify-self: start; margin-top: 0.4rem; }

.form__status {
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 1.3em;
}
.form__status--error { color: #A23B2E; }

.form__success {
  border-top: 2px solid var(--sage);
  padding-top: 1.4rem;
}
.form__success-crisis {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sage-pale);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form__success h3 { margin-bottom: 0.6rem; }
.form__success p { color: var(--ink-soft); }
.form__success:focus { outline: none; }

/* ------------------------------------------------------------- Footer -- */

.footer {
  background: var(--paper-sunk);
  border-top: 1px solid var(--sage-pale);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.footer h4 {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 0.9rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.footer a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer a:hover { color: var(--sage-deep); text-decoration: underline; }

.footer__blurb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 22rem;
  margin-top: 0.75rem;
}

.footer__crisis {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sage-pale);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer__crisis strong { color: var(--ink); font-weight: 600; }

.footer__legal {
  margin-top: 1.5rem;
  font-size: 0.83rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: space-between;
}
.footer__legal p { margin: 0; }

/* ------------------------------------------------------------ Mobile -- */

@media (max-width: 54rem) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--sage-pale);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--sage-pale);
    font-size: 1.05rem;
  }
  .nav__link:hover { border-bottom-color: var(--sage-pale); }
  .nav__link[aria-current="page"] { color: var(--sage); }

  .nav__phone { padding-top: 1.1rem; font-size: 1.25rem; }

  .breath { right: -28vw; width: 34rem; opacity: 0.7; }
}

/* --------------------------------------------------- Reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath__ring { animation: none; transform: scale(0.95); }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- Print -- */

@media print {
  .masthead, .breath, .nav-toggle { display: none; }
  body { background: #fff; }
}
