/* Custom styles for Overlea Deli */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #12723f;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #faf8f4;
}

/* Feature items animation on scroll */
.feature-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Menu cards */
.menu-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease;
}

/* Gallery items */
.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .menu-card,
    .gallery-item,
    .feature-item {
        transition: none;
    }
    
    .menu-card img,
    .gallery-item img {
        transition: none;
    }
}

/* Navbar transition states */
nav.scrolled {
    background: rgba(5, 24, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 175, 90, 0.1);
}

nav.scrolled .logo-text {
    color: #faf8f4;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Gold shimmer effect on hover */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Subtle pulse for CTA buttons */
@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(201, 162, 39, 0.15); }
}

/* Loading state for images */
img {
    background: linear-gradient(135deg, #072e1a 0%, #0a4326 100%);
}

/* Section divider decoration */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af5a, transparent);
}

/* Image hover overlay */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 24, 16, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* Asymmetric hero image animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #mobile-menu-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-forest-900, .bg-forest-800 {
        background: white !important;
    }
}
