/* ============================================
   Lois Mann's Restaurant — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6f0;
}
::-webkit-scrollbar-thumb {
    background: #e8a87e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d64a1e;
}

/* Selection color */
::selection {
    background: #f9c4b0;
    color: #772b17;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 252, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8602e;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

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

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

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    display: block;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-image {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-image.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .menu-card {
        opacity: 1;
        transform: translateY(0);
    }
    
    .menu-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-item {
        opacity: 1;
        transform: scale(1);
    }
    
    .gallery-item.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reduced motion: everything visible by default */
@media (prefers-reduced-motion: reduce) {
    .reveal-image,
    .menu-card,
    .gallery-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }
}

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

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #mobile-menu-btn,
    .gallery-item,
    iframe {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
