/* Custom Styles for Loko Snacks */

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

/* Navbar Scroll State */
#navbar.scrolled {
    background-color: rgba(253, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

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

#navbar.scrolled .font-serif {
    color: #7B2D3B;
}

#navbar.scrolled .w-10 {
    background-color: #7B2D3B;
}

/* Mobile Menu Active State */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open #bar1 {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.5rem;
}

/* Menu Card Hover */
.menu-card {
    transform: translateY(0);
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }

    .menu-card:hover {
        transform: none;
    }

    img {
        transition: none;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background-color: #7B2D3B;
    color: #F5E6D3;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #931e2b;
}
