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

/* Scroll reveal animations */
.reveal-up {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-active .reveal-up {
    opacity: 0;
    transform: translateY(24px);
}

.js-active .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.js-active .reveal-up:nth-child(1) { transition-delay: 0.05s; }
.js-active .reveal-up:nth-child(2) { transition-delay: 0.1s; }
.js-active .reveal-up:nth-child(3) { transition-delay: 0.15s; }
.js-active .reveal-up:nth-child(4) { transition-delay: 0.2s; }
.js-active .reveal-up:nth-child(5) { transition-delay: 0.25s; }
.js-active .reveal-up:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(13, 13, 13, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(4px, -4px);
}

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

/* Selection color */
::selection {
    background: rgba(200, 149, 108, 0.3);
    color: #E8D5C0;
}

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid #C8956C;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
    .js-active .reveal-up {
        opacity: 1;
        transform: none;
    }
}
