/* === Base & Typography === */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #B85C38;
    color: #FAF7F2;
}

/* === Navbar === */
.nav-logo {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo {
    color: #1A1614;
}

#navbar.scrolled {
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 22, 20, 0.08);
}

#navbar.transparent .nav-logo {
    color: #1A1614;
}

/* === Mobile Menu === */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

#bar3.open {
    width: 100%;
}

#bar1.open {
    transform: translateY(6px) rotate(45deg);
}

#bar2.open {
    transform: rotate(-45deg);
}

#bar3.open {
    transform: translateX(0);
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        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.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; }
}

/* === Button Focus States === */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #B85C38;
    outline-offset: 2px;
}

/* === Form Inputs === */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}

/* === Smooth image loading === */
img {
    loading: lazy;
}

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

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

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

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

/* === Print styles === */
@media print {
    nav, #contact, .gallery { display: none; }
    body { background: white; color: black; }
}
