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

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

body {
    margin: 0;
    background-color: #080604;
    color: #F9EDE2;
}

::selection {
    background-color: rgba(200, 159, 95, 0.3);
    color: #FDF8F4;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0A07;
}
::-webkit-scrollbar-thumb {
    background: #5E2F1C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C89F5F;
}

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #C89F5F, #D4B87A);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: #D4B87A !important;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(8, 6, 4, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(94, 47, 28, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #C89F5F;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 80%;
}
.mobile-link:hover {
    color: #D4B87A !important;
}

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

/* Fallback: ensure content is visible if JS is disabled */
.no-js .reveal,
.js-enabled .reveal {
    /* JS will add .revealed class */
}

/* ===== GOLD LINE ACCENTS ===== */
.gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #C89F5F, transparent);
}

/* ===== CARD HOVER EFFECTS ===== */
.menu-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover {
    box-shadow: 0 8px 40px rgba(200, 159, 95, 0.08);
}

/* ===== IMAGE GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 6, 4, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* ===== FORM STYLES ===== */
input:focus,
textarea:focus {
    border-color: rgba(200, 159, 95, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(200, 159, 95, 0.1) !important;
}

input::placeholder,
textarea::placeholder {
    color: #7A3D23;
}

/* ===== BUTTON RIPPLE ===== */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}
.btn-shimmer:hover::before {
    left: 100%;
}

/* ===== DECORATIVE ELEMENTS ===== */
.gold-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C89F5F;
    display: inline-block;
}

/* ===== ACCESSIBILITY ===== */
@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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}
