/* Custom styles for Longmeadow Diner */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ed;
}
::-webkit-scrollbar-thumb {
    background: #2d5f2d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d7a3d;
}

/* Selection color */
::selection {
    background: #2d5f2d;
    color: #fafaf5;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(20, 39, 20, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled #nav-logo-text {
    color: #fafaf5 !important;
}

#navbar.scrolled a:not([class*="bg-"]) {
    color: #dce8dc !important;
}

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Image hover effects */
img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Subtle pattern for gallery section */
.bg-cream-100 {
    background-image: radial-gradient(circle at 1px 1px, rgba(45, 95, 45, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}
