/* Custom styles for Bald Rock Group Lodge */

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(91, 44, 111, 0.1);
}

.navbar-scrolled .nav-link {
    color: #5B2C6F !important;
}

.navbar-scrolled .nav-link:hover {
    color: #D97706 !important;
}

.navbar-scrolled .logo-text {
    color: #5B2C6F !important;
}

/* Hero floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card-1 { animation: float 4s ease-in-out infinite; }
.floating-card-2 { animation: float 5s ease-in-out infinite 0.5s; }
.floating-card-3 { animation: float 4.5s ease-in-out infinite 1s; }
.floating-card-4 { animation: float 3.5s ease-in-out infinite 0.3s; }

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.visible[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Subtle gradient text */
.gradient-text {
    background: linear-gradient(135deg, #5B2C6F 0%, #9B59B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #F3EAF8 0%, #E8D5F0 100%);
}
