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

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

body {
    overflow-x: hidden;
}

/* Scroll reveal base — content is visible by default, JS adds animation */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.animated {
        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.animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(28, 25, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(212, 165, 116, 0.08);
}

#navbar.scrolled .navbar-link {
    color: rgba(245, 237, 227, 0.85);
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    border: none;
    color: rgba(245, 237, 227, 0.4);
    cursor: pointer;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.menu-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #C2704E;
    transition: width 0.3s ease;
}

.menu-tab.active {
    color: #D4A574;
}

.menu-tab.active::after {
    width: 100%;
}

.menu-tab:hover {
    color: #D4A574;
}

/* Gallery hover */
.gallery-item {
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: #1C1917;
}

::-webkit-scrollbar-thumb {
    background: #44403C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C2704E;
}

/* Selection */
::selection {
    background: rgba(194, 112, 78, 0.3);
    color: #F5EDE3;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

/* Menu content transitions */
.menu-content {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Parallax helper */
.parallax-slow {
    will-change: transform;
}
