/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0D0A07;
    color: #F5E6D3;
}

::selection {
    background-color: rgba(196, 112, 63, 0.4);
    color: #FDF8F0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0A07;
}
::-webkit-scrollbar-thumb {
    background: #332A22;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4703F;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group img {
        transition: none;
    }
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(13, 10, 7, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 184, 150, 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

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

/* ===== Buttons ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Image hover zoom ===== */
.group img {
    will-change: transform;
}

/* ===== Focus styles ===== */
:focus-visible {
    outline: 2px solid #C4703F;
    outline-offset: 2px;
}

/* ===== Mobile menu animation ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Gold shimmer on CTA ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== Loading state for images ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* ===== Section transitions ===== */
section {
    position: relative;
}

/* ===== Custom selection for display text ===== */
.font-display::selection {
    background-color: rgba(196, 112, 63, 0.5);
}
