/* Custom styles for Snowriver Lodge 385 */

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

/* Scroll reveal base — always visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state for reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Default state for elements that will be revealed */
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation transitions */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(26, 39, 68, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #1a2744;
}

#navbar.scrolled .nav-menu-btn span {
    background: #1a2744;
}

#navbar.scrolled .nav-link {
    color: rgba(26, 39, 68, 0.7);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile link transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* Hamburger animation */
#menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8da4d0;
}

/* Selection color */
::selection {
    background: rgba(200, 164, 90, 0.2);
    color: #1a2744;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #c8a45a;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    #navbar, #menu-btn, .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
