/* ============================================================
   SPA PAGE  —  spa.css
   Sections: hero, highlights, intro, zones
   ============================================================ */

/* ---- HERO ---- */
.spa-hero {
  position: relative;
  display: flex;
  align-items: center;
  /* Order matters: last supported value wins.
     Old iOS Safari (no svh): -webkit-fill-available wins.
     Modern browsers (svh supported): 100svh overrides it. */
  min-height: -webkit-fill-available;
  min-height: 100svh;
  overflow: hidden;
  color: var(--clr-white);
}

.spa-hero__bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
}

.spa-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.spa-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 28, 25, 0.72) 0%,
    rgba(20, 28, 25, 0.45) 60%,
    rgba(20, 28, 25, 0.65) 100%
  );
}

.spa-hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-total) + var(--sp-16));
  padding-bottom: var(--sp-20);
}

.spa-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: var(--fw-light);
  line-height: var(--lh-tight);
  color: var(--clr-white);
  margin-block: var(--sp-4) var(--sp-6);
  letter-spacing: -0.01em;
}

.spa-hero__schedule {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
}

.spa-hero__schedule-sep {
  color: var(--clr-gold);
}

.spa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.spa-hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spa-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ---- HIGHLIGHTS ---- */
.spa-highlights {
  background: var(--clr-beige-light);
  border-bottom: 1px solid var(--clr-border);
}

.spa-highlights__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-8) var(--sp-12);
  padding: 0;
  margin: 0;
}

.spa-highlights__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.spa-highlights__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--clr-gold);
}

.spa-highlights__label {
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* ---- INTRO ---- */
.spa-intro {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 72ch;
  line-height: var(--lh-loose);
}

/* ---- ZONES ---- */
.spa-zone {
  position: relative;
  display: grid;
  gap: var(--sp-10);
  align-items: center;
  padding-block: var(--sp-12);
  border-bottom: 1px solid var(--clr-border);
}

.spa-zone:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .spa-zone { grid-template-columns: 1fr 1fr; }
  .spa-zone--reverse .spa-zone__media { order: 2; }
  .spa-zone--reverse .spa-zone__content { order: 1; }
}

.spa-zone__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.spa-zone__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.spa-zone__img-placeholder {
  aspect-ratio: 4/3;
  background: var(--clr-beige);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
}

.spa-zone__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
  font-weight: var(--fw-light);
  margin-bottom: var(--sp-4);
}

.spa-zone__desc {
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
}

/* ---- STATS STRIP ---- */
.spa-stats {
  background: var(--clr-ink);
  padding-block: var(--sp-10);
}

.spa-stats__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8) var(--sp-6);
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .spa-stats__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spa-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.spa-stats__item:first-child {
  border-left: none;
}

@media (max-width: 639px) {
  .spa-stats__item:nth-child(2n+1) {
    border-left: none;
  }
}

.spa-stats__value {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: var(--fw-light);
  color: var(--clr-gold);
  line-height: 1;
}

.spa-stats__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- ZONE NUMBERING ---- */
.spa-zone__media {
  position: relative;
}

.spa-zone__num {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: var(--fw-light);
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.spa-zone__eyebrow {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: var(--fw-light);
  color: var(--clr-gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.spa-zone__content {
  border-left: 3px solid var(--clr-gold);
  padding-left: var(--sp-6);
}

.spa-zone--reverse .spa-zone__content {
  border-left: none;
  border-right: 3px solid var(--clr-gold);
  padding-left: 0;
  padding-right: var(--sp-6);
}

@media (max-width: 767px) {
  .spa-zone--reverse .spa-zone__content {
    border-right: none;
    border-left: 3px solid var(--clr-gold);
    padding-right: 0;
    padding-left: var(--sp-6);
  }
}

/* ---- PHOTO STRIP (auto-scroll marquee) ---- */
.spa-photo-strip {
  overflow: hidden;
  background-color: var(--clr-ink);
  padding-block: var(--sp-6);
}

.spa-photo-strip__track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  will-change: transform;
  animation: spa-strip-scroll 40s linear infinite;
}

@keyframes spa-strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (hover: hover) {
  .spa-photo-strip:hover .spa-photo-strip__track {
    animation-play-state: paused;
  }
}

.spa-photo-strip__item {
  flex-shrink: 0;
  width: 220px;
  height: 275px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

@media (min-width: 600px) {
  .spa-photo-strip__item {
    width: 320px;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .spa-photo-strip__item {
    width: 400px;
    height: 500px;
  }
}

.spa-photo-strip__link {
  display: block;
  width: 100%;
  height: 100%;
}

.spa-photo-strip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

/* cursor only on interactive (linked) items */
.spa-photo-strip__link .spa-photo-strip__img {
  cursor: zoom-in;
}

/* hover scale only on interactive (non-duplicate) items */
@media (hover: hover) {
  .spa-photo-strip__item:not([aria-hidden]):hover .spa-photo-strip__img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spa-photo-strip__track {
    animation: none;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .spa-photo-strip__track::-webkit-scrollbar {
    display: none;
  }
  /* hide aria-hidden duplicates — they exist only for the CSS marquee loop */
  .spa-photo-strip__item[aria-hidden="true"] {
    display: none;
  }
}
