/* ============================================
   Elks Bpoe Ellsworth Lodge — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #42a378;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6ec09b;
}

/* Selection */
::selection {
    background: #42a378;
    color: #f0f4f8;
}

/* Nav transitions */
.nav-text {
    transition: color 0.4s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #6ec09b;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* Hero animation elements */
.hero-element {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

.reveal[data-reveal-delay="4"] {
    transition-delay: 0.4s;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

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

/* Print styles */
@media print {
    nav, #mobile-toggle, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-midnight-900, .bg-midnight-950 {
        background: #fff !important;
        color: #000 !important;
    }
}
