/* ============================================================
   Bluff Beach Jungle Spa — Shared Stylesheet
   Mobile-first, performance-focused, accessible.
   ============================================================ */

:root {
  --green-900: #0f2a1d;
  --green-800: #14402c;
  --green-700: #1f5a3d;
  --green-500: #3a8a5f;
  --green-400: #5fb084;
  --sand-50:   #fbf7ef;
  --sand-100:  #f3ead7;
  --sand-200:  #e6d6b0;
  --gold-500:  #c69749;
  --gold-600:  #a87a30;
  --ink-900:   #1a1a1a;
  --ink-700:   #333;
  --ink-500:   #5a5a5a;
  --white:     #ffffff;
  --shadow-md: 0 10px 30px rgba(15, 42, 29, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 42, 29, 0.18);
  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1180px;
  --serif:     'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(15,42,29,.10);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img, picture, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-900);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }
a  { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ============================ NAV ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(15, 42, 29, .08);
}
.nav {
  display: flex; align-items: center; justify-content: flex-start;
  padding: .55rem 1.5rem; max-width: none; margin: 0;
  gap: 1rem;
}
.brand {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: var(--green-900); display: flex; align-items: center; gap: .55rem;
  flex-shrink: 0; white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green-400), var(--green-800));
  box-shadow: inset 0 0 0 2px var(--sand-100);
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; display: block;
  box-shadow: 0 2px 8px rgba(15,42,29,.18), inset 0 0 0 2px var(--sand-100);
  background: var(--sand-50);
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 0; color: var(--green-900);
  margin-left: auto;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: .65rem; align-items: center; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: nowrap; }
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--green-900);
  position: relative; padding: .25rem 0; white-space: nowrap;
}
.nav-links .dropdown-toggle { font-size: .82rem; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold-500); transform: scaleX(0);
  transform-origin: right; transition: transform .3s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* The whole .nav-links cluster is now right-aligned via margin-left:auto on
   the <ul>, so the lang-switch no longer needs its own auto margin. */
.nav-links .lang-switch { margin-left: 0; }
.nav-links .lang-switch + li { margin-left: 0; }

.nav-cta {
  background: var(--green-700); color: var(--sand-50) !important;
  padding: .5rem 1.05rem; border-radius: 999px; font-weight: 600;
  font-size: .85rem; letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(15, 42, 29, .18);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover {
  background: var(--green-800); color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 42, 29, .22);
}
.nav-cta::after { display: none; }

/* On narrower desktops, hide the brand text and keep just the logo
   so the long nav (10+ items + switcher + CTA) stays on a single line. */
@media (min-width: 1101px) and (max-width: 1280px) {
  .brand { font-size: 0; gap: 0; }       /* hides the text node */
  .brand-logo { width: 40px; height: 40px; }
  .nav { gap: .75rem; }
  .nav-links { gap: .55rem; }
  .nav-links a, .nav-links .dropdown-toggle { font-size: .78rem; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; flex: none;
    background: var(--sand-50); padding: .5rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(15, 42, 29, .08);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; }
  .nav-links li { border-top: 1px solid rgba(15,42,29,.06); }
  .nav-links li:last-child { margin-left: 0; }
  .nav-links a { display: block; padding: .9rem 0; }
  .nav-cta { margin-top: .5rem; text-align: center; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 56vh; min-height: 56svh;
  display: grid; place-items: center; text-align: center;
  color: var(--white); overflow: hidden; isolation: isolate;
  background-color: var(--green-900);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.0); animation: heroZoom 18s ease-out forwards;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,42,29,.20) 0%, rgba(15,42,29,.40) 60%, rgba(15,42,29,.65) 100%);
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }

/* ---- Cross-fading slideshow (injected on every hero via JS) ---- */
.hero-slides {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transform: scale(1.0);
  animation: heroSlide 48s linear infinite;
  will-change: opacity, transform;
  image-rendering: -webkit-optimize-contrast;
}
/* Home hero is shorter so the cover-cropped image keeps most of its content visible. */
.hero .hero-slide { background-size: cover; }
.hero-slide:nth-child(1) { animation-delay:  0s; }
.hero-slide:nth-child(2) { animation-delay:  6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero-slide:nth-child(6) { animation-delay: 30s; }
.hero-slide:nth-child(7) { animation-delay: 36s; }
.hero-slide:nth-child(8) { animation-delay: 42s; }

/* Subtle Ken Burns: at most 2% zoom, so images stay close to native resolution. */
@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.02); }
  3%   { opacity: 1; }
  12%  { opacity: 1; transform: scale(1.00); }
  15%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.00); }
}

/* When the slideshow is present, hide the static background layers
   so the slides become the sole image source. (JS also removes the
   static .hero-bg node for browsers without :has() support.) */
.hero:has(.hero-slides) .hero-bg { display: none; }
.page-hero:has(.hero-slides)::before { display: none; }
.hero.has-slides .hero-bg { display: none; }
.page-hero.has-slides::before { display: none; }

/* Slides inside page heroes are contained (whole image visible) rather than cropped. */
.page-hero .hero-slide { background-size: contain; }

/* On phones and tablets the page-hero is much narrower than the source images,
   so `contain` leaves wide letterbox bands around each slide. Two crossfading
   slides with different aspect ratios then appear to stack on top of each other
   inside the frame. Switching to `cover` on smaller screens lets each slide
   fully fill the hero so only one image is visible at a time during the fade. */
@media (max-width: 1024px) {
  .page-hero .hero-slide { background-size: cover; }
  .page-hero::before { background-size: cover; }
}

.hero-inner { max-width: 880px; padding: 6rem 1.5rem 5rem; }
.hero h1 {
  color: var(--white); font-size: clamp(2.4rem, 6vw, 4.5rem);
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
  animation: fadeUp .9s .15s ease both;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; margin: 0 auto 2rem;
  color: rgba(255,255,255,.92); animation: fadeUp .9s .35s ease both;
}
.hero-eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase; color: var(--sand-100);
  padding: .35rem .9rem; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; margin-bottom: 1.25rem;
  animation: fadeUp .9s .05s ease both;
}
.hero-cta { display: inline-flex; gap: .8rem; flex-wrap: wrap; justify-content: center; animation: fadeUp .9s .55s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Rotating headline word */
.rotate-word {
  display: inline-block;
  color: var(--gold-500);
  font-style: italic;
  min-width: 4ch;
  transition: opacity .4s ease, transform .4s ease, filter .4s ease;
  will-change: opacity, transform;
}
.rotate-word.rw-out {
  opacity: 0;
  transform: translateY(-14px) scale(.96);
  filter: blur(2px);
}
.rotate-word.rw-in {
  animation: rwIn .5s ease both;
}
@keyframes rwIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rotate-word, .rotate-word.rw-in, .rotate-word.rw-out {
    animation: none; transition: none; opacity: 1; transform: none; filter: none;
  }
}

.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--gold-500); color: var(--green-900); }
.btn-primary:hover { background: var(--gold-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-dark { background: var(--green-800); color: var(--sand-50); }
.btn-dark:hover { background: var(--green-900); color: var(--white); }

/* ============================ SECTIONS ============================ */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: .8rem;
}

.alt-bg { background: var(--sand-100); }
.dark-bg { background: var(--green-900); color: var(--sand-100); }
.dark-bg h1, .dark-bg h2, .dark-bg h3 { color: var(--sand-50); }
.dark-bg .eyebrow { color: var(--gold-500); }

/* ============================ CARDS / GRID ============================ */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Facials grid: force a clean 2-column layout (2 per row, 2 rows) and give
   the facial portraits a larger, taller frame without cropping. */
.facials-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .facials-grid { grid-template-columns: repeat(2, 1fr); }
}
.facials-grid .card img {
  aspect-ratio: 4/5;
  object-fit: contain;
  width: 100%;
  max-height: 560px;
  background: var(--sand-50);
}

/* Therapist team grid: 3 cards on top, remaining cards centered below. */
.therapist-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .therapist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .therapist-grid { grid-template-columns: repeat(6, 1fr); }
  .therapist-grid > .card { grid-column: span 2; }
  /* Center the last row when it has 1 or 2 cards. */
  .therapist-grid > .card:nth-last-child(1):nth-child(3n + 2) { grid-column: 4 / span 2; }
  .therapist-grid > .card:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
  .therapist-grid > .card:nth-last-child(1):nth-child(3n + 3) { grid-column: 5 / span 2; }
}

.card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card img { aspect-ratio: 4/3; object-fit: contain; width: 100%; background: var(--sand-50); }
.card-body { padding: 1.5rem 1.5rem 1.75rem; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--ink-500); font-size: .96rem; margin-bottom: 1rem; }

/* Therapist cards: center the eyebrow tagline, name, and the gold subtitle.
   text-indent offsets the visual drift caused by letter-spacing so the line
   appears truly centered. */
#therapist-team .card-body .eyebrow,
#therapist-team .card-body h3,
#therapist-team .card-body h3 + p {
  text-align: center !important;
  display: block;
  text-indent: .18em;
}
#therapist-team .card-body h3 { text-indent: 0; }
.card-link {
  font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  color: var(--green-700); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .35rem;
}
.card-link::after { content: "→"; transition: transform .25s; }
.card-link:hover::after { transform: translateX(4px); }

/* ============================ SPLIT / FEATURE ============================ */
.split {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: auto; display: block; }

/* ============================ PRICE LIST ============================ */
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px dashed rgba(15,42,29,.18);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .name { font-family: var(--serif); font-size: 1.2rem; color: var(--green-900); }
.price-list .desc { display: block; color: var(--ink-500); font-size: .9rem; font-weight: 400; }
.price-list .price { font-weight: 700; color: var(--gold-600); white-space: nowrap; font-size: 1.05rem; }

/* ============================ GALLERY ============================ */
.gallery {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 220px; grid-auto-flow: dense;
}
.gallery a,
.gallery .zoomable { position: relative; overflow: hidden; border-radius: var(--radius); display: block; cursor: zoom-in; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery a:hover img,
.gallery .zoomable:hover img { transform: scale(1.07); }
.gallery .tall  { grid-row: span 2; }
.gallery .wide  { grid-column: span 2; }

/* Scroll-driven border + zoom for the Jungle Hut gallery.
   Each tile fades from a thin sand border / slightly zoomed-out image to a
   bold gold border + soft glow + full-bleed zoom as it crosses the viewport,
   then eases back out. Uses CSS scroll-driven animations where supported,
   with a JS IntersectionObserver fallback (.in-view) for Safari/Firefox. */
#jungle-cabana .gallery .zoomable {
  border: 2px solid rgba(212, 175, 55, 0);
  box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  transition: border-color .5s ease, box-shadow .5s ease, transform .6s ease;
  transform: scale(.94);
  will-change: transform, border-color, box-shadow;
}
#jungle-cabana .gallery .zoomable img {
  transform: scale(1);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
/* JS fallback: when tile is intersecting the viewport */
#jungle-cabana .gallery .zoomable.in-view {
  transform: scale(1);
  border-color: rgba(212, 175, 55, .85);
  box-shadow: 0 14px 38px rgba(15, 42, 29, .22), 0 0 0 4px rgba(212, 175, 55, .12);
}
#jungle-cabana .gallery .zoomable.in-view img { transform: scale(1.08); }
#jungle-cabana .gallery .zoomable:hover img { transform: scale(1.14); }

/* Native scroll-driven animation (Chrome/Edge). Overrides the JS fallback
   so the effect tracks scroll position continuously, not just on/off. */
@supports (animation-timeline: view()) {
  #jungle-cabana .gallery .zoomable {
    animation: hutTileFrame linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  #jungle-cabana .gallery .zoomable img {
    animation: hutTileZoom linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}
@keyframes hutTileFrame {
  0%   { transform: scale(.92); border-color: rgba(212, 175, 55, 0);
         box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  45%, 55% { transform: scale(1); border-color: rgba(212, 175, 55, .9);
         box-shadow: 0 16px 42px rgba(15, 42, 29, .25), 0 0 0 5px rgba(212, 175, 55, .14); }
  100% { transform: scale(.92); border-color: rgba(212, 175, 55, 0);
         box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
}
@keyframes hutTileZoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #jungle-cabana .gallery .zoomable,
  #jungle-cabana .gallery .zoomable img { animation: none !important; transform: none !important; transition: none !important; }
}

/* ============================ TESTIMONIALS ============================ */
.quote {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-md);
  font-family: var(--serif); font-size: 1.15rem; color: var(--green-900);
  position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: -1.4rem; left: 1rem;
  font-size: 5rem; color: var(--gold-500); line-height: 1;
}
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--sans); font-size: .85rem; color: var(--ink-500); letter-spacing: .12em; text-transform: uppercase; }

/* ============================ CTA BANNER ============================ */
.cta-banner {
  position: relative; padding: 5rem 1rem; text-align: center;
  background-size: cover; background-position: center;
  color: var(--white); isolation: isolate;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,42,29,.7), rgba(15,42,29,.85));
}
.cta-banner h2 { color: var(--white); }

/* ============================ FOOTER ============================ */
footer.site-footer {
  background: var(--green-900); color: var(--sand-100);
  padding: 3.5rem 0 5.5rem; font-size: .95rem;
  word-break: break-word;
}
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: var(--sand-50); font-family: var(--sans); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: var(--sand-100); }
.site-footer a:hover { color: var(--gold-500); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; text-align: center; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ============================ PAGE HEADER (non-home pages) ============================ */
.page-hero {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  padding: 6rem 1rem 3.5rem;
  text-align: center;
  color: var(--white);
  background-color: var(--green-900);
  background-size: 0 0;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
  overflow: hidden;
}
/* Animated image layer — pulls the inline background-image of the parent and zooms it out (Ken Burns). */
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: inherit;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  animation: phZoom 16s ease-out forwards;
  filter: saturate(1.05);
  will-change: transform;
}
/* Glow + gradient overlay with a slow pulse. */
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 30%, rgba(95,176,132,.16), transparent 70%),
    linear-gradient(180deg, rgba(15,42,29,.30) 0%, rgba(15,42,29,.58) 100%);
  animation: phGlow 7s ease-in-out infinite alternate;
}
@keyframes phZoom { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes phGlow { from { opacity: .9; } to { opacity: 1; } }

.page-hero h1 {
  color: var(--white);
  text-shadow: 0 2px 22px rgba(0,0,0,.4);
  animation: fadeUp .9s .25s ease both;
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: var(--gold-500);
  margin: 1.2rem auto .6rem;
  border-radius: 999px;
  transform-origin: center;
  animation: widen 1.1s .75s cubic-bezier(.2,.7,.2,1) both;
}
.page-hero p  {
  color: rgba(255,255,255,.94);
  max-width: 640px; margin: 0 auto;
  animation: fadeUp .9s .45s ease both;
}

.breadcrumb {
  font-size: .82rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sand-200); margin-bottom: .9rem;
  animation: fadeUp .7s .05s ease both;
}
.breadcrumb a { color: var(--sand-100); }

@keyframes widen { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* ============================ FORM ============================ */
.form { display: grid; gap: 1rem; max-width: 560px; margin: 0 auto; }
.form label { font-size: .85rem; font-weight: 600; color: var(--green-900); display: block; margin-bottom: .35rem; letter-spacing: .04em; }
.form input, .form textarea, .form select {
  width: 100%; padding: .85rem 1rem; border: 1px solid rgba(15,42,29,.18);
  border-radius: 12px; font: inherit; background: var(--white); color: var(--ink-900);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(95,176,132,.18);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ============================ REVEAL ANIMATIONS ============================ */
/* Reveal: kept as a no-op class so existing markup still works.
   All content is always visible — no scroll dependency, no fade. */
.reveal, .reveal-start, .reveal.in-view { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================ PROMO IMAGE (show full graphic) ============================ */
.promo {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .promo { grid-template-columns: 1.05fr 1fr; } }
.promo-image {
  background: var(--sand-100);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.promo-image img {
  width: 100%; height: auto; max-height: 560px;
  object-fit: contain; border-radius: var(--radius);
}

/* ============================ FLOATING BOOK BUTTON ============================ */
.floating-book {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  background: #25D366; color: #fff; padding: .8rem 1.1rem; border-radius: 999px;
  font-weight: 700; box-shadow: var(--shadow-lg); display: inline-flex; gap: .5rem; align-items: center;
  font-size: .95rem; max-width: calc(100vw - 2rem);
}
.floating-book:hover { background: #1ebe5a; color: #fff; transform: translateY(-2px); }
.floating-book svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 480px) {
  .floating-book { padding: .75rem .9rem; font-size: .85rem; }
}

/* ============================ UTILITIES ============================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pill { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--sand-100); color: var(--green-800); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }


/* ============================ LIGHTBOX (click-to-magnify) ============================ */
.zoomable, .card img, .split-image img, .promo-image img, .gs-logo img, .gs-storefront img { cursor: zoom-in; }

/* Hover-zoom: smoothly scale up images when the mouse rolls over them.
   The card / wrapper hides overflow so the scaled image stays contained. */
.card, .split-image, .promo-image, .gs-logo, .gs-storefront { overflow: hidden; }
.card img,
.split-image img,
.promo-image img,
.gs-logo img,
.gs-storefront img,
.zoomable {
  transition: transform .45s ease;
  transform-origin: center center;
  will-change: transform;
}
.card:hover img,
.split-image:hover img,
.promo-image:hover img,
.gs-logo:hover img,
.gs-storefront:hover img,
.zoomable:hover { transform: scale(1.08); }

/* Opt-out: images marked .no-zoom (e.g. decorative overlays) stay put and
   never show the zoom-in cursor or trigger the lightbox. */
.no-zoom,
.split-image img.no-zoom,
.card img.no-zoom,
.promo-image img.no-zoom { cursor: default; transition: none; }
.split-image:hover img.no-zoom,
.card:hover img.no-zoom,
.promo-image:hover img.no-zoom { transform: translateY(-50%); }

/* ---- Home Welcome split: photo with overlaid circular logo badge ---- */
.home-hero-img__bg {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.home-hero-img__logo {
  position: absolute;
  top: 50%; right: 5%;
  transform: translateY(-50%);
  width: clamp(78px, 26%, 180px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  pointer-events: none;
}
@media (max-width: 540px) {
  .home-hero-img__logo { right: 4%; width: clamp(70px, 24%, 130px); padding: 4px; }
}

/* Card already lifts on hover — keep both effects working together. */
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: reduce) {
  .card img, .split-image img, .promo-image img,
  .gs-logo img, .gs-storefront img, .zoomable { transition: none; }
  .card:hover img, .split-image:hover img, .promo-image:hover img,
  .gs-logo:hover img, .gs-storefront:hover img, .zoomable:hover { transform: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 18, 14, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; transition: opacity .25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 96vw; max-height: 92vh; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  cursor: zoom-out; background: #000;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }
body.lb-open { overflow: hidden; }

/* ============================ BIO MODAL (native <dialog>) ============================ */
dialog.bio-modal {
  border: 0; padding: 0; max-width: min(960px, 94vw);
  width: 100%; max-height: 90vh;
  border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink-900);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow: hidden;
}
dialog.bio-modal::backdrop {
  background: rgba(8, 18, 14, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.bio-modal[open] { animation: bioModalIn .25s ease-out; }
@keyframes bioModalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bio-modal-inner {
  display: grid; grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto;
}
.bio-modal-image {
  background: var(--sand-50);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.bio-modal-image img {
  width: 100%; height: auto; max-height: 60vh;
  object-fit: contain; display: block;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: 0 8px 28px rgba(15, 42, 29, .18), 0 0 0 1px rgba(212, 175, 55, .35);
}
.bio-modal-body { padding: 2rem 2rem 2.25rem; text-align: center; }
.bio-modal-body h2 { margin-top: .25rem; }
.bio-modal-body > .eyebrow { display: block; }
.bio-modal-body ul,
.bio-modal-body ol { display: inline-block; text-align: left; margin-left: auto; margin-right: auto; }
.bio-modal-body p:last-of-type { margin-bottom: 0; }
.bio-close {
  position: absolute; top: .75rem; right: .9rem;
  width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: rgba(15, 42, 29, .08);
  color: var(--green-900); font-size: 1.6rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
}
.bio-close:hover { background: rgba(15, 42, 29, .18); }
/* Card-link reset for button-rendered links inside cards */
button.card-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--gold-700);
}
@media (min-width: 720px) {
  .bio-modal-image img { max-height: 70vh; height: auto; width: 100%; object-fit: contain; }
}
body.bio-open { overflow: hidden; }

/* ============================ GIFT SHOP LOGO ============================ */
.gs-logo {
  display: flex; justify-content: center; margin: 0 auto 2rem;
  max-width: 320px;
}
.gs-logo img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.gs-storefront { margin: 2.5rem auto; max-width: 960px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.gs-storefront img { width: 100%; height: auto; display: block; }


/* ============================ SERVICES PRICE STRIP ============================ */
.price-strip {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center;
  margin: .8rem 0 1.2rem; padding: .8rem 1rem;
  background: var(--sand-100); border-left: 4px solid var(--gold-500);
  border-radius: 8px; font-size: .95rem;
}
.price-strip strong { color: var(--green-900); font-family: var(--serif); font-size: 1.05rem; }
.price-strip .tier { color: var(--ink-500); }
.price-strip .tier b { color: var(--gold-600); font-weight: 700; }
.price-strip .sep { color: rgba(15,42,29,.25); }

.includes-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.includes-list li {
  position: relative; padding: .35rem 0 .35rem 1.6rem;
  line-height: 1.55;
}
.includes-list li::before {
  content: "\2728"; position: absolute; left: 0; top: .35rem;
  color: var(--gold-500); font-size: .95rem;
}

.spaces-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .spaces-grid { grid-template-columns: 1fr 1fr; } }
.space-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 2rem; box-shadow: var(--shadow-md);
  border-top: 4px solid var(--green-700);
}
.space-card.premium { border-top-color: var(--gold-500); }
.space-card h3 { margin-bottom: .4rem; }
.space-card .badge {
  display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; padding: .25rem .7rem; border-radius: 999px;
  background: var(--green-700); color: var(--sand-50); margin-bottom: .6rem;
}
.space-card.premium .badge { background: var(--gold-500); color: var(--green-900); }
.space-card .badge-location {
  display: inline-block; font-size: .8rem; color: var(--ink-500);
  margin-left: .55rem; margin-bottom: .6rem; vertical-align: middle;
}
.space-card .badge-location a { color: var(--green-700); text-decoration: underline; }
.space-card .badge-location a:hover { color: var(--gold-600); }


/* ============================ REVIEWS ============================ */
.stars { color: var(--gold-500); letter-spacing: .12em; font-size: 1.1rem; line-height: 1; }
.review-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: .6rem;
  border-top: 3px solid var(--gold-500);
}
.review-card .review-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .6rem; font-size: .82rem; color: var(--ink-500);
}
.review-card .review-meta .author { font-weight: 700; color: var(--green-900); font-size: .95rem; }
.review-card blockquote {
  margin: 0; font-family: var(--serif); font-size: 1.05rem;
  color: var(--ink-900); line-height: 1.55;
}
.review-summary {
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center;
  justify-content: center; padding: 1.5rem 1.8rem; margin: 0 auto 2.5rem;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  max-width: 720px; text-align: center;
}
.review-summary .big-rating {
  font-family: var(--serif); font-size: 3rem; font-weight: 700;
  color: var(--green-900); line-height: 1;
}
.review-summary .big-rating span { font-size: 1.4rem; color: var(--ink-500); font-weight: 500; }


/* ============================ NAV DROPDOWN ============================ */
.nav-links li.has-dropdown { position: relative; }
.nav-links .dropdown-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; padding: .25rem 0;
  font: inherit; color: var(--green-900); cursor: pointer;
  font-size: .95rem; font-weight: 500;
}
.nav-links .dropdown-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold-500); transform: scaleX(0);
  transform-origin: right; transition: transform .3s ease;
}
.nav-links li.has-dropdown:hover .dropdown-toggle::after,
.nav-links .dropdown-toggle[aria-expanded="true"]::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-links .dropdown-toggle .caret {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .25s ease;
}
.nav-links li.has-dropdown:hover .caret,
.nav-links .dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: 100%; left: 0; right: auto;
  transform: translateY(-6px);
  min-width: 240px;
  max-width: min(320px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid rgba(15,42,29,.08); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: .6rem 0;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  max-height: 70vh; overflow-y: auto;
}
/* Right-side dropdowns flip so they don't clip the viewport edge. */
.nav-links li.has-dropdown.dd-right .dropdown-menu { left: auto; right: 0; }
/* Invisible hover bridge so cursor doesn't fall into a gap between
   the toggle and the menu and accidentally close the dropdown. */
.nav-links li.has-dropdown::before {
  content: ""; position: absolute; top: 100%; left: 0; right: 0;
  height: 18px; pointer-events: none;
}
.nav-links li.has-dropdown:hover::before,
.nav-links li.has-dropdown.open::before { pointer-events: auto; }
.nav-links li.has-dropdown:hover .dropdown-menu,
.nav-links li.has-dropdown:focus-within .dropdown-menu,
.nav-links li.has-dropdown.open .dropdown-menu,
.dropdown-menu.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(8px);
}
.nav-links li.has-dropdown.open .caret { transform: rotate(180deg); }
.dropdown-menu li { border-top: 0 !important; }
.dropdown-menu a {
  display: block; padding: .55rem 1.2rem; font-size: .92rem;
  color: var(--ink-900); white-space: nowrap;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover, .dropdown-menu a:focus {
  background: var(--sand-100); color: var(--green-900);
}
.dropdown-menu .dd-header {
  padding: .35rem 1.2rem .25rem; font-size: .7rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-600); font-weight: 700; pointer-events: none;
}
.dropdown-menu .dd-divider {
  height: 1px; margin: .35rem 0; background: rgba(15,42,29,.08);
}

/* Anchor scroll offset for sticky header */
[id="signature"], [id="classic-swedish"], [id="spaces"],
[id="sweetest"], [id="swedish"], [id="hot-chocolate"], [id="coco-loco"],
[id="bamboo"], [id="hot-stone"], [id="thai-yoga"],
[id="raindrop"], [id="sound-healing"], [id="facials"],
[id="dream-yoga"], [id="esther-bio"], [id="pilates-yoga"] { scroll-margin-top: 90px; }

@media (max-width: 1024px) {
  .nav-links li.has-dropdown { width: 100%; }
  .nav-links .dropdown-toggle { width: 100%; justify-content: space-between; padding: .9rem 0; }
  .dropdown-menu {
    position: static; transform: none; min-width: 0; max-width: none; width: 100%;
    box-shadow: none; border: 0; border-radius: 0;
    background: rgba(15, 42, 29, 0.04);
    max-height: 0; overflow: hidden; padding: 0;
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: max-height .3s ease, padding .3s ease;
  }
  .dropdown-menu.open { max-height: 70vh; padding: .4rem 0; overflow-y: auto; }
  .nav-links li.has-dropdown:hover .dropdown-menu { max-height: 0; padding: 0; }
  .nav-links li.has-dropdown:hover .dropdown-menu.open { max-height: 70vh; padding: .4rem 0; }
  .dropdown-menu a { padding: .65rem 1.2rem; }
}


/* ============================ LANGUAGE SWITCHER ============================ */
.lang-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(15, 42, 29, .18);
  border-radius: 999px;
  padding: 2px;
  list-style: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lang-switch .lang-btn {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  color: var(--green-900);
  padding: .32rem .7rem; border-radius: 999px;
  line-height: 1; transition: background .2s ease, color .2s ease;
}
.lang-switch .lang-btn + .lang-btn { margin-left: 1px; }
.lang-switch .lang-btn:hover { color: var(--green-700); }
.lang-switch .lang-btn.is-active {
  background: var(--green-700);
  color: var(--sand-50);
  box-shadow: 0 1px 2px rgba(15, 42, 29, .25);
}
.lang-switch .lang-btn:focus-visible {
  outline: 2px solid var(--gold-500); outline-offset: 2px;
}
.lang-switch::after { display: none !important; }

@media (max-width: 1024px) {
  .nav-links .lang-switch {
    margin: .75rem auto;
    width: max-content;
    align-self: center;
  }
}

/* ============ SPANISH NAV TIGHTENING ============
   Spanish labels are longer than English ("Sobre Nosotros", "Tratamientos",
   "Tienda de Regalos", "Certificados de Regalo", "Reservar"). When the
   translator sets <html lang="es">, these rules shrink spacing and font
   slightly so the nav still fits on one line and labels never break. */
html[lang="es"] .nav { gap: 1rem; }
html[lang="es"] .nav-links { gap: .55rem; }
html[lang="es"] .nav-links a,
html[lang="es"] .nav-links .dropdown-toggle {
  font-size: .8rem;
  white-space: nowrap;
}
html[lang="es"] .nav-cta {
  padding: .42rem .85rem;
  font-size: .8rem;
  white-space: nowrap;
}
html[lang="es"] .lang-switch .lang-btn {
  padding: .28rem .55rem;
  font-size: .68rem;
}

/* Switch to the mobile menu a bit earlier in Spanish so things never wrap. */
@media (min-width: 1101px) and (max-width: 1280px) {
  html[lang="es"] .nav-links { gap: .4rem; }
  html[lang="es"] .nav-links a,
  html[lang="es"] .nav-links .dropdown-toggle { font-size: .72rem; }
  html[lang="es"] .nav-cta { padding: .38rem .75rem; font-size: .75rem; }
}

/* Inside dropdowns, also stop Spanish lines from wrapping mid-phrase. */
html[lang="es"] .dropdown-menu a { white-space: nowrap; }

/* ============================ LANG LABEL: short on mobile, full on desktop ============================
   Buttons contain both a short and long label; CSS reveals the right one
   based on viewport so phones/tablets stay compact while desktops spell out
   "English" / "Spanish". */
.lang-long  { display: none; }
.lang-short { display: inline; }
@media (min-width: 1101px) {
  .lang-short { display: none; }
  .lang-long  { display: inline; }
}

/* ============================ MOBILE HEADER LANG SWITCHER ============================
   On tablets/phones we move the language toggle next to the hamburger so it's
   always reachable without opening the menu. The brand stays on the left,
   the right cluster (EN/ES + hamburger) is grouped with a small gap. */
.lang-switch-mobile { display: none !important; }

@media (max-width: 1100px) {
  .nav {
    justify-content: space-between;
    padding: .55rem 1rem;
    gap: .75rem;
  }
  .brand {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lang-switch-mobile {
    display: inline-flex !important;
    margin-left: auto;
    flex-shrink: 0;
  }
  .nav-toggle {
    margin-left: .25rem;
    flex-shrink: 0;
  }
  /* Hide the in-menu copy on mobile so the switcher isn't duplicated. */
  .nav-links .lang-switch { display: none !important; }
}

/* Tablet / large phone */
@media (max-width: 760px) {
  .nav { padding: .5rem .85rem; gap: .6rem; }
  .brand { font-size: .95rem; gap: .5rem; }
  .brand-logo { width: 34px; height: 34px; }
  .lang-switch-mobile .lang-btn { padding: .3rem .6rem; font-size: .68rem; }
  .nav-toggle { width: 38px; height: 38px; }
  .nav-toggle svg { width: 24px; height: 24px; }
}

/* Standard phone */
@media (max-width: 520px) {
  .nav { padding: .45rem .75rem; gap: .5rem; }
  .brand { font-size: .82rem; gap: .45rem; letter-spacing: .005em; }
  .brand-logo { width: 32px; height: 32px; }
  .lang-switch-mobile { padding: 1px; }
  .lang-switch-mobile .lang-btn { padding: .26rem .5rem; font-size: .64rem; letter-spacing: .08em; }
  .nav-toggle { width: 36px; height: 36px; margin-left: .15rem; }
  .nav-toggle svg { width: 22px; height: 22px; }
}

/* Very small phone: drop the brand text, keep the logo only, so the right
   cluster never crowds it. */
@media (max-width: 380px) {
  .brand { font-size: 0; gap: 0; }
  .brand-logo { width: 36px; height: 36px; }
}

