/* ============================================
   Pie Goddess — Custom Styles
   Premium Dark Luxury: Forest Green + Gold
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #faf8f4;
}

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

#navbar.scrolled {
    background: rgba(10, 13, 8, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 67, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

/* ---------- Mobile Menu ---------- */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-nav-link {
    position: relative;
}

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

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

/* ---------- Hero Content ---------- */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-stats {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Section Reveal (Progressive Enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .section-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .section-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease;
    }

    .menu-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-card:hover {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 168, 67, 0.15);
    }
}

/* ---------- Gold Gradient Text ---------- */
.text-gradient-gold {
    background: linear-gradient(135deg, #f0d68a, #d4a843, #b8892e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Button Ripple ---------- */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-gold:hover::before {
    opacity: 1;
}

/* ---------- Image Hover ---------- */
img {
    display: block;
    max-width: 100%;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2d3e1c, #1a2610);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #364d21, #2d3e1c);
}

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

/* ---------- Loading State ---------- */
.page-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-loading.loaded {
    opacity: 1;
}
