/* ═══════════════════ BASE ═══════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ═══════════════════ SCROLLBAR ═══════════════════ */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #c9a96e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e0c992;
}

/* ═══════════════════ NAVBAR ═══════════════════ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo-text {
  color: #faf9f6;
}

.nav-link {
  color: rgba(250, 249, 246, 0.7);
}
.nav-link:hover {
  color: #c9a96e;
}

#navbar.scrolled .nav-link {
  color: rgba(250, 249, 246, 0.7);
}
#navbar.scrolled .nav-link:hover {
  color: #c9a96e;
}

#mobile-menu-btn {
  color: #faf9f6;
}

/* ═══════════════════ HERO CAROUSEL ═══════════════════ */
.hero-slide {
  will-change: opacity;
  opacity: 0;
}

.hero-slide.hero-ready {
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 0.55;
  animation: heroKenBurns 8s ease-in-out forwards;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.10); }
  100% { transform: scale(1.20); }
}

/* ═══════════════════ HERO PATTERN ═══════════════════ */
.hero-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, #c9a96e 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #c9a96e 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ═══════════════════ ANIMATIONS ═══════════════════ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out both;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(7) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(8) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(9) { transition-delay: 0.45s; }

/* ═══════════════════ GALLERY ═══════════════════ */
.gallery-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden-item {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ═══════════════════ BOOKING ═══════════════════ */
.booking-service-btn.selected {
  border-color: #c9a96e;
  background: rgba(201, 169, 110, 0.1);
}

.date-card {
  min-width: 80px;
  scroll-snap-align: start;
  transition: all 0.2s ease;
}

.date-card.selected {
  border-color: #c9a96e;
  background: rgba(201, 169, 110, 0.15);
}

.date-card.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.time-slot {
  transition: all 0.2s ease;
}

.time-slot.selected {
  background: #c9a96e;
  color: #0a0a0a;
  border-color: #c9a96e;
}

.time-slot.booked {
  opacity: 0.3;
  pointer-events: none;
  text-decoration: line-through;
}

/* ═══════════════════ BOOKING STEPS ═══════════════════ */
.booking-step.completed span:first-child {
  background: #c9a96e;
  color: #0a0a0a;
}

.booking-step.completed span:last-child {
  color: #c9a96e;
}

.booking-step.active span:first-child {
  background: #c9a96e;
  color: #0a0a0a;
}

.booking-step.active span:last-child {
  color: #c9a96e;
}

/* ═══════════════════ PAYMENT MODAL ═══════════════════ */
#payment-modal.active {
  display: flex;
}

.payment-method-btn.selected {
  border-color: #c9a96e;
  background: rgba(201, 169, 110, 0.1);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ═══════════════════ WHATSAPP FAB ═══════════════════ */
#whatsapp-fab {
  animation: fadeIn 0.6s ease-out 1s both;
}

/* Pulse effect */
#whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.3);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ═══════════════════ CART BADGE ═══════════════════ */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #c9a96e;
  color: #0a0a0a;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════ REDUCED MOTION ═══════════════════ */
@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;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  #whatsapp-fab::before {
    animation: none;
  }
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 375px) {
  .font-heading {
    font-size: 90%;
  }
}
