/* ============================================================
   Therapy Avenue — Design System
   Palette: warm ivory ground, deep charcoal ink, brand gold
   Type: Fraunces (display serif) + Inter (body sans)
   ============================================================ */

:root {
  --ivory: #faf7f1;
  --ivory-deep: #f3ede2;
  --ink: #1d1a16;
  --ink-soft: #4a443c;
  --gold: #b8892f;
  --gold-deep: #967022;
  --gold-pale: #f0e4cb;
  --white: #ffffff;
  --green: #5d6b52;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 26, 22, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }

p + p { margin-top: 1em; }

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button-gold { background: var(--gold); color: var(--white); }
.button-gold:hover { background: var(--gold-deep); color: var(--white); }
.button-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 26, 22, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 58px; width: auto; display: block; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}
.site-nav a, .dropdown-toggle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0.3rem 0;
}
.site-nav a:hover, .dropdown-toggle:hover { color: var(--gold-deep); }
/* Buttons centre their text by default; match the links so the mobile
   menu items all left-align. */
.dropdown-toggle { text-align: left; }
.nav-cta a { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.nav-cta a:hover { color: var(--white); }

.has-dropdown { position: relative; }
.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
/* ".site-nav .dropdown" (not bare ".dropdown") so this out-specifies
   the ".site-nav ul { display:flex }" layout rule — otherwise the menu
   renders permanently open. */
.site-nav .dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  /* Invisible bridge over the 0.6rem gap below the button, so the pointer
     can travel from "Services" down into the menu without it closing. */
}
.site-nav .dropdown::before {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: -1rem;
  right: -1rem;
  height: 0.9rem;
}
.site-nav .dropdown {
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.6rem 0;
  min-width: 210px;
  display: none;
  flex-direction: column;
  gap: 0;
}
.has-dropdown.open .dropdown, .has-dropdown:hover .dropdown { display: flex; }
.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  padding: 0.5rem 1.2rem;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--ivory-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ivory) 0%, var(--gold-pale) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.hero p.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 1.3rem 0 2rem;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  width: min(460px, 88vw);
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Gentle, GPU-cheap animation; disabled for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  .sway { transform-origin: bottom center; animation: sway 7s ease-in-out infinite alternate; }
  .leaf-drift { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
  @keyframes drift { from { transform: translateY(0); opacity: 0.9; } to { transform: translateY(-9px); opacity: 1; } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-deep { background: var(--ivory-deep); }
.section-ink { background: var(--ink); color: var(--ivory); }
.section-ink h2, .section-ink h3 { color: var(--ivory); }
.section-ink a:not(.button) { color: var(--gold-pale); }

.section-intro { max-width: 46em; margin-bottom: 2.5rem; }
.section-intro p { color: var(--ink-soft); font-size: 1.1rem; }
.section-ink .section-intro p { color: rgba(250, 247, 241, 0.85); }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.section-ink .eyebrow { color: var(--gold); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 3px solid var(--gold-pale);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(29, 26, 22, 0.13);
  border-top-color: var(--gold);
}
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Value strip ---------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}
.value-strip h3 { font-size: 1.1rem; }
.value-strip p { font-size: 0.95rem; color: var(--ink-soft); }
.section-ink .value-strip p { color: rgba(250, 247, 241, 0.8); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--ivory) 0%, var(--gold-pale) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40em;
  margin-top: 1rem;
}

/* ---------- Portraits ---------- */
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.page-hero-photo {
  width: 100%;
  max-width: 360px;
  height: auto;
  justify-self: end;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--gold);
}
.portrait {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--gold);
}
.about-teaser { align-items: center; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo { max-width: 280px; justify-self: start; margin-top: 1.4rem; }
  .portrait { max-width: 340px; margin: 0 auto; }
}

/* ---------- Prose ---------- */
.prose { max-width: 44em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1em 0; }
.prose li { margin: 0.4em 0; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.2em;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1.5em 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* ---------- Fees table ---------- */
.fees-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fees-table th, .fees-table td { text-align: left; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--ivory-deep); }
.fees-table th { background: var(--ink); color: var(--ivory); font-weight: 600; font-size: 0.95rem; }
.fees-table tr:last-child td { border-bottom: none; }
.fees-table td:last-child { font-weight: 600; white-space: nowrap; }

/* ---------- Workshops ---------- */
.workshop-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
}
.workshop-date {
  text-align: center;
  font-family: var(--font-display);
  background: var(--gold-pale);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  min-width: 86px;
}
.workshop-date .day { display: block; font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.workshop-date .month { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-deep); }
.workshop-meta { font-size: 0.92rem; color: var(--ink-soft); }
.workshop-card.past { opacity: 0.65; }
.workshop-card.past .workshop-date { background: var(--ivory-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { color: var(--ivory); margin-bottom: 0.3em; }
.cta-band p { color: rgba(250, 247, 241, 0.8); max-width: 34em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 241, 0.85);
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-logo { height: 54px; width: auto; display: block; margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.9rem; margin-top: 1rem; }
.social-links a { color: var(--gold); display: inline-flex; }
.social-links a:hover { color: var(--ivory); }
.footer-heading { font-weight: 600; color: var(--gold); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 0.7rem; }
.footer-links { list-style: none; }
.footer-col .button { margin-top: 1.1rem; }
.footer-links li { margin: 0.35rem 0; }
.site-footer a { color: rgba(250, 247, 241, 0.85); }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; }
.footer-note { font-size: 0.82rem; color: rgba(250, 247, 241, 0.55); }
.footer-bottom { border-top: 1px solid rgba(250, 247, 241, 0.15); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .brand-logo { height: 44px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid rgba(29, 26, 22, 0.1);
    box-shadow: var(--shadow);
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .site-nav ul li { width: 100%; }
  .site-nav a, .dropdown-toggle { display: block; width: 100%; padding: 0.65rem 0; font-size: 1.05rem; }
  .site-nav .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1rem;
    display: none;
  }
  .site-nav .has-dropdown:hover .dropdown { display: none; }
  .site-nav .has-dropdown.open .dropdown { display: block; }
  .nav-cta { margin-top: 0.8rem; }
  .nav-cta a { text-align: center; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-media { order: -1; }
  .hero-video { width: min(340px, 88vw); }
  .two-col { grid-template-columns: 1fr; }
  .workshop-card { grid-template-columns: auto 1fr; }
  .workshop-card .button { grid-column: 1 / -1; text-align: center; }
}
