/* Custom styles for The Garage Gastropub & Social */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

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

#navbar.scrolled .nav-link {
    color: #334155;
}

#navbar.scrolled .font-serif.text-slate-900 {
    color: #0f172a;
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(2) { animation-delay: 0.15s; animation-fill-mode: both; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; animation-fill-mode: both; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; animation-fill-mode: both; }
.hero-content > *:nth-child(5) { animation-delay: 0.6s; animation-fill-mode: both; }

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Mobile menu */
#mobileMenu.open {
    transform: translateX(0);
}

/* Menu item hover effect */
.group:hover h4 {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* Button hover lift */
button, a {
    transition: all 0.3s ease;
}

/* Image hover zoom container */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: white;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
