/* Custom styles for Dego Dame's Bar & Grill */

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Stat card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-card:nth-child(1) { animation: float 3s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: float 3s ease-in-out infinite 0.5s; }
.stat-card:nth-child(3) { animation: float 3s ease-in-out infinite 1s; }
.stat-card:nth-child(4) { animation: float 3s ease-in-out infinite 1.5s; }

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .stat-card {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

#mobile-menu.open {
    max-height: 400px;
    padding: 0.5rem 0;
}

/* Subtle hover lift on cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(140, 40, 40, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8c2828;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #dc6363;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure all images have smooth loading */
img {
    loading: lazy;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    .mobile-link {
        padding: 1rem 1rem !important;
        font-size: 1.1rem !important;
    }
}
