/* ============================================
   LOSO BBQ — Custom Styles
   Classic & Elegant · Emerald + Cream Palette
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* --- Selection --- */
::selection {
    background: #166534;
    color: #fdfcf8;
}

/* --- Scroll Reveal Animations --- */
/* Default state: visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* --- Hero Parallax Subtle --- */
#hero {
    perspective: 1px;
}

#hero .absolute.inset-0 img {
    will-change: transform;
}

/* --- Navbar Transitions --- */
#navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled #nav-logo-text {
    color: #fdfcf8;
}

/* --- Mobile Menu Transitions --- */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* --- Link Underline Hover Effect --- */
a {
    text-decoration: none;
}

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

/* --- Menu Item Hover --- */
#menu ul li {
    transition: transform 0.2s ease;
}

#menu ul li:hover {
    transform: translateX(4px);
}

#menu ul li:hover .font-serif {
    color: #166534;
}

/* --- Image Hover Zoom --- */
#gallery img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#gallery > div > div:hover img {
    transform: scale(1.03);
}

/* --- Counter Animation --- */
.font-serif.text-3xl {
    transition: opacity 0.5s ease;
}

/* --- Smooth Section Transitions --- */
section {
    position: relative;
}

/* --- Decorative Line Animation --- */
.w-12.h-px.bg-emerald-700 {
    transition: width 0.4s ease;
}

/* --- Mobile Link Hover --- */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #4ade80;
    transition: width 0.3s ease, left 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
    left: 0;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobile-menu,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
    }
}

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

/* --- High Contrast --- */
@media (prefers-contrast: high) {
    .font-serif.text-3xl.text-emerald-700 {
        color: #052e16;
    }
    
    .text-emerald-300 {
        color: #86efac;
    }
}
