/* Custom styles for Turnpike Tavern */

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

/* Scroll reveal base - content visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal when animation is enabled */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }

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

    .reveal.animate-in.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    img:hover {
        transform: none;
    }
}

/* Image hover transitions */
img {
    transition: transform 0.7s ease;
}

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

#navbar.scrolled {
    background-color: rgba(1, 26, 22, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

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

::-webkit-scrollbar-track {
    background: #042b26;
}

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

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

/* Selection color */
::selection {
    background-color: rgba(212, 165, 116, 0.3);
    color: #042b26;
}

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

/* Subtle pattern for section backgrounds */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 165, 116, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}
