/* Custom Styles for Vallarta Mexican Grill */

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

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

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

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

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

/* Selection Color */
::selection {
    background: #4a7a4a;
    color: #fdfcfa;
}

/* Hero Gradient Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#hero {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-scrolled #nav-text,
.nav-scrolled #nav-link-menu,
.nav-scrolled #nav-link-about,
.nav-scrolled #nav-link-gallery,
.nav-scrolled #nav-link-visit {
    color: #2a442a !important;
}

.nav-scrolled #nav-logo {
    color: #2a442a !important;
}

/* Menu Item Hover */
.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateX(4px);
}

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

/* Button Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #4a7a4a;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    #hero {
        animation: none;
    }
    
    img {
        transition: none;
    }
    
    .menu-item {
        transition: none;
    }
}

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

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

/* Decorative Divider */
.divider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, currentColor, transparent);
    opacity: 0.3;
}

/* Card Hover Lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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