/* ============================================
   Delta Lodge — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base styles */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf4f8;
}
::-webkit-scrollbar-thumb {
  background: #dbaad0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c27ab8;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-blur-xl;
  border-bottom: 1px solid rgba(219, 170, 208, 0.3);
  box-shadow: 0 1px 20px rgba(163, 80, 152, 0.08);
}

nav.scrolled .nav-title {
  color: #4e2648;
}

nav.scrolled .nav-link {
  color: #6f3165;
}

nav.scrolled .nav-link:hover {
  color: #a35098;
}

/* Floating card animations */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Room card hover */
.room-card {
  transform: translateY(0);
}

.room-card:hover {
  transform: translateY(-4px);
}

/* Amenity card hover */
.amenity-card {
  transform: translateY(0);
}

.amenity-card:hover {
  transform: translateY(-4px);
}

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

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

.mobile-link {
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #a35098;
}

/* Scroll reveal base (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  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);
  }
}

/* Hero decorative pulse */
@keyframes soft-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

.bg-plum-200\/30 {
  animation: soft-pulse 8s ease-in-out infinite;
}

.bg-amber-200\/40 {
  animation: soft-pulse 10s ease-in-out infinite reverse;
}

/* Nav link underline animation */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #a35098;
  transition: width 0.2s ease;
  margin-top: 2px;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a35098;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print styles */
@media print {
  nav, .floating-card, #mobile-menu-btn {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
