/* ═══════════════════════════════════════════════════════════
   IMPERIAL QUEEN CAFE — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Scroll Reveal Base (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Menu Tabs ── */
.menu-tab {
    background: transparent;
    color: #1e2d42;
    border: 2px solid transparent;
    cursor: pointer;
}
.menu-tab:hover {
    border-color: #d45834;
    color: #d45834;
}
.menu-tab.active {
    background: #d45834;
    color: #fdf8ec;
    border-color: #d45834;
}
.menu-tab.active:hover {
    background: #c04020;
    border-color: #c04020;
    color: #fdf8ec;
}

/* ── Navbar Scroll State ── */
.nav-scrolled {
    background: rgba(253, 248, 236, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}
.nav-scrolled #nav-logo-text {
    color: #142030;
}

/* ── Hero Nav Links (light on dark) ── */
#hero .nav-link {
    color: rgba(253, 240, 235, 0.7);
}
#hero .nav-link:hover {
    color: #f5c4b0;
}

/* ── Hero Scroll Indicator ── */
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}
#hero .absolute.bottom-8 {
    animation: bounce 2s ease-in-out infinite;
}

/* ── Gallery Scroll Animation ── */
@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    display: flex;
    gap: 1rem;
    animation: scroll-gallery 30s linear infinite;
}
.animate-scroll:hover {
    animation-play-state: paused;
}

/* ── Mobile Menu Transitions ── */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    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; }

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

/* ── Image Placeholder Fallback ── */
img {
    background: linear-gradient(135deg, #faf0d0 0%, #f5c4b0 100%);
}
