/* Custom styles for El Lina Restaurant */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf4f7;
}
::-webkit-scrollbar-thumb {
    background: #d9a3b7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a85272;
}

/* Selection color */
::selection {
    background: #d9a3b7;
    color: #2c111a;
}

/* Reduced motion */
@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;
    }
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays */
.reveal[data-reveal="1"] { transition-delay: 0.05s; }
.reveal[data-reveal="2"] { transition-delay: 0.1s; }
.reveal[data-reveal="3"] { transition-delay: 0.15s; }
.reveal[data-reveal="4"] { transition-delay: 0.2s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 244, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(116, 48, 73, 0.08);
}

.nav-scrolled #navbar .font-display {
    color: #502534 !important;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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