/* South Therapy — shared styles */

:root {
  --cream: #f5f5f0;
  --sand: #e4cbb2;
  --sand-light: #efe2d4;
  --sage: #a5a486;
  --olive: #5f5e45;      /* darker sage, readable on cream */
  --ink: #1c1b18;
  --muted: #55524b;
  --line: #d9d3c7;
  --serif: "Ibarra Real Nova", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.1vw + 12px, 20px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 3px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
/* Narrow sections keep the same left edge as the rest of the page */
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 720px; }

/* ---------- Type ---------- */

h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1.2em;
}

.lead { font-size: 1.2em; color: var(--muted); }

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15em 2em;
  background: var(--ink);
  color: var(--sand);
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--sand); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 240, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.logo {
  font-family: var(--sans);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; }
.nav .btn { padding: 1em 1.5em; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--ink); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--sand { background: var(--sand); }
.section--sand-light { background: var(--sand-light); }
.section--sage { background: var(--sage); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .eyebrow { color: var(--sand); }

.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 16ch; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero .note {
  font-family: var(--sans); font-size: 0.85rem; color: var(--muted);
  margin-top: 1.4em;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero img { aspect-ratio: 4 / 3; }
}

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

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 2.5em;
}
.card { background: var(--cream); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: 0.95em; }
.card a.more {
  margin-top: auto;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin: 0; padding: 0; list-style: none;
}
.facts dt {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive);
  margin-bottom: 0.5em;
}
.facts dd { margin: 0; font-size: 1.15em; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

blockquote {
  margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35;
  max-width: 28ch;
}

.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 2em; }
.badges img { height: 64px; width: auto; }

/* ---------- Therapy detail blocks ---------- */

.page-head__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.jump a {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 0.7em 1em; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.jump a:hover { border-color: var(--ink); background: var(--sand-light); }

.therapy {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 6vw, 88px);
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.therapy:last-child { border-bottom: 1px solid var(--line); }
.therapy__num {
  display: block; margin-bottom: 1.2em;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; color: var(--olive);
}
.therapy h2 { margin-bottom: 0.3em; }
.therapy__for {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin: 0;
}
.therapy__body p:first-child { font-size: 1.15em; color: var(--ink); }
.therapy__body p { color: var(--muted); }
.therapy__body p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .therapy { grid-template-columns: 1fr; }
  .page-head__img { aspect-ratio: 16 / 9; }
}

/* FAQs: heading on the left, questions on the right */
.faq-layout {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.faq-intro { position: sticky; top: 120px; }
.faq-intro p:last-child { color: var(--muted); }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

/* ---------- FAQs ---------- */

.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 1.3em 0; font-size: 1.25em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.4em; line-height: 1;
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.4em; color: var(--muted); max-width: 64ch; }

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

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.1em 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label {
  display: block;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive);
  margin-bottom: 0.3em;
}

.crisis {
  margin-top: 2.5em; padding: 1.4em 1.6em;
  background: var(--sand-light); font-size: 0.92em;
}
.crisis p:last-child { margin: 0; }

/* ---------- Prose (privacy etc.) ---------- */

.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Placeholders: replace before going live ---------- */

.todo {
  background: #fff3b0;
  outline: 1px dashed #b38f00;
  padding: 0 4px;
}

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

.site-footer {
  background: var(--ink); color: #cfcabd;
  padding: 64px 0 40px;
  font-family: var(--sans); font-size: 0.85rem; line-height: 1.7;
}
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.site-footer h2 {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand);
  margin-bottom: 1.2em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #f5f5f0; }
.site-footer .legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a3833;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.78rem; color: #9e9989;
}
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr; } }

.small-note { margin-top: 1.4em; font-size: 0.92em; color: var(--muted); }

/* Keep anchor targets clear of the sticky header */
[id] { scroll-margin-top: 96px; }

@media (max-width: 860px) {
  .portrait { max-width: 380px; }
}
