/* ============================================================
   SALA THERAPY — Design System
   Palette: cool paper, deep still-water teal, muted sage stone
   Type: Archivo (display/structure) + Source Serif 4 (body/warmth)
   Signature: slow breathing circle (hero) + "pause divider" motif
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,340;9..144,450&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color — warm light, quiet wood-and-paper palette */
  --paper: #F4EBDC;
  --paper-alt: #ECDCC0;
  --paper-deep: #E3D0AC;
  --ink: #2E241A;
  --ink-soft: #6B5A44;
  --ink-faint: #A18E70;
  --teal: #6B4226;
  --teal-deep: #3B2818;
  --teal-tint: #F0DFB6;
  --sage: #C98A45;
  --line: #DDC9A2;
  --white: #FBF5E7;

  /* Type */
  --font-display: 'Archivo', -apple-system, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-w: 1120px;
  --pad: clamp(1.5rem, 4vw, 3.5rem);
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  color: var(--teal-deep);
  line-height: 1.1;
  font-weight: 480;
  letter-spacing: -0.01em;
}

a {
  color: var(--teal);
  text-decoration: none;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus {
  left: var(--pad);
  top: var(--pad);
}

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 240, 235, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}
.wordmark span {
  color: var(--sage);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal-deep);
  border-bottom-color: var(--sage);
}
.nav-cta {
  color: var(--teal-deep) !important;
  font-weight: 700;
  padding: 0.25rem 0;
  border-bottom: 2px solid var(--sage) !important;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { color: var(--sage) !important; border-bottom-color: var(--teal) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem var(--pad);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta { margin-top: 0.5rem; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.1rem;
  display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(5rem, 13vw, 9rem) var(--pad) clamp(4rem, 9vw, 6rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.7rem;
  text-shadow: 0 2px 40px rgba(251, 243, 223, 0.9);
}
.hero-wordmark .hw-primary {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(3.6rem, 13vw, 7.5rem);
  letter-spacing: -0.015em;
  color: var(--teal-deep);
  line-height: 0.95;
}
.hero-wordmark .hw-secondary {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: 0.02em;
  color: var(--sage);
  margin-top: 0.3rem;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 auto 2.25rem;
  text-shadow: 0 1px 20px rgba(251, 243, 223, 0.85);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-actions .btn-ghost {
  background: rgba(251, 245, 231, 0.55);
  backdrop-filter: blur(4px);
}

/* Hero atmosphere — soft moving light, signature element */
.light-shaft {
  animation: drift-glow 14s ease-in-out infinite;
}
.light-shaft.s2 { animation-delay: -5s; }
.light-shaft.s3 { animation-delay: -9s; }
.spotlight-glow {
  animation: fade-inout 9s ease-in-out infinite;
}
@keyframes drift-glow {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(10px); }
}
@keyframes fade-inout {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.85; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.btn-ghost:hover { background: var(--teal); color: var(--white); }

/* ---------- Pause divider (signature structural motif) ---------- */
.pause-divider {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.pause-divider::before,
.pause-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.pause-divider .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin: 0 1rem;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 60ch; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Pillars / cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(59, 40, 24, 0.1);
  border-color: var(--sage);
}
.pillar .mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sage);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--teal-deep); }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }

/* Tag chips */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.tag {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tag:hover { background: var(--sage); color: var(--white); transform: translateY(-2px); }

/* Pull quote */
.pull-quote {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}
.pull-quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--teal-deep);
  line-height: 1.5;
}
.pull-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* CTA banner */
.cta-banner {
  background:
    radial-gradient(ellipse 480px 320px at 25% 15%, rgba(252, 231, 185, 0.22), transparent 60%),
    radial-gradient(ellipse 380px 260px at 82% 90%, rgba(201, 154, 79, 0.18), transparent 65%),
    var(--teal-deep);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-banner p { color: #E3CFA9; max-width: 48ch; margin: 0 auto 1.75rem; }
.cta-banner .btn-primary { background: var(--sage); color: var(--teal-deep); }
.cta-banner .btn-primary:hover { background: #B87A3A; }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; } }
.headshot-frame {
  aspect-ratio: 4/5;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1.5rem;
  position: sticky;
  top: 6.5rem;
}
.credentials-list {
  list-style: none;
  margin-top: 1.5rem;
}
.credentials-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}
.credentials-list li:last-child { border-bottom: 1px solid var(--line); }
.credentials-list .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ---------- Steps (real sequence — numbering justified) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding-top: 2.75rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white);
  background: var(--teal);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--sage);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p {
  color: var(--ink-soft);
  padding-bottom: 1.5rem;
  max-width: 65ch;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--teal-deep);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: var(--radius);
}
.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.info-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.info-row:first-of-type { border-top: none; }
.info-row .k {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  min-width: 5.5rem;
  padding-top: 0.15rem;
}

.crisis-notice {
  background: #F1E4CB;
  border: 1px solid #D8B98A;
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  font-size: 0.94rem;
  color: var(--ink);
}
.crisis-notice strong { color: var(--teal-deep); }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: #D9C3A0;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark span { color: var(--sage); }
.footer-tagline { color: #B79E78; margin-top: 0.75rem; font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B79E78;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #E8D6B0; font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #9A8362;
}

/* ---------- Brand mark — an ensō, the open circle of Zen brush painting ---------- */
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand-mark circle {
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
}
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  color: var(--sage);
  margin-bottom: 1.5rem;
}
.hero-content .eyebrow {
  margin-bottom: 0;
  text-shadow: 0 0 24px rgba(251, 243, 223, 0.8);
}

/* ---------- Photo frames — placeholder system for real photography ---------- */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--paper-deep), var(--paper-alt));
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  min-height: 260px;
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-frame svg.illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.photo-frame:hover svg.illustration { transform: scale(1.035); }
.photo-frame:hover img { transform: scale(1.04); }
.photo-frame .frame-caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(251,245,231,0.9), rgba(251,245,231,0));
  width: 100%;
}
.photo-frame.tall { aspect-ratio: 4/5; min-height: 0; }
.photo-frame.wide { aspect-ratio: 16/9; min-height: 0; }

.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (max-width: 800px) { .photo-band { grid-template-columns: 1fr; } }
.photo-band .photo-frame { border-radius: 0; border: none; aspect-ratio: 4/3; min-height: 0; }

/* ---------- Dark color-block section — contrast/rhythm ---------- */
.dark-block {
  background: var(--teal-deep);
  color: #E8D6B0;
  position: relative;
  overflow: hidden;
}
.dark-block .container { position: relative; z-index: 2; }
.dark-block .pull-quote p { color: var(--white); }
.dark-block .pull-quote cite { color: #B79E78; }

/* ---------- Sketch block — real illustration background, blended into the page ---------- */
.sketch-block {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.sketch-block .section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.sketch-block::before,
.sketch-block::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 1;
  pointer-events: none;
}
.sketch-block::before {
  top: 0;
  background: linear-gradient(180deg, var(--paper-alt), transparent);
}
.sketch-block::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--paper), transparent);
}
.sketch-block .container {
  position: relative;
  z-index: 2;
}
.sketch-block .pull-quote p {
  color: var(--teal-deep);
  text-shadow: 0 1px 22px rgba(251, 245, 231, 0.9);
}
.sketch-block .pull-quote cite {
  color: var(--ink-soft);
  text-shadow: 0 1px 16px rgba(251, 245, 231, 0.9);
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.section-bg svg { width: 100%; height: 100%; display: block; }
.scrim-dark {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(27,19,11,0.32), rgba(27,19,11,0.6));
}

/* ---------- Section treeline (forest silhouette flourish) ---------- */
.has-treeline { position: relative; overflow: hidden; }
.has-treeline .container { position: relative; z-index: 1; }
.section-treeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 0;
  pointer-events: none;
}
.section-treeline svg { width: 100%; height: 100%; display: block; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 20ch; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 50ch; margin-top: 1rem; }
