/* ============================================
   La Chista Del Sabor — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* ============================================
   Animations
   ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(25px) scale(1.03); }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 10s ease-in-out infinite;
    animation-delay: 2s;
}

/* ============================================
   Reveal animations (progressive enhancement)
   Only applied when JS is enabled and user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* When JS is disabled or reduced-motion preferred, content is always visible */
.no-js .reveal,
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(59, 10, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 167, 200, 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Menu tabs
   ============================================ */
.menu-tab {
    background: transparent;
    border: 1px solid rgba(244, 167, 200, 0.2);
    color: #f9d0e3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.menu-tab.active {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #3b0a18;
}

.menu-tab.active:hover {
    background: #fcd34d;
    border-color: #fcd34d;
    color: #3b0a18;
}

/* ============================================
   Mobile menu
   ============================================ */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
}

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

::-webkit-scrollbar-track {
    background: #3b0a18;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9d234a;
}

/* ============================================
   Focus visible
   ============================================ */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}
