/* ==========================================================================
   MERAKI MOON MASSAGE — refresh · Stylesheet
   Simple, warm, photo-forward. Black + gold + forest green.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--cream);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--sel); }

.wrap { width: min(100% - calc(var(--gutter) * 2), var(--content-max)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-2); }

/* ----- TYPE ------------------------------------------------------------- */
.display { font-family: var(--font-display); font-weight: 500; }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-hero); line-height: var(--lh-display); letter-spacing: -0.005em; }
.h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1); line-height: 1.1; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1.15; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.6; }
.body { color: var(--muted); max-width: var(--measure); }
.body p + p { margin-top: var(--space-2); }
.gold { color: var(--gold); }
.italic { font-style: italic; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: 600; color: var(--gold); }
.center { text-align: center; }

.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head.center { margin-inline: auto; }
.section__head .eyebrow { display: block; margin-bottom: var(--space-2); }

/* ----- BUTTONS ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.04em; padding: 0.95rem 1.7rem; min-height: 48px; border-radius: var(--radius); transition: background var(--ease) 220ms, color var(--ease) 220ms, transform var(--ease) 160ms, border-color var(--ease) 220ms; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }

/* ----- HEADER ----------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: var(--z-header); border-bottom: 1px solid transparent; transition: background var(--ease) 300ms, border-color var(--ease) 300ms; }
.header.is-stuck { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 52px; height: 52px; mix-blend-mode: screen; }
.brand .wordmark { display: none; }
@media (min-width: 30rem) { .brand .wordmark { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.02em; margin-left: 0.6rem; line-height: 1; } }
.nav { display: none; }
@media (min-width: 54rem) {
  .nav { display: flex; gap: clamp(1rem, 2.2vw, 1.9rem); align-items: center; }
  .nav a { font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; transition: color var(--ease) 160ms; position: relative; padding-block: 0.4rem; }
  .nav a:hover { color: var(--cream); }
  .nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--ease) 240ms; }
  .nav a:hover::after { transform: scaleX(1); }
}
.header__cta { display: none; }
@media (min-width: 48rem) { .header__cta { display: inline-flex; } }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: var(--z-skip); background: var(--gold); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 600; transition: top var(--ease) 200ms; }
.skip:focus { top: var(--space-2); }

/* ----- HERO ------------------------------------------------------------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero__eyebrow { margin-bottom: var(--space-3); }
.hero__title { margin-bottom: var(--space-3); }
.hero__sub { max-width: 34ch; margin-bottom: var(--space-4); }
.hero__figure { position: relative; }
.hero__figure img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.hero__figure::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: var(--radius); transform: translate(14px, 14px); pointer-events: none; z-index: -1; }

/* ----- PHILOSOPHY BAND -------------------------------------------------- */
.philosophy { text-align: center; }
.philosophy blockquote { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--fs-h1); line-height: 1.25; max-width: 22ch; margin-inline: auto; color: var(--cream); }
.philosophy .mark { color: var(--gold); }
.philosophy .crest { width: 40px; height: 40px; margin: 0 auto var(--space-4); color: var(--gold); }

/* ----- SPLIT (about) ---------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: -1; } }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; }

/* ----- SERVICES --------------------------------------------------------- */
.cards { display: grid; gap: var(--space-3); }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; }
.card__name { margin-bottom: var(--space-2); }
.card__desc { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; flex: 1; }
.card__note { color: var(--muted); font-size: 0.8rem; font-style: italic; margin-top: var(--space-2); opacity: 0.85; }
.price { display: flex; gap: var(--space-3); margin: var(--space-3) 0; padding-top: var(--space-3); border-top: 1px solid var(--line-soft); }
.price div { display: flex; flex-direction: column; }
.price .dur { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.price .amt { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--gold); }
.card .btn { margin-top: auto; justify-content: center; }

/* ----- GALLERY ---------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); } }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 900ms var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* ----- REVIEWS ---------------------------------------------------------- */
.reviews { text-align: center; }
.stars { color: var(--gold); font-size: 1.5rem; letter-spacing: 0.15em; }
.rating-num { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 600; line-height: 1; color: var(--cream); }
.rating-row { display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-3) 0 var(--space-4); }
.rating-meta { text-align: left; }
.rating-meta strong { display: block; font-size: 1.1rem; color: var(--cream); }
.rating-meta > span { font-size: var(--fs-small); color: var(--muted); }
.rating-meta .stars { display: block; color: var(--gold); font-size: 1.25rem; letter-spacing: 0.12em; margin-bottom: 0.2rem; }

/* ----- VISIT ------------------------------------------------------------ */
.visit__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .visit__grid { grid-template-columns: 1fr 1fr; } }
.info dt { font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.35rem; }
.info dd { margin-bottom: var(--space-3); color: var(--cream); }
.info dd .sub { color: var(--muted); font-size: var(--fs-small); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.6rem 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-small); }
.hours-table td:last-child { text-align: right; color: var(--muted); }
.hours-table tr:first-child td { border-top: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); min-height: 320px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.35) saturate(0.9) brightness(0.92); }

/* ----- FOOTER ----------------------------------------------------------- */
.footer { background: #0C0D08; padding-block: var(--space-6) var(--space-4); border-top: 1px solid var(--line-soft); }
.footer__grid { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-5); } }
.footer__logo img { width: 96px; height: 96px; mix-blend-mode: screen; margin-bottom: var(--space-2); }
.footer p, .footer li, .footer a { font-size: var(--fs-small); color: var(--muted); line-height: 1.8; }
.footer a:hover { color: var(--gold); }
.footer h4 { font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: var(--space-2); }
.footer__legal { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* ----- STICKY MOBILE DOCK ---------------------------------------------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-dock); display: grid; grid-template-columns: 1fr 1fr; background: color-mix(in srgb, var(--bg) 95%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--gold); transform: translateY(110%); transition: transform var(--ease) 320ms; padding-bottom: env(safe-area-inset-bottom); }
.dock.is-visible { transform: translateY(0); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 58px; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.04em; color: var(--cream); }
.dock a:first-child { color: var(--gold); }
.dock a + a { border-left: 1px solid var(--line-soft); }
@media (min-width: 48rem) { .dock { display: none; } }
@media (max-width: 47.99rem) { .has-dock { padding-bottom: 58px; } }

/* ----- REVEAL / MOTION -------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .gallery figure:hover img { transform: none; }
}
