/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

::selection { background: rgba(212, 160, 23, 0.3); color: #f5f0e8; }

/* ===== TAILWIND EXTENSIONS ===== */
@layer base {
    .font-playfair { font-family: 'Playfair Display', serif; }
    .font-sans { font-family: 'Inter', system-ui, sans-serif; }
}

/* ===== NAV ===== */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#nav.scrolled {
    background: rgba(10, 15, 13, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a017;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

.menu-line {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* ===== HERO ===== */
#hero {
    position: relative;
}

/* ===== MENU CARDS ===== */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.menu-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 160, 23, 0.06);
}

/* ===== GOLD ACCENT LINE ===== */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 5s ease-in-out infinite 0.5s; }
.float-3 { animation: float 7s ease-in-out infinite 1s; }

/* ===== INPUT FOCUS ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #hero { min-height: 100vh; }
    h1 { font-size: 2.75rem !important; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
