/* Custom styles for STL City Grill */

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

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

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

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Intersection Observer animations */
.observe-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.observe-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.observe-animate.stagger-1 { transition-delay: 0.1s; }
.observe-animate.stagger-2 { transition-delay: 0.2s; }
.observe-animate.stagger-3 { transition-delay: 0.3s; }
.observe-animate.stagger-4 { transition-delay: 0.4s; }

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

::-webkit-scrollbar-track {
    background: #0c371d;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5bb978;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e1f7e7 0%, #c3ebcf 100%);
}

/* Hover card lift effect */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

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

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

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

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 30px white inset;
    -webkit-text-fill-color: #1a1a1a;
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
