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

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #FAF7F5;
}

::-webkit-scrollbar-thumb {
    background: #D97478;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7A1018;
}

/* Selection */
::selection {
    background: #F9E4E5;
    color: #3D0C11;
}

/* Scroll reveal base - visible by default, enhanced by JS */
.reveal {
    opacity: 1;
    transform: none;
    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);
}

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

.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 247, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(122, 16, 24, 0.06);
}

.nav-transparent {
    background: transparent !important;
}

/* Mobile menu button animation */
.nav-line.active-1 {
    transform: translateY(5px) rotate(45deg);
}

.nav-line.active-2 {
    opacity: 0;
    transform: translateX(10px);
}

.nav-line.active-3 {
    transform: translateY(-5px) rotate(-45deg);
}

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

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

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
