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

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: #944B28;
    color: #F9EDE0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #EDE6D8;
}
::-webkit-scrollbar-thumb {
    background: #C4B6A4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #944B28;
}

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

.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; }

/* Navbar */
.navbar-scrolled {
    background-color: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.navbar-dark {
    background-color: rgba(58, 48, 38, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-text-color {
    color: #F9EDE0;
    transition: color 0.3s ease;
}

.navbar-scrolled .nav-text-color {
    color: #3A3026;
}

.navbar-dark .nav-text-color {
    color: #F9EDE0;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #C06E44;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-scrolled .nav-link {
    color: #4F4438;
}

.navbar-scrolled .nav-link:hover {
    color: #944B28;
}

.navbar-dark .nav-link {
    color: #DCD0C0;
}

.navbar-dark .nav-link:hover {
    color: #D4906A;
}

.navbar-scrolled .nav-menu-btn span {
    background-color: #3A3026;
}

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

.mobile-nav-link {
    position: relative;
}

/* Gallery strip animation */
.gallery-strip {
    display: flex;
    gap: 1rem;
    animation: scroll-gallery 40s linear infinite;
}

@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 5 - 1rem * 5)); }
}

.gallery-strip:hover {
    animation-play-state: paused;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #944B28;
    outline-offset: 2px;
}

/* Button hover lift */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
