/* =========================================================================
   Spa template: design system (calm, stone + sage, light serif)
   The :root block is REPLACED at render time with the site's derived tokens
   (theme.ts). Everything else is the template.
   ========================================================================= */
:root {
  --bg: #f3efe8;
  --bg-rgb: 243, 239, 232;
  --surface: #ebe6dd;
  --surface-2: #e2dcd1;
  --ink: #263129;
  --ink-rgb: 38, 49, 41;
  --ink-soft: #4f5a52;
  --muted: #86908a;
  --accent: #7a9a7e;
  --accent-rgb: 122, 154, 126;
  --accent-deep: #5f7f64;
  --accent-soft: #dfe6dd;
  --accent-ink: #ffffff;
  --error: #b5533f;
  --line: rgba(var(--ink-rgb), 0.12);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --arch: 999px 999px 0 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.7; font-weight: 300;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); font-weight: 300; }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1rem; }
.accent-text { font-style: italic; color: var(--accent-deep); }
.eyebrow { display: block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-deep); font-weight: 500; margin: 0 0 1.1rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--muted); }
.ico { width: 1.05em; height: 1.05em; fill: currentColor; vertical-align: -0.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface); }
.section__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__head .lead { margin: 1rem auto 0; }
.section__link { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: .25rem; margin-top: 1.4rem; }
.section__link .ico { transition: transform .35s var(--ease); }
.section__link:hover .ico { transform: translateX(4px); }
.rule { width: 3rem; height: 1px; background: var(--accent); margin: 0 auto 1.4rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 2rem; border-radius: 999px; font-weight: 500; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn--accent { background: var(--ink); color: var(--bg); }
.btn--accent:hover { background: var(--accent-deep); color: var(--accent-ink); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(var(--ink-rgb), .35); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--accent-ink); }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.nav.scrolled { background: rgba(var(--bg-rgb), .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav__inner { max-width: var(--container); margin-inline: auto; padding: 1.3rem var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 2rem; }
.nav.scrolled .nav__inner { padding-block: .85rem; }
.nav__logo { display: block; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.5rem); line-height: 1.12; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; min-width: 0; max-width: 24ch; }
.nav__logo em { font-style: italic; text-transform: none; color: var(--accent-deep); font-weight: 400; letter-spacing: 0; }
.nav__logo img { height: 2.2rem; width: auto; display: block; }
.nav__links { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.nav__links a { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); position: relative; padding: .3rem 0; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent-deep); transition: width .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--ink); }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.nav__cta { padding: .75rem 1.4rem; font-size: .72rem; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.2px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease), opacity .35s; }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger.open span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 6.5rem var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-2%); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu__links a { font-family: var(--serif); font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.05; font-weight: 300; }
.mobile-menu__links a.is-active { color: var(--accent-deep); font-style: italic; }
.mobile-menu__links .btn { align-self: flex-start; margin-top: 1rem; font-family: var(--sans); font-size: .8rem; }
.mobile-menu__foot { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }
.mobile-menu__foot a { display: inline-flex; gap: .4rem; align-items: center; }
body.menu-open { overflow: hidden; }

/* ---------- hero (centered, arch image) ---------- */
.hero { padding: clamp(8rem, 17vw, 12rem) 0 0; text-align: center; position: relative; }
.hero__title { margin: 0 auto 1.4rem; max-width: 14ch; }
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 2.2rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero__arch { position: relative; margin: clamp(3rem, 6vw, 5rem) auto 0; max-width: 1180px; padding-inline: var(--gutter); }
.hero__img { aspect-ratio: 21 / 10; border-radius: var(--arch); overflow: hidden; background: var(--surface-2); }
.hero__img img, .hero__img video { width: 100%; height: 100%; object-fit: cover; }
.hero__pill {
  position: absolute; left: 50%; bottom: -1.4rem; transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .75rem 1.4rem;
  display: inline-flex; align-items: center; gap: .8rem; white-space: nowrap; font-size: .82rem; letter-spacing: .06em; box-shadow: 0 20px 40px -24px rgba(var(--ink-rgb), .35);
}
.hero__pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.hero__pill strong { font-weight: 500; }
@media (max-width: 720px) { .hero__img { aspect-ratio: 4 / 5; } .hero__pill { font-size: .76rem; padding: .6rem 1.1rem; max-width: calc(100% - 2rem); white-space: normal; text-align: left; } }

/* ---------- intro (three quiet pillars) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; text-align: center; }
.pillar__num { font-family: var(--serif); font-style: italic; color: var(--accent-deep); font-size: 1.3rem; display: block; margin-bottom: .8rem; }
.pillar h3 { margin-bottom: .6rem; }
.pillar p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- treatments (two-column hairline list) ---------- */
.treatments { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 6vw, 5rem); }
.treatment { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.treatment__cat { grid-column: 1 / -1; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-deep); font-weight: 500; }
.treatment__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.treatment__price { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.treatment__desc { grid-column: 1; color: var(--ink-soft); font-size: .93rem; }
.treatment__meta { grid-column: 1; color: var(--muted); font-size: .78rem; font-style: italic; font-family: var(--serif); font-size: .98rem; }
@media (max-width: 760px) { .treatments { grid-template-columns: 1fr; } }

/* ---------- rituals / packages ---------- */
.rituals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.ritual { background: var(--bg); border: 1px solid var(--line); padding: 2.4rem 2rem 2.2rem; text-align: center; display: flex; flex-direction: column; gap: .8rem; border-radius: 2px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); position: relative; }
.ritual:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(var(--ink-rgb), .4); }
.ritual__img { aspect-ratio: 1; width: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto .6rem; background: var(--accent-soft); }
.ritual__img img { width: 100%; height: 100%; object-fit: cover; }
.ritual h3 { font-size: 1.6rem; }
.ritual__desc { color: var(--ink-soft); font-size: .95rem; margin: 0; flex: 1; }
.ritual__price { font-family: var(--serif); font-size: 2.2rem; line-height: 1; margin-top: .6rem; }
.ritual__meta { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ritual .btn { margin-top: .8rem; align-self: center; }
@media (max-width: 960px) { .rituals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .rituals { grid-template-columns: 1fr; } }

/* ---------- quiet band (image + one large quote) ---------- */
.band { position: relative; min-height: clamp(420px, 66vh, 700px); display: grid; place-items: center; overflow: hidden; }
.band img, .band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 36, 32, .35), rgba(30, 36, 32, .6)); }
.band__inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 3rem var(--gutter); max-width: 900px; }
.band__inner .eyebrow { color: #fff; opacity: .8; }
.band__inner h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.8rem); font-style: italic; font-weight: 300; }
.band__inner p { margin-top: 1.4rem; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }

/* ---------- practitioners (arch portraits) ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team__card { text-align: center; }
.team__photo { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--surface-2); margin: 0 auto 1.2rem; max-width: 300px; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.team__card:hover .team__photo img { transform: scale(1.04); }
.team__photo--empty { display: grid; place-items: center; font-family: var(--serif); font-size: 3.5rem; color: var(--accent-deep); background: var(--accent-soft); }
.team__name { font-family: var(--serif); font-size: 1.6rem; }
.team__title { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.team__bio { font-size: .93rem; color: var(--ink-soft); margin: .7rem auto 0; max-width: 30ch; }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } .team__name { font-size: 1.3rem; } }

/* ---------- the space (three arches) ---------- */
.space { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: end; }
.space__tile { border-radius: var(--arch); overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; position: relative; padding: 0; cursor: zoom-in; text-align: left; }
.space__tile:nth-child(2) { aspect-ratio: 3 / 4.6; }
.space__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.space__tile:hover img { transform: scale(1.04); }
.space__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem 1rem; text-align: center; background: linear-gradient(180deg, transparent, rgba(0,0,0,.5)); color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transition: opacity .4s var(--ease); }
.space__tile:hover .space__cap { opacity: 1; }
@media (max-width: 720px) { .space { grid-template-columns: repeat(2, 1fr); gap: .8rem; } .space__tile:nth-child(2) { aspect-ratio: 3 / 4; } }

/* ---------- kind words ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.quote { text-align: center; padding: 0 1rem; }
.quote__text { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; font-style: italic; margin-bottom: 1rem; }
.quote__name { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: .14em; font-size: .8rem; margin-bottom: 1rem; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.hours { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; letter-spacing: .04em; }
.hours li.today { color: var(--accent-deep); font-weight: 500; }
.hours li span:last-child { color: var(--ink-soft); }
.hours li.today span:last-child { color: var(--accent-deep); }
.visit__details { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.6rem; }
.visit__details a, .visit__details p { display: flex; align-items: center; gap: .7rem; margin: 0; }
.visit__details .ico { color: var(--accent-deep); }
.map-frame { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame--empty { display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted); font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .map-frame { aspect-ratio: 4 / 3; border-radius: 24px; } }

/* ---------- closing ---------- */
.cta { background: var(--ink); color: var(--bg); padding: clamp(4rem, 9vw, 7rem) var(--gutter); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 70vw; height: 70vw; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); top: -35vw; left: 50%; transform: translateX(-50%); pointer-events: none; }
.cta .eyebrow { color: var(--accent); }
.cta h2 { color: var(--bg); position: relative; }
.cta p { position: relative; max-width: 50ch; margin: 1.2rem auto 2.2rem; opacity: .8; }
.cta .btn { position: relative; }

/* ---------- footer ---------- */
.footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand { font-family: var(--serif); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .04em; }
.footer__brand em { font-style: italic; text-transform: none; color: var(--accent-deep); letter-spacing: 0; }
.footer__brand img { height: 2.2rem; width: auto; }
.footer__blurb { color: var(--ink-soft); max-width: 34ch; margin-top: .8rem; font-size: .95rem; }
.footer h4 { font-family: var(--sans); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 500; }
.footer__links { display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .45rem; }
.footer__links a:hover { color: var(--accent-deep); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in, html.reveal-all .reveal { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-stagger.is-in > *, html.reveal-all .reveal-stagger > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .3s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .4s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .5s; }
html:not(.js) .reveal, html:not(.js) .reveal-stagger > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(30, 36, 32, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; padding: 2rem; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255,255,255,.25); }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 1px; width: 0; background: var(--accent-deep); z-index: 60; }
