/* ===== TherapyHaus — Earthy palette: light browns and warm greys ===== */
:root {
  --cream: #FBF8F4;      /* page background (very light warm linen) */
  --cream-deep: #F2ECE4; /* light brown tint for alternate sections, tags, hovers */
  --clay: #8C6E58;       /* warm brown: buttons, highlights */
  --clay-dark: #6F5644;
  --stone: #77706A;      /* warm grey: secondary accents */
  --stone-dark: #57514C;
  --sand: #D8C7B2;       /* soft beige */
  --text: #3B3632;
  --muted: #6E6660;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(59, 54, 50, 0.08);
  --max: 1120px;
  /* Fonts: Fraunces (serif) for headings and quotes, Inter for body text. Loaded in index.html. */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; } /* keeps headings clear of the sticky header when jumping to a category */

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--stone-dark); }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; font-weight: 400; letter-spacing: 0; }
h3 { font-weight: 500; } /* small headings a touch heavier so they stay readable */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.section-alt { background: var(--cream-deep); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin: 0 auto; }

/* Placeholder text marker. Remove the class once real content is in. */
.placeholder { background: rgba(216, 199, 178, 0.35); border-radius: 4px; padding: 0 4px; }

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); /* solid white so the logo stands out */
  border-bottom: 1px solid rgba(59, 54, 50, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.logo img { height: 76px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 16px; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--cream-deep); }
.nav-links a.active { background: var(--clay); color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
}
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 5px auto; background: var(--text); border-radius: 3px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  html { scroll-padding-top: 80px; }
  .nav { height: 80px; }
  .logo img { height: 62px; }
  .nav-links {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 12px 20px 20px;
    background: var(--white); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  font-size: 1rem; font-family: inherit;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-secondary { background: var(--white); color: var(--stone-dark); border: 2px solid var(--stone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* ===== Hero ===== */
.hero { padding: 80px 0 64px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--clay); }
.hero .lead + .lead { margin-top: 12px; }
.hero .lead { margin-top: 18px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.hero-art {
  aspect-ratio: 1; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, var(--sand), var(--clay));
  display: grid; place-items: center; color: var(--white);
  font-weight: 700; text-align: center; padding: 40px; box-shadow: var(--shadow);
}
.hero-art img { border-radius: inherit; width: 100%; height: 100%; object-fit: cover; }
/* Hero photo slider: crossfade with a slow, continuous zoom/pan */
.hero-slider { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.slides {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: 50%; /* circle */
  box-shadow: var(--shadow); background: var(--cream-deep);
  border: 6px solid var(--white); outline: 3px solid var(--sand);
}
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; animation: rove 7s linear forwards; }
.slide:nth-child(2n).active { animation-name: rove-alt; }
@keyframes rove     { from { transform: scale(1.04) translate(-1.5%, 1%); } to { transform: scale(1.14) translate(1.5%, -1.5%); } }
@keyframes rove-alt { from { transform: scale(1.14) translate(1.5%, -1%);  } to { transform: scale(1.04) translate(-1.5%, 1%); } }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(59, 54, 50, 0.2); transition: width 0.3s, background 0.3s;
}
.slider-dots button[aria-selected="true"] { width: 30px; background: var(--clay); }
@media (prefers-reduced-motion: reduce) {
  .slide.active { animation: none; }
}

.blob { position: absolute; border-radius: 50%; opacity: 0.18; z-index: -1; }
.blob-1 { width: 320px; height: 320px; background: var(--stone); top: -120px; right: -80px; }
.blob-2 { width: 200px; height: 200px; background: var(--sand); bottom: -60px; left: -60px; }

.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero .lead { margin: 14px auto 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art, .hero-slider { max-width: 360px; width: 100%; margin: 0 auto; }
}

/* ===== Cards & grids ===== */
.grid { display: grid; gap: 24px; margin-top: 36px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  border: 1px solid rgba(59, 54, 50, 0.06); /* keeps cards visible on the white background */
}
.card p { color: var(--muted); }

/* ===== Testimonials ===== */
.quote { position: relative; padding-top: 44px; }
.quote::before {
  content: "\201C"; position: absolute; top: 4px; left: 24px;
  font-family: var(--font-heading); font-size: 4.5rem; line-height: 1; color: var(--clay);
}
.quote blockquote { font-size: 1.05rem; color: var(--text); }
.quote .who { margin-top: 16px; font-weight: 700; color: var(--stone-dark); }
.quote .who small { display: block; font-weight: 600; color: var(--muted); }

/* ===== Featured testimonials ===== */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  font-weight: 700; color: var(--clay); margin-bottom: 8px;
}
.testimonial-stack { display: grid; gap: 36px; max-width: 900px; }

.feature-quote {
  --accent: var(--clay);
  --accent-soft: rgba(140, 110, 88, 0.08);
  position: relative; display: block;
  background: var(--white); border-radius: 28px;
  padding: 44px 48px 36px; box-shadow: var(--shadow);
  border: 1px solid rgba(59, 54, 50, 0.06);
  border-top: 6px solid var(--accent);
  text-decoration: none; color: var(--text);
  overflow: hidden;
}
.feature-quote.accent-stone { --accent: var(--stone); --accent-soft: rgba(119, 112, 106, 0.08); }
.feature-quote::before {
  content: "\201C"; position: absolute; top: -20px; right: 28px;
  font-family: var(--font-heading); font-size: 11rem; line-height: 1;
  color: var(--accent); opacity: 0.12; pointer-events: none;
}
/* Key line in each testimonial: bold italic instead of a separate header */
.feature-quote mark { background: none; color: var(--text); font-weight: 600; font-style: italic; }
.feature-quote .full p {
  font-size: 1.08rem; line-height: 1.8; margin-bottom: 14px;
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; /* hyphenation avoids big gaps between words on phones */
}
.feature-quote .full {
  border-left: 3px solid var(--accent-soft);
  padding-left: 22px; border-left-color: var(--accent);
}
.attribution { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.attribution .avatar {
  font-family: var(--font-heading);
  flex: 0 0 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 600;
}
.attribution strong { display: block; font-size: 1.05rem; }
.attribution small { color: var(--muted); font-size: 0.92rem; }

/* Home page version */
.testimonial-home { background: linear-gradient(180deg, var(--white), var(--cream-deep)); }
.feature-quote.compact { padding: 40px 32px 32px; transition: transform 0.2s, box-shadow 0.2s; }
.feature-quote.compact:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(59, 54, 50, 0.12); }
.feature-quote.compact .excerpt { color: var(--muted); font-size: 1.02rem; }
.read-more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--accent); }

@media (max-width: 600px) {
  .feature-quote { padding: 44px 22px 28px; }
  .feature-quote .full { padding-left: 14px; }
}

/* ===== Workshops ===== */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--cream-deep); font-size: 0.85rem; font-weight: 700; color: var(--text);
}

/* ===== Past workshops ===== */
.past-grid {
  display: grid; gap: 28px; margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center;
}
.past-workshop { padding: 16px 16px 22px; border-top: 6px solid var(--clay); }
.past-workshop img { border-radius: 10px; transition: transform 0.2s; }
.past-workshop a:hover img { transform: scale(1.02); }
.past-workshop figcaption { padding: 16px 6px 0; }
.past-workshop h3 { font-size: 1.15rem; }

/* ===== Publications ===== */
.publication {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
  margin-top: 36px; padding: 36px; border-top: 6px solid var(--stone);
}
.pub-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  aspect-ratio: 3 / 4; border-radius: 14px; text-decoration: none;
  background: var(--cream-deep); color: var(--clay);
  border: 1px solid rgba(59, 54, 50, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pub-cover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pub-cover-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-align: center; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; }
.pub-text h3 { font-size: 1.4rem; margin: 0 0 10px; }
.pub-text .pub-authors { color: var(--text); margin-bottom: 4px; }
.pub-text .pub-journal { color: var(--stone-dark); font-weight: 700; margin-bottom: 14px; }
.pub-text .btn { margin-top: 18px; }
@media (max-width: 860px) {
  .publication { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .pub-cover { aspect-ratio: auto; flex-direction: row; padding: 16px 20px; justify-content: flex-start; }
  .pub-cover svg { width: 40px; height: 40px; }
  .pub-cover-label { text-align: left; }
}


/* ===== Contact ===== */
.contact-info { text-align: center; font-size: 1.1rem; }
.contact-info p { margin-bottom: 8px; }
#contact h2 { margin-bottom: 0.9em; }
.profile { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(59, 54, 50, 0.1); max-width: 760px; margin-left: auto; margin-right: auto; }
.contact-info .contact-name { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 2px; color: var(--text); }
.contact-info .contact-cred { color: var(--text); font-size: 1rem; line-height: 1.6; margin-bottom: 0; }
.contact-info .contact-role { color: var(--text); font-size: 1rem; margin-bottom: 6px; }
.contact-info strong { color: var(--clay-dark); font-weight: 600; }
.contact-info a { word-break: break-word; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Services lists ===== */
.services-grid {
  display: grid; gap: 28px;
  max-width: 820px; margin: 0 auto; /* stacked, centred column */
}
.service-panel {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(59, 54, 50, 0.06);
  overflow: hidden;
}
.service-panel .panel-head {
  background: var(--cream-deep); margin: 0; padding: 18px 28px;
  font-size: 1.2rem; text-align: center;
  border-bottom: 1px solid rgba(59, 54, 50, 0.08);
}
.dot-list { list-style: none; padding: 22px 28px 26px; }
.dot-list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.dot-list li:last-child { margin-bottom: 0; }
.dot-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--clay);
}

/* ===== Photo gallery (static grid, click to enlarge) ===== */
.gallery-section { padding-top: 16px; }
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  max-width: 820px; margin: 0 auto; /* same width as the services boxes above */
}
.gallery-item {
  display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 14px; box-shadow: var(--shadow); background: var(--cream-deep);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Lightbox (enlarged photo view) */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(30, 27, 25, 0.88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 86vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox button {
  position: fixed; border: 0; cursor: pointer; font: inherit;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--text); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center;
}
.lightbox button:hover { background: var(--white); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
@media (max-width: 560px) {
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
}

/* Thin divider where one menu category ends and the next begins */
.category + .category { border-top: 1px solid rgba(59, 54, 50, 0.1); }
