/* ================================================================
   NAIL DYNASTY — LUXURY DESIGN SYSTEM
   Mobile-First | Production-Ready | Dark & Light Mode
   ================================================================ */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS — CSS Custom Properties
   --------------------------------------------------------------- */
:root {
  /* ── Colour Palette (Dark — Default) ── */
  --bg-main:        #0a0104;
  --bg-alt:         #130108;
  --bg-glass:       rgba(20, 2, 8, 0.72);
  --bg-card:        rgba(26, 4, 12, 0.85);

  --gold:           #d4af37;
  --gold-bright:    #f1d582;
  --gold-dark:      #8e701d;
  --gold-glow:      rgba(212, 175, 55, 0.18);
  --gold-border:    rgba(212, 175, 55, 0.22);

  --text-body:      #e8e0d8;
  --text-dim:       rgba(232, 224, 216, 0.58);
  --text-heading:   #ffffff;
  --text-gold:      var(--gold);

  --border:         rgba(212, 175, 55, 0.18);
  --shadow-sm:      0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md:      0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg:      0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-gold:    0 20px 50px rgba(212, 175, 55, 0.12);

  /* ── Typography ── */
  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Montserrat', system-ui, sans-serif;
  --font-accent:    'Cormorant Garamond', Georgia, serif;

  /* ── Spacing Scale ── */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   64px;
  --space-2xl:  96px;
  --space-3xl:  128px;

  /* ── Section Padding (mobile-first) ── */
  --section-py: 80px;

  /* ── Layout ── */
  --container-max: 1280px;
  --container-px:  20px;

  /* ── BorderRadius ── */
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;

  /* ── Motion ── */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:       0.25s;
  --dur-mid:        0.55s;
  --dur-slow:       1.2s;

  /* ── Z-Index Scale ── */
  --z-base:      1;
  --z-nav:       100;
  --z-overlay:   200;
  --z-modal:     300;
  --z-toast:     400;
  --z-cursor:    500;
  --z-preloader: 1000;
}

/* ---------------------------------------------------------------
   MODERN OVERLAYS & GLOWS
   --------------------------------------------------------------- */
.cinematic-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5; /* Lowered to be behind text */
  background-image: url('https://www.transparenttextures.com/patterns/black-paper.png');
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.glow-orb {
  position: fixed; /* fixed = viewport-relative, never causes layout overflow */
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  animation: floatingGlow 20s infinite alternate ease-in-out;
  will-change: transform, opacity;
}

@keyframes floatingGlow {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.2; }
  50%  { transform: translate(5%, 10%) scale(1.1); opacity: 0.4; }
  100% { transform: translate(-5%, 5%) scale(0.9); opacity: 0.1; }
}

/* ── Mobile: disable expensive ops for smooth 60fps ── */
@media (max-width: 768px) {
  .cinematic-overlay { display: none; }
  .glow-orb {
    filter: blur(40px);
    animation: none;
    opacity: 0.08;
  }
}

/* Light Theme Override */
body.light-theme {
  --bg-main:     #fdfaf6;
  --bg-alt:      #f5ede4;
  --bg-glass:    rgba(255, 251, 245, 0.82);
  --bg-card:     rgba(255, 255, 255, 0.92);
  --gold:        #846a1b; /* Darkened for better contrast on light */
  --gold-bright: #a08122;
  --gold-dark:   #5b4911;
  --gold-glow:   rgba(132, 106, 27, 0.12);
  --gold-border: rgba(132, 106, 27, 0.18);
  --text-body:   #2a1520;
  --text-dim:    rgba(42, 21, 32, 0.65);
  --text-heading:#14040a;
  --text-gold:   #846a1b;
  --border:      rgba(184, 148, 45, 0.2);
  --shadow-sm:   0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg:   0 24px 60px rgba(0, 0, 0, 0.14);
}

/* Light theme specific menu tweaks */
body.light-theme .mobile-menu-overlay {
  background: rgba(253, 250, 246, 0.98);
}
body.light-theme .mobile-nav-link {
  color: var(--text-heading);
}

body.light-theme .hero-title {
  color: var(--text-heading);
}

body.light-theme .hero-desc {
  color: var(--text-body);
}

body.light-theme .accent-text,
body.light-theme em {
  color: var(--gold);
}

body.light-theme .hero-bg-img {
  filter: brightness(0.92); /* Bright and airy for light theme */
}


/* ---------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: auto; /* Lenis handles scroll */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-main);
}

body {
  background: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur-slow) var(--ease-in-out),
              color var(--dur-slow) var(--ease-in-out);
  overscroll-behavior-x: none; /* prevent horizontal bounce */
}

/* iOS-safe body scroll lock — position set dynamically by JS */
body.body-locked {
  position: fixed !important;
  width:    100% !important;
  left:     0    !important;
  right:    0    !important;
  overflow: hidden !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.12;
}

p { color: var(--text-dim); }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) ease;
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Antialiasing for scaled images */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold);
}

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

/* ── GPU-promoted layers for key animated elements ── */
.hero-bg-img,
.hero-content,
.loader-bar,
.scroll-line {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


/* ---------------------------------------------------------------
   3. LAYOUT UTILITIES
   --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 60px);
  position: relative;
  /* Prevent horizontal drift */
  box-sizing: border-box;
}

.section {
  padding-block: var(--section-py);
  position: relative;
  width: 100%;
  overflow: hidden; /* Prevent decorative animations from causing overflow */
}

.section--alt { background: var(--bg-alt); }

.center { text-align: center; }

/* Section Header */
.section-header { margin-bottom: var(--space-xl); }
.section-header .label { margin-bottom: var(--space-sm); }
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.section-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-inline: auto;
}

/* Labels & Badges */
.label, .hero-badge {
  font-family: var(--font-accent);
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 0.78rem;
  display: inline-block;
  margin-bottom: var(--space-sm);
}


/* ---------------------------------------------------------------
   4. CUSTOM CURSOR — desktop only
   --------------------------------------------------------------- */
#cursor,
#cursor-follower {
  display: none; /* hidden until JS enables them */
}

@media (hover: hover) and (pointer: fine) {
  #cursor {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: var(--z-cursor);
    will-change: transform;
    mix-blend-mode: difference;
  }

  #cursor-follower {
    display: block;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: calc(var(--z-cursor) - 1);
    will-change: transform;
    transition:
      width var(--dur-fast) ease,
      height var(--dur-fast) ease,
      background var(--dur-fast) ease,
      border-color var(--dur-fast) ease;
  }
}


/* ---------------------------------------------------------------
   5. PRELOADER
   --------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-preloader);
}

.loader-content { text-align: center; }

.loader-logo {
  width: 100px;
  margin-bottom: var(--space-md);
  animation: pulseLoader 2s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes pulseLoader {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%       { transform: scale(1.08); opacity: 1;   }
}

.loader-bar-wrap {
  width: 160px;
  height: 1px;
  background: var(--border);
  margin: 0 auto var(--space-sm);
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
  transition: width 0.15s linear;
  will-change: width;
}

.loader-text {
  font-size: 0.7rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ---------------------------------------------------------------
   6. SCROLL PROGRESS BAR
   --------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold));
  z-index: var(--z-preloader);
  will-change: width;
  transition: width 0.08s linear;
}


/* ---------------------------------------------------------------
   7. NAVBAR
   --------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  max-width: 100%;
  padding-block: clamp(14px, 3vh, 20px);
  z-index: var(--z-nav);
  transition:
    padding   var(--dur-mid) var(--ease-out-expo),
    background var(--dur-mid) ease,
    box-shadow var(--dur-mid) ease,
    transform  0.42s         var(--ease-out-expo);
  /* Ensure it never expands beyond viewport */
  contain: layout paint;
}

.navbar.scrolled {
  padding-block: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo img {
  height: 44px;
  width: auto;
  transition: height var(--dur-mid) var(--ease-out-expo),
              filter var(--dur-mid) ease;
  will-change: height;
}
.navbar.scrolled .logo img { height: 32px; }

body.light-theme .logo img,
body.light-theme .loader-logo { filter: invert(1) brightness(0.18); }

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-body);
  padding-block: 8px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-slow) var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme toggle button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--dur-fast) ease,
              transform var(--dur-fast) ease,
              color var(--dur-fast) ease;
  cursor: pointer;
  /* Minimum tap area */
  min-width: 42px;
  min-height: 42px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--gold);
  color: #fff;
  transform: rotate(20deg);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Desktop Book Button */
.nav-book-btn {
  display: none; /* show at 1024px+ */
  padding: 11px 26px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-fast) ease;
}

.nav-book-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* Hamburger Menu Button */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010; /* Above overlay and everything else */
  position: relative;
}

.bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-body);
  border-radius: 2px;
  transition:
    transform var(--dur-mid) var(--ease-out-expo),
    opacity   var(--dur-fast) ease,
    width     var(--dur-mid) var(--ease-out-expo);
  transform-origin: center;
  will-change: transform, opacity;
}

/* Hamburger → X animation */
.mobile-toggle.open .bar-1 {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-toggle.open .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.open .bar-3 {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile Menu Full-Screen Overlay ── */
.mobile-menu-overlay {
  position: fixed;
  /* Use inset with explicit coords for maximum mobile safety */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  /* Use svh for iOS Safari toolbar-safe height */
  height: 100svh;
  background: var(--bg-main); /* Adapt to theme automatically */
  opacity: 0.98;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  z-index: 1005; /* Fullscreen — covers everything except close toggle */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overflow-y: auto;
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo),
    visibility 0s linear 0.45s;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo),
    visibility 0s linear 0s;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Safe gap that won't overflow small screens */
  gap: clamp(var(--space-md), 5vh, var(--space-lg));
  text-align: center;
  padding: clamp(80px, 12vh, 120px) var(--space-md) clamp(40px, 6vh, 60px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Stagger animation base: each child translated & invisible */
}

/* Stagger items on open */
.mobile-menu-overlay .mobile-nav-list li {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--ease-out-expo);
}

/* Stagger items via JS/GSAP. Target state is opacity 1. */
.mobile-menu-overlay.open .mobile-nav-list li {
  opacity: 1;
  transform: none;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  /* Active touch feedback */
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-fast) ease, transform 0.2s ease;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-mid) var(--ease-out-expo);
}

.mobile-nav-link:hover  { color: var(--gold); }
.mobile-nav-link:hover::after { width: 80%; }
/* Touch press effect */
.mobile-nav-link:active { transform: scale(0.96); color: var(--gold); }

.mobile-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
  touch-action: manipulation;
}

.mobile-book-btn:hover  { background: var(--gold-bright); transform: translateY(-2px); }
.mobile-book-btn:active { transform: scale(0.96); box-shadow: none; }


/* ---------------------------------------------------------------
   8. HERO
   --------------------------------------------------------------- */
.hero {
  position: relative;
  /* Use svh so Safari toolbar doesn't hide content */
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: brightness(0.52);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Adaptive overlay based on theme main background */
  background:
    radial-gradient(ellipse at 50% 60%, transparent 0%, var(--bg-main) 85%),
    linear-gradient(180deg, transparent 0%, var(--bg-main) 100%);
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 20; /* High priority visibility */
  text-align: center;
  padding-inline: var(--container-px);
  max-width: 900px;
  width: 100%;
  opacity: 0; /* Hidden initially for GSAP reveal */
}

/* Text reveal clip animation */
.reveal-wrap {
  overflow: hidden;
  display: block;
}
.reveal-text {
  display: block;
  transform: translateY(100%);
  /* will-change applied by JS after reveal */
}

.hero-badge {
  margin-bottom: var(--space-md);
  font-size: 0.72rem;
}

.hero-title {
  /* Smaller min-font on mobile (2.2rem) and more fluid scaling (10vw) */
  font-size: clamp(2.2rem, 10vw, 6rem);
  line-height: 1.1;
  letter-spacing: clamp(2px, 1vw, 4px);
  text-transform: uppercase;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: var(--space-md);
  /* Allow word wrap if necessary */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(0.8rem, 3vw, 1.25rem);
  color: var(--gold-bright);
  letter-spacing: clamp(3px, 1.5vw, 6px);
  text-transform: uppercase;
  font-family: var(--font-body);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Scroll hint indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0; /* animated in by JS */
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}


/* ---------------------------------------------------------------
   9. BUTTONS — Global
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  /* Mobile tap safety */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background  var(--dur-fast) ease,
    color       var(--dur-fast) ease,
    transform   var(--dur-fast) var(--ease-out-expo),
    box-shadow  var(--dur-fast) ease;
  /* Minimum touch target (WCAG) */
  min-height: 44px;
}

/* Mobile tap press effect */
.btn:active {
  transform: scale(0.96) translateY(0) !important;
  box-shadow: none !important;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Shimmer pseudo-element */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}
.btn:hover::before { left: 150%; }

.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

/* btn-outline: gold border, transparent fill — used in Hero */
.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}


/* ---------------------------------------------------------------
   10. GLASS CARD — Base
   --------------------------------------------------------------- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  transition:
    transform   var(--dur-mid) var(--ease-out-expo),
    box-shadow  var(--dur-mid) ease,
    border-color var(--dur-mid) ease;
}

.glass-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

body.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0,0,0,0.06);
}


/* ---------------------------------------------------------------
   11. HIGHLIGHTS SECTION
   --------------------------------------------------------------- */
.highlights-section { padding-block: 60px; }

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.highlight-card {
  text-align: center;
  padding: var(--space-lg);
}

.highlight-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
}

.highlight-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.highlight-card p { font-size: 0.88rem; }


/* ---------------------------------------------------------------
   12. SERVICES SECTION — LUXURY MOSAIC GRID (5 cards)
   --------------------------------------------------------------- */
.services-section { background: var(--bg-alt); }

.services-wrapper {
  display: grid;
  /*
   * 5-card layout: 3 top + 2 bottom centred.
   * Using a 6-column grid where each card spans 2 cols.
   * That gives: [1-3] [3-5] [5-7] in row 1, centred [2-4] [4-6] in row 2.
   */
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xl);
  perspective: 1000px;
  margin-top: var(--space-lg);
}

/* Row 1: cards 1-3 each span 2 of 6 cols */
.services-wrapper .srv-card { grid-column: span 2; }

/* Row 2: cards 4 & 5 — centred. Start at col 2 and col 4 */
.services-wrapper .srv-card:nth-child(4) { grid-column: 2 / 4; }
.services-wrapper .srv-card:nth-child(5) { grid-column: 4 / 6; }

/* Tablet: 2-column (4 cols total, each card spans 2) */
@media (max-width: 1023px) and (min-width: 769px) {
  .services-wrapper {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
  .services-wrapper .srv-card { grid-column: span 2; }
  /* Align card 5 to be centered in a 4-column grid by placing it in cols 2 and 3 */
  .services-wrapper .srv-card:nth-child(5) {
    grid-column: 2 / 4;
  }
}

/* Mobile: horizontal swipe cards */
@media (max-width: 768px) {
  .services-wrapper, .gallery-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 10px 20px 30px;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none;
  }
  .services-wrapper::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar { display: none; }

  .srv-card,
  .gal-item,
  .gal-item--large,
  .gal-item--wide {
    flex: 0 0 clamp(280px, 78vw, 400px) !important;
    width: clamp(280px, 78vw, 400px) !important;
    min-width: clamp(280px, 78vw, 400px) !important;
    scroll-snap-align: center;
    grid-column: unset !important;
    grid-row: unset !important;
    height: auto;
  }

  .gal-item, .gal-item--large, .gal-item--wide {
    height: 250px !important;
  }
}

/* Service Card — Couture Glass Architecture */
.srv-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card); /* Dark semi-transparent base */
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: transform 0.8s var(--ease-out-expo), 
              box-shadow 0.8s var(--ease-out-expo),
              border-color 0.4s ease;
  will-change: transform, box-shadow;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.4),
    inset 0 1px 1px rgba(255,255,255,0.05);
}

.glass-card {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.srv-card:hover {
  transform: translateY(-16px) rotateX(2deg);
  border-color: var(--gold);
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.6),
    0 0 30px rgba(212, 175, 55, 0.12);
  z-index: 10;
}

/* Subtle gold shimmer transition on hover */
.srv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(212, 175, 55, 0.06) 50%, transparent 100%);
  transform: translateX(-150%) skewX(-15deg);
  transition: transform 0.75s ease-out;
  pointer-events: none;
  z-index: 3;
}

.srv-card:hover::before {
  transform: translateX(150%) skewX(-15deg);
}

.srv-img-box {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.srv-img-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 1, 4, 0.9));
  z-index: 1;
}

.srv-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out-expo);
}

.srv-card:hover .srv-img-box img {
  transform: scale(1.15);
}

.srv-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px;
  background: linear-gradient(to bottom, rgba(10, 1, 4, 0.8), rgba(10, 1, 4, 0.95));
  position: relative;
  z-index: 2;
}

.srv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.srv-header h3 {
  font-size: 1.7rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.2;
}

.srv-info p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-block: 15px;
}

.srv-details {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding-top: 15px;
}

.srv-details span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.srv-book-btn { 
  margin-top: 24px;
}

/* ---------------------------------------------------------------
   MODAL — LUXURY IMMERSIVE EXPERIENCE  (mobile-scroll fixed)
   --------------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-in-out), visibility 0.6s var(--ease-in-out);
  /* Mobile-safe padding — keeps modal away from edges */
  padding: env(safe-area-inset-top, 16px) 16px env(safe-area-inset-bottom, 16px);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 1, 4, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-inner {
  position: relative;
  background: rgba(15, 2, 6, 0.92);
  width: 100%;
  max-width: 640px;
  /* Mobile-safe max-height using dvh with svh fallback */
  max-height: 88svh;
  max-height: 88dvh;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,1);
  transform: translateY(40px) scale(0.96);
  transition: transform 0.6s var(--ease-out-expo);
  /* CRITICAL: clip inner content, body gets its own scroll */
  overflow: hidden;
}

.modal.open .modal-inner {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover  { background: var(--gold); color: #fff; transform: rotate(90deg); }
.modal-close:active { background: var(--gold); color: #fff; transform: rotate(90deg) scale(0.9); }

.modal-header {
  padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 40px) 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  /* Never shrink — always visible at top */
  flex-shrink: 0;
}

.modal-label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  margin-bottom: 8px;
  display: block;
  color: var(--gold-bright);
}

.modal-title {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-family: var(--font-heading);
  line-height: 1.1;
  color: #fff;
}

/* ── Modal Body: scrollable area ── */
.modal-body {
  padding: 16px clamp(20px, 5vw, 40px) clamp(20px, 4vw, 40px);
  /* ── The critical scroll fix for all mobile browsers ── */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
  overscroll-behavior: contain;      /* prevents background page scroll */
  flex: 1;
  min-height: 0; /* flex child must have min-height: 0 to shrink & scroll */
  /* Luxury thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  /* Smooth scroll behaviour inside */
  scroll-behavior: smooth;
}

.modal-body::-webkit-scrollbar        { width: 4px; }
.modal-body::-webkit-scrollbar-track  { background: transparent; }
.modal-body::-webkit-scrollbar-thumb  { background: var(--gold-dark); border-radius: 2px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Sticky Book Button stays at bottom */
.modal-book-btn-wrap {
  flex-shrink: 0;
  padding: 16px clamp(20px, 5vw, 40px) clamp(16px, 4vw, 32px);
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  background: rgba(15, 2, 6, 0.96);
}

.pricing-row {
  padding-block: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

.pricing-row:hover  { transform: translateX(8px); }
.pricing-row:active { transform: translateX(4px); }

.pricing-row span {
  font-size: 0.93rem;
  color: var(--text-heading);
}

.pricing-row strong {
  font-family: var(--font-accent);
  color: var(--gold);
  font-weight: 500;
}



/* ---------------------------------------------------------------
   13. ABOUT SECTION
   --------------------------------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Visual side */
.about-visual {
  position: relative;
  /* Reserve height for overlapping images */
  padding-bottom: 80px;
}

.about-img-primary {
  width: 85%;
  border: 1px solid var(--border);
  overflow: hidden;
}

.about-img-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.about-img-primary:hover img { transform: scale(1.04); }

.about-img-secondary {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 55%;
  border: 4px solid var(--bg-main);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2;
}

@media (max-width: 768px) {
  .about-img-secondary {
    right: 0;
    width: 50%;
    border-width: 3px;
  }
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rating badge */
.about-rating-badge {
  position: absolute;
  top: -15px;
  right: 10%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-bright));
  color: #fff;
  padding: 12px;
  text-align: center;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-gold);
  z-index: 3;
}

.about-rating-badge h4 {
  font-size: 1.3rem;
  line-height: 1;
  color: #fff;
  font-weight: 900;
}

.about-rating-badge span {
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  display: block;
}

.badge-stars { font-size: 0.5rem; color: #fff; margin-top: 2px; }
.badge-stars i { font-size: 0.5rem; }

/* Content side */

.about-content blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: var(--space-md);
  margin-block: var(--space-md);
  line-height: 1.5;
}

.about-content p {
  font-size: 0.92rem;
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.about-cta { margin-top: var(--space-lg); }


/* ---------------------------------------------------------------
   14. GALLERY SECTION
   --------------------------------------------------------------- */
.gallery-section { background: var(--bg-alt); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 0; /* header margin handles spacing */
}

.gal-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  aspect-ratio: 1;
}

/* Large item spans 2 columns */
.gal-item--large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* Wide item spans 2 columns */
.gal-item--wide {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-out-expo),
              filter     0.75s ease;
  will-change: transform, filter;
}

.gal-item:hover img,
.gal-item:focus-visible img {
  transform: scale(1.07);
  filter: brightness(0.45);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,1,4,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--dur-mid) ease;
}

.gal-item:hover .gal-overlay,
.gal-item:focus-visible .gal-overlay { opacity: 1; }

.gal-overlay i {
  font-size: 1.8rem;
  color: var(--gold);
}

.gal-overlay span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.gal-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }


/* ---------------------------------------------------------------
   15. TESTIMONIALS
   --------------------------------------------------------------- */
.testimonials-section { background: var(--bg-main); }

.testimonial-card {
  position: relative;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  height: 100%;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.testimonial-card > p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.testimonial-author strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-heading);
}

.star-row {
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: 0.78rem;
}

/* Testimonial Swiper */
.testimonials-swiper { padding-bottom: 48px !important; }

.testimonials-swiper .swiper-slide { height: auto; display: flex; }

.testimonials-pagination .swiper-pagination-bullet {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--border);
  opacity: 1;
}
.testimonials-pagination .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 42px;
}


/* ---------------------------------------------------------------
   16. CONTACT SECTION
   --------------------------------------------------------------- */
.contact-section { background: var(--bg-alt); }

.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-block: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-text strong {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-heading);
}

.contact-text span,
.contact-text a {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.contact-text a:hover { color: var(--gold); }

/* Social Buttons */
.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition:
    background  var(--dur-fast) ease,
    color       var(--dur-fast) ease,
    transform   var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
}

.social-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* Map */
.contact-map {
  height: 360px;
  padding: 0;
  overflow: hidden;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: none;
}

body.dark-theme .contact-map iframe {
  filter: invert(0.85) hue-rotate(180deg) saturate(0.6);
}


/* ---------------------------------------------------------------
   17. FOOTER
   --------------------------------------------------------------- */
.footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-md);
}

body.light-theme .footer-logo { filter: invert(1) brightness(0.18); }

.footer-brand p {
  font-size: 0.85rem;
  max-width: 280px;
  line-height: 1.75;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-nav ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color var(--dur-fast) ease;
}
.footer-nav a:hover { color: var(--gold); }

.footer-services li {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-book-btn {
  margin-bottom: var(--space-md);
  width: 100%;
  max-width: 220px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}


/* ---------------------------------------------------------------
   18. LIGHTBOX
   --------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 2, 0.97);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity     var(--dur-mid) ease,
    visibility  0s linear var(--dur-mid);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity     var(--dur-mid) ease,
    visibility  0s linear 0s;
}

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 88svh;
}

.lightbox img {
  max-width: 88vw;
  max-height: 82svh;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.1);
  will-change: transform;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(10,1,4,0.7);
  border: 1px solid var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.lb-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  width: 90%;
  max-width: 500px;
  text-align: center;
  pointer-events: none;
}


/* ---------------------------------------------------------------
   19. PRICING MODAL — supplemental styles
   --------------------------------------------------------------- */

/* Modal book button wrapper — always pinned to bottom of modal */
.modal-book-btn-wrap {
  flex-shrink: 0;
  padding: 14px clamp(20px, 5vw, 40px) clamp(14px, 3vw, 28px);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: linear-gradient(to bottom, rgba(15,2,6,0.88), rgba(15,2,6,0.98));
}

.modal-book-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 2px;
  padding: 14px 24px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


/* ---------------------------------------------------------------
   20. RESPONSIVE — Tablet (≥ 640px)
   --------------------------------------------------------------- */
@media (min-width: 640px) {
  :root {
    --container-px: 32px;
    --section-py: 100px;
  }

  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .gal-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gal-item { aspect-ratio: 1; }
  .gal-item--large { aspect-ratio: auto; }
  .gal-item--wide { grid-column: span 2; aspect-ratio: 2/1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-split {
    grid-template-columns: 1fr 1fr;
  }

  .about-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ---------------------------------------------------------------
   21. RESPONSIVE — Large Tablet & Desktop (≥ 1024px)
   --------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --container-px: 40px;
    --section-py: 130px;
  }

  /* Show desktop nav */
  .nav-links        { display: flex; }
  .nav-book-btn     { display: inline-flex; }
  .mobile-toggle    { display: none; }

  /* Gallery — desktop masonry-style */
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }

  .gal-item              { aspect-ratio: auto; height: 240px; }
  .gal-item:nth-child(1) { grid-column: span 8; grid-row: span 2; height: 496px; }
  .gal-item:nth-child(2) { grid-column: span 4; height: 240px; }
  .gal-item:nth-child(3) { grid-column: span 4; height: 240px; }
  .gal-item:nth-child(4) { grid-column: span 4; height: 240px; }
  .gal-item:nth-child(5) { grid-column: span 4; height: 240px; }
  .gal-item:nth-child(6) { grid-column: span 4; height: 240px; }
  .gal-item:nth-child(7) { grid-column: span 12; height: 200px; }

  .gal-item--large { grid-column: unset; aspect-ratio: unset; }
  .gal-item--wide  { grid-column: unset; aspect-ratio: unset; }

  /* Footer 4 columns */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  /* Contact 2 cols */
  .contact-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .contact-map { height: 440px; }

  /* Hero scroll hint shows on desktop */
  .hero-scroll-hint { bottom: 40px; }
}

/* ---------------------------------------------------------------
   22. RESPONSIVE — Wide Desktop (≥ 1440px)
   --------------------------------------------------------------- */
@media (min-width: 1440px) {
  .srv-img-box { height: 300px; }
}

/* ---------------------------------------------------------------
   23. SMALL MOBILE (≤ 375px)
   --------------------------------------------------------------- */
@media (max-width: 375px) {
  .hero-title { font-size: 2.4rem; }
  .btn { padding: 13px 22px; font-size: 0.7rem; }
  .highlight-card { padding: var(--space-md); }
}

/* ---------------------------------------------------------------
   24. LIGHT THEME — Component Overrides
   --------------------------------------------------------------- */
body.light-theme .services-section { background: #f0e8dd; }
body.light-theme .gallery-section  { background: #f0e8dd; }
body.light-theme .contact-section  { background: #f0e8dd; }
body.light-theme .footer           { background: #fdfaf6; }

body.light-theme .srv-info {
  background: rgba(255,255,255,0.97);
}
body.light-theme .about-img-secondary {
  border-color: var(--bg-main);
}
body.light-theme blockquote {
  color: var(--gold-dark);
  border-left-color: var(--gold-dark);
}
body.light-theme .btn-primary { color: #fff; }
body.light-theme .btn-ghost   { color: var(--gold-dark); border-color: var(--gold-dark); }
body.light-theme .btn-ghost:hover { background: var(--gold-dark); color: #fff; }
body.light-theme .contact-map iframe {
  filter: none;
}
body.light-theme .mobile-menu-overlay {
  background: rgba(253, 250, 246, 0.97);
}
body.light-theme .mobile-nav-link { color: var(--text-heading); }

/* --- Light Theme Hero Overrides --- */
body.light-theme .hero-title {
  color: #1a0106; /* Sharp Deep Onyx */
}
body.light-theme .hero-subtitle {
  color: #8c6a2e; /* Sophisticated Deep Gold */
  opacity: 1;
}
body.light-theme .hero-bg-img {
  content: url('images/light-hero.png');
}
body.light-theme .hero-overlay {
  background: 
    radial-gradient(ellipse at 50% 60%, transparent 0%, #fdfaf6 85%),
    linear-gradient(180deg, rgba(239, 230, 218, 0.4) 0%, rgba(239, 230, 218, 0.8) 100%);
}
body.light-theme .hero-badge .gold-text {
  color: #8c6a2e;
}

/* ---------------------------------------------------------------
   25. PRICING MODAL — LUXURY ROW REFINEMENT
   --------------------------------------------------------------- */
.luxury-row {
  justify-content: flex-start !important;
  gap: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-block: 15px !important;
  transition: transform var(--dur-fast) ease;
}

.luxury-row:hover  { transform: translateX(10px); border-bottom-color: var(--gold); }
.luxury-row:active { transform: translateX(5px); }

.row-sep {
  color: var(--gold-dark);
  font-style: normal;
  margin-left: 8px;
}

.row-time {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------
   26. SECTION-TITLE RESPONSIVE TWEAKS
   --------------------------------------------------------------- */
.section-title em {
  font-size: inherit;
  line-height: inherit;
}

/* ---------------------------------------------------------------
   27. MOBILE EXPERIENCE ENHANCEMENTS
       Subtle premium touch feedback & reveal polish
   --------------------------------------------------------------- */

/* Gallery items — touch-friendly tap flash */
.gal-item {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Smooth reveal for lazy images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.55s ease;
}
img[loading="lazy"].img-loaded {
  opacity: 1;
}

/* Service cards touch press */
.srv-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Mobile enhancements — touch, performance, modal ── */
@media (max-width: 768px) {
  /* Social buttons — larger touch target */
  .social-btn {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  /* Modal: full-width, safe height, rounded */
  .modal-inner {
    max-width: calc(100vw - 20px);
    max-height: 88svh;
    max-height: 88dvh;
    border-radius: var(--radius-md);
  }
  .modal-header {
    padding: 18px 18px 14px;
  }
  .modal-body {
    padding: 10px 16px 16px;
  }
  .modal-book-btn {
    font-size: 0.74rem;
    padding: 13px 18px;
  }

  /* Reduce costly backdrop-filter blur for 60fps on mobile */
  .glass-card,
  .testimonial-card {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .navbar.scrolled {
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
  }
  .mobile-menu-overlay {
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
  }
  .modal-backdrop {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Simplify 3D card hover on mobile */
  .srv-card:hover {
    transform: translateY(-6px) !important;
  }

  /* GPU compositing for scroll-active elements */
  .hero-bg-img,
  .hero-content {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  /* Premium tap press on interactive elements */
  .btn:active,
  .social-btn:active,
  .mobile-nav-link:active {
    opacity: 0.82;
    transform: scale(0.96);
    transition: transform 0.1s ease, opacity 0.1s ease;
  }
}

/* ── Contact text: address fits small screens ── */
.contact-text span {
  word-break: break-word;
}

/* Section reveal — fade-up smoothness for mobile */
@media (max-width: 768px) {
  .section {
    /* Avoid paint thrash on mobile scrolling */
    will-change: auto;
  }
  .highlight-card,
  .srv-card,
  .gal-item {
    /* Allow GPU compositing layer only when needed */
    will-change: auto;
  }
}

/* ================================================================
   MOBILE-FIRST LUXURY ENHANCEMENTS — Phase 2
   ================================================================ */

/* ── 1. Navbar auto-hide state (desktop only) ── */
.navbar.nav-hidden {
  transform: translateY(-110%);
}
/* CRITICAL: Never hide navbar on mobile — hamburger is the only nav entry point */
@media (max-width: 1023px) {
  .navbar.nav-hidden {
    transform: none !important;
  }
}

/* ── 2. Compact spacing on small phones ── */
@media (max-width: 639px) {
  :root {
    --section-py: 56px;
    --space-xl:   32px;
    --space-2xl:  52px;
  }
  .highlights-section { padding-block: 44px; }
  .section-header     { margin-bottom: 32px; }
  .about-visual       { padding-bottom: 56px; }
  .hero-scroll-hint   { display: none; }
}



/* ── 4. Floating mobile WhatsApp CTA ── */
.floating-cta {
  position: fixed;
  bottom: 26px;
  right: 18px;
  z-index: 95; /* below navbar (100) and mobile-menu-overlay (102) */
  display: none;     /* hidden on desktop by default */
  pointer-events: auto;
  transition:
    transform 0.42s var(--ease-out-expo),
    opacity   0.42s ease;
}

.floating-cta.cta-hidden {
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .floating-cta { display: block; }
}

.floating-wa-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 16px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.40),
    0 2px 8px  rgba(0, 0, 0, 0.28);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform  0.28s var(--ease-out-expo),
    box-shadow 0.28s ease;
  overflow: visible;
}

.floating-wa-btn i    { font-size: 1.3rem; line-height: 1; }
.floating-wa-btn span { white-space: nowrap; }

.floating-wa-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.48),
    0 4px  12px rgba(0, 0, 0, 0.28);
}
.floating-wa-btn:active {
  transform: scale(0.93);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.28);
}

/* Pulse ring */
.floating-wa-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50px;
  background: rgba(37, 211, 102, 0.20);
  animation: waPulse 2.8s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  60%       { transform: scale(1.2);  opacity: 0;   }
}

/* ── 5. Highlight icon float ── */
.highlight-icon {
  animation: iconFloat 4s ease-in-out infinite;
}
.highlight-card:nth-child(2) .highlight-icon { animation-delay: 1.4s; }
.highlight-card:nth-child(3) .highlight-icon { animation-delay: 2.8s; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* ── 6. Gold shimmer on section labels ── */
.label {
  position: relative;
  overflow: hidden;
}
.label::after {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.30), transparent);
  animation: labelShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes labelShimmer {
  0%        { left: -70%; }
  40%, 100% { left: 150%; }
}

/* ── 7. Cinematic hairline between sections ── */
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ── 8. Service card active glow ring ── */
.srv-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--gold-dark), transparent 60%, var(--gold-bright)) border-box;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
  z-index: 4;
}
.srv-card:hover::after { opacity: 1; }

/* ── 9. Testimonial: active slide scale ── */
.testimonials-swiper .swiper-slide {
  opacity: 0.55;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.testimonials-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

/* ── 10. Mobile compact tweaks ── */
@media (max-width: 768px) {
  .contact-list { gap: var(--space-sm); }
  .contact-item { gap: var(--space-sm); }
  .about-content blockquote {
    font-size: 1.05rem;
    padding-left: var(--space-sm);
  }
  .gal-item img {
    transition: transform 0.6s var(--ease-out-expo), filter 0.6s ease;
  }
}
