/* Custom styles for Gateway Savannah */

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

/* Reduced motion support */
@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;
    }
}

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

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

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

.stat-card:nth-child(4) {
    animation-delay: -4.5s;
}

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

/* Room card hover overlay */
.room-card .relative::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(91, 44, 111, 0.1) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(91, 44, 111, 0.1);
}

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

/* Progressive enhancement: animate only when JS is enabled and preference allows */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9B6FC0;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Ensure above-the-fold content is always visible */
#hero,
#hero *,
nav,
nav * {
    opacity: 1 !important;
    visibility: visible !important;
}
