/* ========================================
   PG BBQ — Custom Styles
   Classic & Elegant · Deep Navy + Warm Gold
======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Navbar Scroll State ---------- */
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(10, 25, 47, 0.08);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

.mobile-link {
    position: relative;
    padding-left: 0;
}

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

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

/* ---------- Menu Cards ---------- */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(10, 25, 47, 0.15);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Only apply animations when user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ---------- Selection Color ---------- */
::selection {
    background: #c9a227;
    color: #0a192f;
}

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

::-webkit-scrollbar-track {
    background: #faf9f6;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c9a227;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    #hero h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .menu-card img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .font-serif {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    
    #hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
