/* Custom styles for Masonic Lodge */

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

/* Dark mode support */
[data-theme="dark"] {
    --bg-primary: #102a43;
    --text-primary: #f0f4f8;
    --text-secondary: #bcccdc;
}

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

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

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

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

/* Navbar transitions */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-scrolled {
    background: rgba(16, 42, 67, 0.95) !important;
}

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

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

.stat-card-1 {
    animation: float 4s ease-in-out infinite;
}

.stat-card-2 {
    animation: float 4s ease-in-out infinite 0.5s;
}

.stat-card-3 {
    animation: float 4s ease-in-out infinite 1s;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Card hover effects */
.room-card:hover .room-image {
    transform: scale(1.05);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Print styles */
@media print {
    nav, .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .stat-card-1,
    .stat-card-2,
    .stat-card-3 {
        animation: none;
    }
}
