/* Custom styles for Villa Sports Lounge */

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

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

/* Header scroll state */
#site-header.scrolled {
  background-color: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#site-header.scrolled .header-logo-text {
  color: #1C1917;
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  max-height: 500px;
}

.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d94f26;
  transition: width 0.3s ease;
}

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

/* Scroll reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FDF8F3;
}

::-webkit-scrollbar-thumb {
  background: #d4c08e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d94f26;
}

/* Image hover effects */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* Selection color */
::selection {
  background-color: #f4b5a0;
  color: #5e1e0f;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid #d94f26;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hero asymmetric layout fix */
@media (max-width: 1023px) {
  #hero .lg\\:col-span-5 {
    order: -1;
  }
}

/* Map container responsive */
@media (max-width: 767px) {
  .min-h-\[400px\] {
    min-height: 300px;
  }
}
