/* Cloud 9 Resort — Custom Styles */

/* Smooth scroll behavior handled in HTML */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf9f7;
}
::-webkit-scrollbar-thumb {
  background: #d8d0c4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8aea2;
}

/* Selection color */
::selection {
  background: #f9ddd3;
  color: #6b3323;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #d97757;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Reduce motion 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;
  }
  img {
    transform: none !important;
  }
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal animations (progressive enhancement - only when JS is available) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(254, 252, 247, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(216, 208, 196, 0.4) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Image loading placeholder */
img {
  background-color: #f5f3ef;
}

/* Subtle pattern overlay for sections */
.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(217, 119, 87, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}
