/* ========================================
   Boomerang Bistro — Custom Styles
   Premium Dark Luxury Food Truck Site
======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #0d1410;
    color: #faf8f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1410;
}
::-webkit-scrollbar-thumb {
    background: #2d4538;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a853;
}

/* Selection */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #faf8f4;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(13, 20, 16, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #d4a853;
}

/* Mobile Menu */
.menu-line {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 7px;
    transform: rotate(-45deg) translate(3px, -3px);
}

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

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

/* Hero Scroll Indicator */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Menu Cards */
.menu-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 168, 83, 0.08);
    border-radius: 4px;
    padding: 0;
    transition: all 0.4s ease;
}

.menu-card:hover {
    border-color: rgba(212, 168, 83, 0.25);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 83, 0.05);
}

.menu-card h3 {
    transition: color 0.3s ease;
}

.menu-card:hover h3 {
    color: #d4a853;
}

/* Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Gold Accent Line Animations */
@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

/* Button Focus States */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a2923 0%, #24372e 100%);
}

/* Subtle shimmer on gold elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Touch device optimizations */
@media (hover: none) {
    .menu-card:hover {
        transform: none;
    }
    .menu-card:active {
        transform: translateY(-2px);
        border-color: rgba(212, 168, 83, 0.3);
    }
}

/* Print styles */
@media print {
    #navbar, .scroll-indicator, #menu-toggle {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
