/* ==========================================================================
   B'SOUL SPA — THERAPY TREATMENT
   High-Performance 60FPS Architectural Luxury Stylesheet
   Zero Main-Thread Lag · GPU-Composited Transforms · Full Mobile Optimization
   ========================================================================== */

:root {
  --alabaster: #FAF6EE;
  --travertine: #F1EAE0;
  --travertine-deep: #E6DDD0;
  --obsidian: #0A0806;
  --espresso: #14100C;
  --bronze-surface: #1D1812;
  --gold-bright: #E8BA40;
  --gold-primary: #D4A537;
  --gold-amber: #A87924;
  --gold-champagne: #F4DF9E;
  --ink-dark: #18130E;
  --ink-muted: #6E6455;
  --ivory: #F8F4EC;
  --sand: #C7BDA8;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Native Butter-Smooth Scroll ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--obsidian);
  color: var(--ivory);
}

body {
  margin: 0;
  background-color: var(--obsidian);
  color: var(--ivory);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-bright);
  color: var(--obsidian);
}

/* ---------- Metallic Gold Gradients ---------- */
.gold-metallic-bg {
  background: linear-gradient(135deg, #F6E2A4 0%, #E8BA40 38%, #C9962C 75%, #9B6C1B 100%);
}

.gold-metallic-text {
  background: linear-gradient(135deg, #FFF5D6 0%, #E8BA40 45%, #C5922B 82%, #F6E224 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-ink-text {
  background: linear-gradient(135deg, #9B6C1B 0%, #C9962C 50%, #7D5310 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Top Scroll Progress (GPU Transform Only) ---------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-amber), var(--gold-bright), var(--gold-champagne));
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ---------- Navigation Capsule ---------- */
.luxury-header {
  transition: background-color 0.35s ease, border-color 0.35s ease, padding 0.35s var(--ease-expo);
}

@media (max-width: 1023px) {
  .luxury-header {
    background-color: rgba(10, 8, 6, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.luxury-header.is-scrolled {
  background-color: rgba(10, 8, 6, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 186, 64, 0.24);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ---------- Full-Bleed Hero Background & Right-to-Left Darkening Gradient ---------- */
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% center;
  transform: scale(1.01);
}

/* Sağdan sola doğru kararan lüks geçiş: Sağda görsel net ve sıcak, solda yazılar %100 okunaklı */
.hero-rtl-gradient {
  background:
    linear-gradient(
      to left,
      rgba(10, 8, 6, 0.08) 0%,
      rgba(10, 8, 6, 0.28) 28%,
      rgba(10, 8, 6, 0.72) 52%,
      rgba(10, 8, 6, 0.93) 72%,
      rgba(10, 8, 6, 0.99) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 8, 6, 0.65) 0%,
      rgba(10, 8, 6, 0) 22%,
      rgba(10, 8, 6, 0) 76%,
      rgba(10, 8, 6, 0.98) 100%
    );
}

@media (max-width: 1023px) {
  .hero-bg-image {
    object-position: 68% center;
  }

  .hero-rtl-gradient {
    background:
      linear-gradient(
        to left,
        rgba(10, 8, 6, 0.32) 0%,
        rgba(10, 8, 6, 0.68) 45%,
        rgba(10, 8, 6, 0.92) 85%,
        rgba(10, 8, 6, 0.97) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(10, 8, 6, 0.7) 0%,
        rgba(10, 8, 6, 0.25) 35%,
        rgba(10, 8, 6, 0.88) 85%,
        rgba(10, 8, 6, 1) 100%
      );
  }
}

/* ---------- Zero-Jank Scroll Reveal (IntersectionObserver) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.65s var(--ease-expo), transform 0.65s var(--ease-expo);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------- Interactive Editorial Menu Row ---------- */
.ritual-row {
  position: relative;
  transition: transform 0.4s var(--ease-expo), border-color 0.35s ease, background-color 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ritual-row:hover {
    transform: translate3d(10px, 0, 0);
    border-bottom-color: rgba(232, 186, 64, 0.55);
    background-color: rgba(232, 186, 64, 0.04);
  }
}

/* Mobile & Tablet Massage Card Image Styling */
.ritual-mobile-media {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
  border: 1px solid rgba(232, 186, 64, 0.32);
  background-color: var(--espresso);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .ritual-mobile-media {
    height: 270px;
  }
}

.ritual-mobile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}

/* Floating Cursor-Following Portrait Image (Desktop Only) */
.ritual-floating-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 360px;
  pointer-events: none;
  z-index: 80;
  overflow: hidden;
  border: 1px solid rgba(232, 186, 64, 0.55);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0) scale(0.94);
  transition: opacity 0.25s var(--ease-expo);
  will-change: transform, opacity;
  background: var(--espresso);
}

.ritual-floating-preview.is-active {
  opacity: 1;
}

.ritual-floating-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .ritual-floating-preview {
    display: none !important;
  }
}

/* ---------- Expanding Architectural Accordion (Sanctuary Gallery) ---------- */
.sanctuary-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 1024px) {
  .sanctuary-accordion {
    flex-direction: row;
    height: 580px;
    gap: 12px;
  }
}

.sanctuary-panel {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 270px;
  cursor: pointer;
  border: 1px solid rgba(232, 186, 64, 0.26);
  transition: flex 0.65s var(--ease-expo), border-color 0.4s ease;
}

@media (min-width: 1024px) {
  .sanctuary-panel {
    min-height: 240px;
  }

  .sanctuary-panel.is-expanded {
    flex: 3.2;
    border-color: rgba(232, 186, 64, 0.65);
  }
}

.sanctuary-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-expo), opacity 0.5s ease;
}

@media (min-width: 1024px) {
  .sanctuary-panel__img {
    opacity: 0.52;
  }
}

.sanctuary-panel.is-expanded .sanctuary-panel__img,
.sanctuary-panel:hover .sanctuary-panel__img {
  transform: scale(1.06);
  opacity: 0.82;
}

.sanctuary-panel__content {
  position: relative;
  z-index: 10;
  height: 100%;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.1) 0%, rgba(10, 8, 6, 0.92) 86%);
}

@media (min-width: 1024px) {
  .sanctuary-panel__content {
    min-height: 0;
    padding: 1.75rem;
  }
}

.sanctuary-panel__details {
  display: block;
  opacity: 1;
  margin-top: 0.75rem;
}

@media (min-width: 1024px) {
  .sanctuary-panel__details {
    display: none;
    opacity: 0;
    margin-top: 0.85rem;
  }

  .sanctuary-panel.is-expanded .sanctuary-panel__details {
    display: block;
    opacity: 1;
  }
}

/* ---------- Asymmetrical Bento Lookbook ---------- */
.bento-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 19, 14, 0.14);
}

.bento-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-expo);
}

.bento-tile:hover img {
  transform: scale(1.05);
}

/* ---------- Giant Fitted Footer Wordmark ---------- */
.giant-footer-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.1rem, 16vw, 19rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  white-space: nowrap;
  user-select: none;
}

/* ---------- Reduced Motion Safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ritual-floating-preview {
    display: none !important;
  }
}
