/* ===================================
   Tacos Las Multias — Custom Styles
   Premium Dark Luxury Theme
   Burgundy + Blush + Gold
   =================================== */

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

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

body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(168, 28, 52, 0.6);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #a81c34, #d4a843);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #cc2747, #e8c56d);
}

/* ---------- Scroll Animations (Progressive Enhancement) ---------- */
@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; }
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    backdrop-filter: none;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.menu-line {
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ---------- Hero ---------- */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #050505);
    pointer-events: none;
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% { transform: translateY(-16px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ---------- Menu Cards ---------- */
.menu-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(168, 28, 52, 0.15);
}

/* ---------- Gallery Items ---------- */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(212, 168, 67, 0.3);
}

/* ---------- Input Focus Effects ---------- */
input:focus,
textarea:focus {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* ---------- Button Hover Glow ---------- */
.bg-gradient-to-r.from-burgundy-700.to-burgundy-600:hover,
.bg-gradient-to-r.from-burgundy-600.to-burgundy-500:hover {
    box-shadow: 0 8px 30px rgba(168, 28, 52, 0.4);
}

/* ---------- Gold Button Hover Glow ---------- */
.bg-gold-500:hover,
.bg-gold-400:hover {
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.4);
}

/* ---------- Gold Text Gradient ---------- */
.text-transparent.bg-clip-text.bg-gradient-to-r {
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------- Decorative Line ---------- */
.h-px.w-8.bg-gold-500\/40,
.h-px.w-12.bg-gold-500\/60 {
    background: linear-gradient(to right, transparent, rgba(212, 168, 67, 0.6), transparent);
}

/* ---------- Image Aspect Ratio Fallback ---------- */
img {
    max-width: 100%;
    height: auto;
}

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

/* ---------- Utility ---------- */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
