/* ===== Custom Styles for Ho Ho Wok ===== */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (no JS fallback) */
.menu-card,
.review-card,
section > div > div > div {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.5s ease, box-shadow 0.5s ease;
}

/* Animated state (applied via JS) */
.menu-card.reveal,
.review-card.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.menu-card.reveal.revealed,
.review-card.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for menu cards */
.menu-card:nth-child(1) { transition-delay: 0ms; }
.menu-card:nth-child(2) { transition-delay: 80ms; }
.menu-card:nth-child(3) { transition-delay: 160ms; }
.menu-card:nth-child(4) { transition-delay: 240ms; }
.menu-card:nth-child(5) { transition-delay: 320ms; }
.menu-card:nth-child(6) { transition-delay: 400ms; }

/* Stagger delays for review cards */
.review-card:nth-child(1) { transition-delay: 0ms; }
.review-card:nth-child(2) { transition-delay: 120ms; }
.review-card:nth-child(3) { transition-delay: 240ms; }

/* ===== Navbar Scroll State ===== */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

nav.scrolled .font-serif {
    color: #272733;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #EDEDF0;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Hero Floating Card ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

/* ===== Smooth Image Loading ===== */
img {
    image-rendering: auto;
}

/* ===== Selection Color ===== */
::selection {
    background: #FFDCD7;
    color: #272733;
}

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .menu-card,
    .review-card,
    section > div > div > div {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .absolute.-bottom-6.-left-6 {
        animation: none;
    }
    #mobile-menu {
        animation: none;
    }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 480px) {
    .font-serif.text-5xl {
        font-size: 2rem;
    }
}
