/* Custom styles for El Sazon de Mexico */

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

/* Selection color */
::selection {
    background-color: #86efac;
    color: #0f172a;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow {
        animation: none;
    }
}

/* Scroll reveal base — content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Apply animation only when JS adds the class, and only if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure reveal works without JS */
.no-js .reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
}

.navbar-transparent {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
}

/* Hero stat cards */
.stat-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menu card hover */
.menu-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

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

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #86efac, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fefdf8;
}

::-webkit-scrollbar-thumb {
    background: #d9e2ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bcccff;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f4ff 0%, #dcfce7 100%);
}

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