/* Custom styles for Colonial Bar & Liquors */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f3eddf;
}
::-webkit-scrollbar-thumb {
    background: #2f4e29;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a6233;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(47, 78, 41, 0.08);
}

#navbar.scrolled .font-serif {
    color: #1f331c;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    
    /* Staggered delays */
    .reveal[data-delay="100"] { transition-delay: 100ms; }
    .reveal[data-delay="200"] { transition-delay: 200ms; }
    .reveal[data-delay="300"] { transition-delay: 300ms; }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

.hero-float-1 {
    animation: float 6s ease-in-out infinite;
}

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

.hero-float-3 {
    animation: float 7s ease-in-out infinite;
}

/* Button hover glow */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #93be8a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #93be8a;
    color: #1f331c;
}
