/* Masonic Lodge Room — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #021a12;
}
::-webkit-scrollbar-thumb {
    background: #065f3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #077a4b;
}

/* Selection color */
::selection {
    background: rgba(196, 144, 46, 0.3);
    color: #f5f0e8;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Room card hover effect */
.room-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile menu link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* 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;
    }
}

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

/* Navbar background transition */
.navbar-scrolled {
    background: rgba(2, 26, 18, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(196, 144, 46, 0.1);
}
