/* Custom styles for K Town Food Court */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3b6140;
}

/* Navigation active state */
.nav-link.active {
    color: #4d7d52;
}

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

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

/* Scroll reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(30px);
    }
    
    .reveal-left {
        transform: translateX(-30px);
    }
    
    .reveal-right {
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #e3efe7 25%, #f2eadd 50%, #e3efe7 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;
}

/* Form input focus states */
input:focus,
textarea:focus {
    border-color: #4d7d52;
    box-shadow: 0 0 0 3px rgba(77, 125, 82, 0.2);
}

/* Gallery hover overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 28, 17, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}
