/* Custom styles for Meridian Lodge #60 */

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

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

/* Scroll reveal animations — only active when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 252, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Hero decorative elements */
.hero-blob {
    animation: float 8s ease-in-out infinite;
}

.hero-blob-2 {
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #f5c0ab;
    color: #7a2916;
}

/* Image aspect ratio utilities */
.aspect-card {
    aspect-ratio: 4 / 3;
}

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

/* Print styles */
@media print {
    nav, #contactForm, .scroll-reveal { display: none; }
    body { color: #000; background: #fff; }
}
