/* ============================================================
   Third Space Psychotherapy — styles
   Palette:
     --cream     warm page background
     --ink       primary text (deep green-charcoal)
     --sage      brand green
     --sage-deep dark green (headings, footer)
     --clay      terracotta accent (CTAs)
   ============================================================ */

:root {
  /* Blush & Sage scheme (from Emily's logo) */
  --cream: #faf5f1;
  --cream-deep: #f3eae4;
  --ink: #3c3835;
  --ink-soft: #6e675f;
  --sage: #b3b5a1;
  --sage-deep: #4d5548;
  --clay: #966d73;
  --clay-deep: #7d575d;
  --footer: #3a4036;
  --deep-rgb: 77, 85, 72;      /* rgb of --sage-deep, for tints */
  --mid-rgb: 179, 181, 161;    /* rgb of --sage */
  --accent-rgb: 150, 109, 115; /* rgb of --clay */
  --bg-rgb: 250, 245, 241;     /* rgb of --cream */
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 24px rgba(var(--deep-rgb),0.10);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--sage-deep);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }

a { color: var(--clay-deep); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--clay);
  color: var(--white);
}
.btn-primary:hover { background: var(--clay-deep); }

.btn-ghost {
  color: var(--sage-deep);
  border: 1.5px solid var(--sage);
  background: transparent;
}
.btn-ghost:hover { background: rgba(var(--mid-rgb),0.15); }

.btn-small {
  background: var(--clay);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  font-size: 0.92rem;
}
.btn-small:hover { background: var(--clay-deep); }

.btn-large { font-size: 1.1rem; padding: 1rem 2.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb),0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--deep-rgb),0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--sage-deep);
  font-weight: 600;
}
.brand-text small {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover:not(.btn-small) { color: var(--clay-deep); }

/* Mobile nav (checkbox hamburger, no JS) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }
  .nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--sage-deep);
    border-radius: 2px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(var(--deep-rgb),0.1);
    box-shadow: var(--shadow);
  }
  .site-nav a { padding: 0.9rem; }
  .site-nav .btn-small { margin: 0.6rem 1.5rem 1rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 75% 20%, rgba(var(--mid-rgb),0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(var(--accent-rgb),0.12) 0%, transparent 50%),
    var(--cream);
  padding: 6.5rem 0 6rem;
  text-align: center;
}

.hero h1 { margin: 0.5rem 0 1.2rem; }

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Empathy strip ---------- */
.strip {
  background: var(--sage-deep);
  color: var(--cream);
  padding: 4.5rem 0;
}
.strip h2 { color: var(--cream); }

.check-list {
  list-style: none;
  margin: 1.5rem 0;
}
.check-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.9rem;
}
.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sage);
}

.strip-close {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(var(--bg-rgb),0.9);
  margin-top: 1.6rem;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--cream-deep); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.portrait-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.cred-list {
  list-style: none;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(var(--deep-rgb),0.15);
  padding-top: 1.2rem;
}
.cred-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.cred-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.profile-links {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.profile-links a { font-weight: 500; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait-wrap { max-width: 300px; margin: 0 auto; }
}

/* ---------- The Space (office) ---------- */
.space-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.space-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
/* Shown until images/office.jpg exists */
.space-photo.missing {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 2px dashed rgba(var(--deep-rgb), 0.3);
  background: rgba(var(--mid-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-style: italic;
}
.space-photo.missing::after { content: "Office photo coming soon"; }
@media (max-width: 820px) {
  .space-grid { grid-template-columns: 1fr; gap: 2rem; }
  .space-copy { order: -1; }
}

/* ---------- Specialty cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--sage);
}
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Approach ---------- */
.approach-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.8rem;
}

.approach-item {
  padding-left: 1.6rem;
  border-left: 3px solid var(--sage);
}
.approach-item p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Fees ---------- */
.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 2.5rem 0;
}
@media (max-width: 640px) { .fees-grid { grid-template-columns: 1fr; } }

.fee-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}
.fee-amount {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--clay);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.fee-box p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.insurance { text-align: center; }
.insurance h3 { margin-bottom: 0.6rem; }
.insurance p { color: var(--ink-soft); }

.fine-print {
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.85;
  margin-top: 1.2rem;
}

/* ---------- FAQ ---------- */
#faq details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1rem;
  padding: 1.2rem 1.6rem;
}

#faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--sage-deep);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--clay);
  transition: transform 0.2s ease;
}
#faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
#faq details p { margin: 0.9rem 0 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(var(--mid-rgb),0.35) 0%, transparent 55%),
    var(--sage-deep);
  color: var(--cream);
  padding: 5.5rem 0;
}
.cta-band h2 { color: var(--cream); }
.cta-band .lede { color: rgba(var(--bg-rgb),0.85); margin-bottom: 2rem; }

.cta-alt {
  margin-top: 1.2rem;
  color: rgba(var(--bg-rgb),0.85);
}
.cta-alt a { color: var(--cream); font-weight: 600; }

.contact-meta {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(var(--bg-rgb),0.75);
}

/* ---------- Contact form ---------- */
.page-title { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 0.8rem; }

.sent-banner {
  display: none;
  background: var(--white);
  border-left: 4px solid var(--sage);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1rem 1.4rem;
  margin-top: 1.5rem;
}
.sent-banner:target { display: block; }

.contact-form {
  margin-top: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  gap: 1.3rem;
}

.field label,
.field legend {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--sage-deep);
}
.field .optional { font-weight: 400; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(var(--deep-rgb),0.25);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(var(--mid-rgb),0.55);
  border-color: var(--sage);
}

.radio-field { border: none; padding: 0; margin: 0; }
.radio-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.radio-row label {
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
}
.radio-row input { accent-color: var(--clay); }

.contact-form .btn { justify-self: start; }

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: rgba(var(--bg-rgb),0.7);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.88rem;
}
.site-footer p { margin-bottom: 0.4rem; }

.crisis {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--bg-rgb),0.15);
}
