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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base — always visible, JS adds animation */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:not(.is-visible) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Mobile menu animations */
.menu-line-1 { transform-origin: center; }
.menu-line-2 { transform-origin: center; }
.menu-line-3 { transform-origin: center; }

#mobile-menu.open .menu-line-1 { transform: translateY(7px) rotate(45deg); }
#mobile-menu.open .menu-line-2 { opacity: 0; }
#mobile-menu.open .menu-line-3 { transform: translateY(-7px) rotate(-45deg); width: 1.5rem; }

/* Subtle pattern overlay for hero */
#top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(76,33,20,0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf7eb; }
::-webkit-scrollbar-thumb { background: #d8a081; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bf6336; }

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

/* Selection color */
::selection { background: #e4beaa; color: #4c2114; }
