/* Custom styles for The Cooperstown Cocktail Company */

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

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

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

::-webkit-scrollbar-thumb {
    background: #d4a373;
    border-radius: 5px;
}

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

/* Scroll reveal animations */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease-in-out;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #b05c32;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    background: linear-gradient(90deg, #f2eeE0 25%, #f9f7f0 50%, #f2eeE0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

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