/* === Custom Styles for Nidia's Latin Grill === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0807;
}
::-webkit-scrollbar-thumb {
    background: #831533;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a01433;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f5f0eb;
}

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(10, 8, 7, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

/* Image hover effects */
img {
    display: block;
    max-width: 100%;
}

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

/* === Scroll Reveal Animations === */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animated state: only applied via JS for users with JS enabled */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animated {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-left.animated {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-left.animated.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    .reveal-right.animated {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal-right.animated.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #130f0d inset !important;
    -webkit-text-fill-color: #f5f0eb !important;
}
