/* Custom styles for Erie Masonic Lodge */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base - always visible by default for accessibility */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active via .js class */
.js .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal,
    .js .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(12, 27, 58, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

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

::-webkit-scrollbar-track {
    background: #0c1b3a;
}

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

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

/* Image aspect ratios */
img {
    display: block;
    max-width: 100%;
}

/* Selection color */
::selection {
    background: #d4912a;
    color: #0c1b3a;
}
