/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 175, 85, 0.3);
    color: #faf9f6;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f250f;
}
::-webkit-scrollbar-thumb {
    background: #1d451d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #275c27;
}

/* ========== REVEAL ANIMATIONS (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .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);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* No-JS fallback: ensure content is visible */
.no-js .reveal,
.js-enabled .reveal {
    /* JS will add .revealed class; without JS, opacity stays at initial (visible via cascade) */
}

/* ========== NAV SCROLL STATE ========== */
#site-header.scrolled {
    background: rgba(7, 17, 7, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(29, 69, 29, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#site-header.scrolled .font-serif {
    color: #faf9f6;
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed {
    transform: translateY(-10px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ========== CUSTOM SELECT STYLING ========== */
select option {
    background: #163316;
    color: #f5f3ed;
}

/* ========== FORM FOCUS STATES ========== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ========== IMAGE LOADING ========== */
img {
    background-color: #163316;
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4af55;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SMOOTH TRANSITIONS ========== */
.group:hover .group-hover\:scale-105 {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== GOLD GLOW EFFECTS ========== */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* ========== MOBILE MENU LINKS ========== */
.mobile-link {
    display: block;
    width: 100%;
}

/* ========== ASPECT RATIO HELPERS ========== */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}
