/* ========================================
   Lutong Pinoy Restaurant — Custom Styles
   ======================================== */

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f0;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Navbar transitions */
.navbar-text {
    transition: color 0.3s ease;
}
.navbar-subtext {
    transition: color 0.3s ease;
}

/* Scroll reveal animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Dish card image aspect ratio fix */
.dish-card img {
    aspect-ratio: 4/3;
}

/* Gallery image aspect ratio fix */
.gallery-item img {
    aspect-ratio: auto;
}

/* Mobile menu link styles */
.mobile-link {
    opacity: 1;
    transform: none;
}

/* Hero text rendering fix */
h1, h2, h3 {
    text-rendering: optimizeLegibility;
}

/* Selection color */
::selection {
    background: #065f46;
    color: #fefdf8;
}

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

/* Smooth image loading */
img {
    loading: lazy;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menu-toggle {
        display: none !important;
    }
    body {
        color: #065f46;
        background: white;
    }
    .bg-emerald-900, .bg-emerald-950 {
        background: #065f46 !important;
        color: white !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .bg-emerald-700 {
        background-color: ButtonText;
    }
    .text-emerald-700 {
        color: ButtonText;
    }
}
