/* ========================================
   Jamaican Mama's Cooking — Custom Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #b91c2c;
    color: #fff;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 15, 17, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ========================================
   Menu Cards
   ======================================== */
.menu-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(185, 28, 44, 0.15);
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement: only active when JS is enabled
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .js-active .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .js-active .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .js-active .reveal-delay-1 { transition-delay: 0.1s; }
    .js-active .reveal-delay-2 { transition-delay: 0.2s; }
    .js-active .reveal-delay-3 { transition-delay: 0.3s; }
    .js-active .reveal-delay-4 { transition-delay: 0.4s; }
    .js-active .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ========================================
   Image Hover Effects
   ======================================== */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff965a;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}
