/* ─── Mantra Thai Wellbeing — sections below the hero ───────────────
   Uses the tokens defined in wellbeing.css (load that file first). Same rules:
   nothing here may depend on the Mantra site or school styles. */

h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: 0.005em; }
h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.sec { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.sec p, .idea__copy p, .rail p { margin: 0; font-size: 18px; line-height: 1.75; }
.kicker { display: block; color: var(--accent); margin-bottom: 22px; }

/* ─── The idea (autoplaying loop) ─── */
.idea__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.idea__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
/* The push-in: a one-time eased zoom toward the compress, then it holds. */
.idea__video { transform-origin: 78% 8%; }
.idea.is-zooming .idea__video { animation: idea-push 6s cubic-bezier(0.33, 0, 0.2, 1) forwards paused; }
.idea.is-zooming.is-live .idea__video { animation-play-state: running; }
@keyframes idea-push { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .idea.is-zooming .idea__video { animation: none; } }
.idea__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--paper) 94%, transparent) 0%,
    color-mix(in oklab, var(--paper) 78%, transparent) 30%,
    transparent 58%);
}
.idea__copy {
  position: absolute; z-index: 2; left: var(--gutter); top: 50%; translate: 0 -50%;
  max-width: 470px; display: flex; flex-direction: column; gap: 22px;
}
.idea__copy h2 { margin-bottom: 8px; }

/* ─── Treatments (pan) ─── */
.treatments__stage { background: var(--paper); display: flex; align-items: center; }
.rail { gap: clamp(20px, 2.4vw, 36px); padding: 0 var(--gutter); align-items: center; }
.rail > * { flex: 0 0 auto; }
.rail__intro { width: min(440px, 84vw); display: flex; flex-direction: column; gap: 20px; padding-right: 24px; }
.rail__intro h2 { margin-bottom: 6px; }
.card {
  width: min(380px, 80vw); min-height: min(520px, 68vh);
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(28px, 3vw, 40px); background: var(--white);
  box-shadow: 0 30px 60px -36px rgba(58, 51, 44, 0.3);
}
.card p { color: var(--ink-soft); font-size: 17px; }
.prices { margin: auto 0 0; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.prices div:last-child { border-bottom: 0; }
.prices dt { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.prices dd { margin: 0; font-size: 22px; font-weight: 300; letter-spacing: 0.02em; }
.rail__photo { margin: 0; width: min(520px, 84vw); height: min(520px, 68vh); padding: 12px; background: var(--white); }
.rail__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Reduced motion: the engine's floor turns the rail into a sideways scroll
   region, but the pinned act stays 2.2 screens tall and on a phone the cards
   sit off screen with nothing hinting they are there. Re-lay the menu as an
   ordinary grid instead, so the prices are simply in the page. */
@media (prefers-reduced-motion: reduce) {
  .treatments { height: auto !important; }
  .treatments .treatments__stage { position: static; height: auto; overflow: visible; padding: clamp(72px, 10vw, 128px) 0; }
  .treatments .rail {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    align-items: stretch; width: 100%; max-width: 1280px; margin: 0 auto;
  }
  .treatments .rail > * { width: auto; }
  .treatments .rail__intro { grid-column: 1 / -1; max-width: 640px; padding-right: 0; }
  .treatments .card { min-height: 0; }
  .treatments .rail__photo { display: none; }
}

/* ─── Breathe (the peak). One 8 s breath, looping on its own: inhale 0-44%,
   hold to 56%, exhale to 100%. Paused until wellbeing.js adds .is-live. ─── */
.breathe__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden;
  display: grid; place-items: center; background: var(--paper);
  --cycle: 8s;
}
.breathe__stage > * { grid-area: 1 / 1; }
.breathe__bowl {
  margin: 0; width: min(46vh, 64vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transform: translateY(-6vh);
  box-shadow: 0 40px 80px -40px rgba(58, 51, 44, 0.35);
  animation: breathe-bowl var(--cycle) ease-in-out infinite paused;
}
.breathe__bowl img { width: 100%; height: 100%; object-fit: cover; }
.breathe__ring {
  width: min(56vh, 78vw); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line);
  transform: translateY(-6vh);
  animation: breathe-ring var(--cycle) ease-in-out infinite paused;
}
.breathe__ring--outer {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  animation-name: breathe-ring-outer;
}
.breathe__cues { align-self: end; margin-bottom: 15vh; display: grid; text-align: center; }
.breathe__line {
  grid-area: 1 / 1; margin: 0; opacity: 0;
  font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1;
  animation: var(--cycle) ease-in-out infinite paused;
}
.breathe__line--in   { animation-name: cue-in; }
.breathe__line--hold { animation-name: cue-hold; }
.breathe__line--out  { animation-name: cue-out; }
.breathe__end { align-self: end; margin: 0 0 7vh; font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.breathe.is-live :is(.breathe__bowl, .breathe__ring, .breathe__line) { animation-play-state: running; }

@keyframes breathe-ring {
  0%, 100% { transform: translateY(-6vh) scale(1); }
  44%, 56% { transform: translateY(-6vh) scale(1.32); }
}
@keyframes breathe-ring-outer {
  0%, 100% { transform: translateY(-6vh) scale(1.08); opacity: 0.15; }
  44%, 56% { transform: translateY(-6vh) scale(1.63); opacity: 0.75; }
}
@keyframes breathe-bowl {
  0%, 100% { transform: translateY(-6vh) scale(1); }
  44%, 56% { transform: translateY(-6vh) scale(1.05); }
}
@keyframes cue-in   { 0% { opacity: 0; } 8%, 36% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes cue-hold { 0%, 42% { opacity: 0; } 46%, 54% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes cue-out  { 0%, 56% { opacity: 0; } 62%, 92% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .breathe__bowl, .breathe__ring, .breathe__line { animation: none; }
  .breathe__line--in { opacity: 1; }
}

/* ─── Who comes here ─── */
.who h2 { max-width: 14ch; margin-bottom: clamp(48px, 6vw, 80px); }
.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.who__grid article { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 28px; }
.who__grid p { color: var(--ink-soft); }

/* ─── Visit ─── */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.visit__photo { margin: 0; aspect-ratio: 3 / 4; padding: 12px; background: var(--white); box-shadow: 0 30px 60px -30px rgba(58, 51, 44, 0.28); }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.visit__text { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.visit address { font-style: normal; font-size: 22px; line-height: 1.6; }
.link-line { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.visit__facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.visit__facts dt { color: var(--accent); margin-bottom: 10px; }
.visit__facts dd { margin: 0; font-size: 17px; line-height: 1.7; }
.visit__facts a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* ─── FAQ ─── */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); border-top: 1px solid var(--line); }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 19px; font-weight: 400;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: 1; color: var(--accent); transition: transform 0.3s ease; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 48px 28px 0; color: var(--ink-soft); }

/* ─── Booking: the close resolves and holds ─── */
.booking {
  background: var(--ink); color: var(--paper); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: clamp(110px, 16vw, 200px) var(--gutter);
}
.booking__logo { width: 44px; height: auto; color: #C9A97E; }
.booking p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.75; color: #D9D0C3; }
.booking a:not(.btn) { color: var(--paper); }
.booking .btn--light { padding: 18px 34px; background: var(--paper); color: var(--ink); }
.booking .btn--light:hover { background: var(--white); color: var(--ink-deep); }
.booking .booking__other { font-size: 15px; }

/* ─── Footer ─── */
.site-foot {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start;
  padding: 56px var(--gutter) 64px; font-size: 14px; line-height: 1.8; color: var(--ink-soft);
}
.site-foot p { margin: 0; }
.site-foot__brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.site-foot__brand svg { width: 28px; height: auto; color: var(--accent); overflow: visible; }
.site-foot p:last-child { text-align: right; }

/* ─── Tablet and phone ─── */
@media (max-width: 900px) {
  .visit, .faq { grid-template-columns: 1fr; }
  .visit__photo { max-width: 320px; width: 100%; }
  .who__grid { grid-template-columns: 1fr; }
  .site-foot { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-foot p:last-child { text-align: center; }
}
@media (max-width: 720px) {
  .sec p, .idea__copy p, .rail p { font-size: 16px; }
  .idea__scrim {
    background: linear-gradient(0deg,
      color-mix(in oklab, var(--paper) 96%, transparent) 0%,
      color-mix(in oklab, var(--paper) 84%, transparent) 46%,
      transparent 72%);
  }
  .idea__video { object-position: 70% 30%; }
  .idea__copy { top: auto; bottom: 32px; translate: none; right: 20px; left: 20px; gap: 14px; }
  .card { min-height: 0; }
  .rail__photo { height: 48vh; }
  .breathe__cues { margin-bottom: 18vh; }
  .breathe__end { padding: 0 20px; font-size: 13px; letter-spacing: 0.18em; text-align: center; }
  .visit__facts { grid-template-columns: 1fr; gap: 24px; }
  .faq__list summary { font-size: 17px; padding: 22px 0; }
  .faq__list details p { padding-right: 0; }
}
