/* ============================================
   Mexican Mood — Premium Dark Luxury Styles
   Midnight Blue + Mint + Gold Palette
   ============================================ */

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

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

body {
    background-color: #040b18;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040b18;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #5eead4, #f5c842);
    border-radius: 4px;
}

/* --- Selection --- */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #ffffff;
}

/* --- Glass Card --- */
.glass-card {
    background: rgba(10, 26, 53, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Gold Button --- */
.gold-btn {
    background: linear-gradient(135deg, #f5c842 0%, #fcd34d 50%, #fde68a 100%);
    color: #040b18;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(245, 200, 66, 0.3), 0 0 60px rgba(245, 200, 66, 0.1);
    position: relative;
    overflow: hidden;
}

.gold-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.gold-btn:hover::before {
    left: 100%;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 200, 66, 0.4), 0 0 80px rgba(245, 200, 66, 0.15);
}

.gold-btn:active {
    transform: translateY(0);
}

/* --- Glass Button --- */
.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-btn:hover {
    background: rgba(94, 234, 212, 0.1);
    border-color: rgba(94, 234, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(94, 234, 212, 0.15);
}

/* --- Gold Badge --- */
.gold-badge {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, rgba(245, 200, 66, 0.2), rgba(253, 230, 138, 0.1));
    border: 1px solid rgba(245, 200, 66, 0.4);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f5c842;
}

/* --- Input Fields --- */
.input-field {
    background: rgba(10, 26, 53, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: rgba(94, 234, 212, 0.5);
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.1);
    background: rgba(10, 26, 53, 0.8);
}

/* --- Section Labels --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Navigation --- */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(4, 11, 24, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #5eead4, #f5c842);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #5eead4 !important;
}

/* --- Mobile Menu --- */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Hero Orbs --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(94, 234, 212, 0.08);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(245, 200, 66, 0.06);
    bottom: -50px;
    left: -100px;
    animation-delay: -3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(94, 234, 212, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Hero Lines --- */
.hero-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(245, 200, 66, 0.15), transparent);
    height: 1px;
    width: 300px;
}

.line-1 {
    top: 25%;
    left: -50px;
    transform: rotate(-15deg);
    animation: lineFloat 6s ease-in-out infinite;
}

.line-2 {
    bottom: 30%;
    right: -50px;
    transform: rotate(10deg);
    animation: lineFloat 6s ease-in-out infinite reverse;
    animation-delay: -2s;
}

.line-3 {
    top: 60%;
    left: 10%;
    width: 200px;
    background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.1), transparent);
    animation: lineFloat 8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes lineFloat {
    0%, 100% { opacity: 0.5; transform: translateX(0) rotate(var(--r, 0deg)); }
    50% { opacity: 1; transform: translateX(20px) rotate(var(--r, 0deg)); }
}

/* --- Hero Animations --- */
.hero-eyebrow {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: #5eead4;
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* --- Floating Food Images --- */
.hero-float-img {
    position: absolute;
    opacity: 0;
    animation: floatIn 1s ease forwards;
}

.float-1 {
    top: 15%;
    left: 5%;
    animation-delay: 1.2s;
    animation: floatImg1 1s ease forwards, floatY 6s ease-in-out infinite 1s;
}

.float-2 {
    top: 20%;
    right: 5%;
    animation-delay: 1.4s;
    animation: floatImg2 1s ease forwards, floatY 7s ease-in-out infinite 1.4s;
}

.float-3 {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.6s;
    animation: floatImg3 1s ease forwards, floatY 5s ease-in-out infinite 1.6s;
}

@keyframes floatIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 0.7; transform: scale(1); }
}

@keyframes floatImg1 {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

@keyframes floatImg2 {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

@keyframes floatImg3 {
    from { opacity: 0; }
    to { opacity: 0.5; }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Features Strip --- */
.features-strip {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-item {
    opacity: 0;
    transform: translateY(20px);
}

.feature-item.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Menu Tabs --- */
.menu-tab {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(94, 234, 212, 0.3);
}

.menu-tab.active {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(94, 234, 212, 0.1));
    border-color: rgba(94, 234, 212, 0.5);
    color: #5eead4;
}

/* --- Menu Cards --- */
.menu-card {
    opacity: 0;
    transform: translateY(20px);
}

.menu-card.visible {
    animation: fadeInUp 0.5s ease forwards;
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 11, 24, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Visit Cards --- */
.visit-card {
    opacity: 0;
    transform: translateY(20px);
}

.visit-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Social Links --- */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(94, 234, 212, 0.15);
    color: #5eead4;
    transform: translateY(-3px);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    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; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-float-img {
        display: none;
    }

    .about-img-secondary {
        display: none !important;
    }

    .features-strip {
        margin-top: -40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.col-span-2 {
        col-span: 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.col-span-2 {
        col-span: 1;
        row-span: 1;
    }
}
