:root {
    --nav-text: rgba(250, 248, 245, 0.95);
    --nav-text-muted: rgba(250, 248, 245, 0.65);
    --nav-cta-bg: rgba(250, 248, 245, 0.15);
    --nav-cta-text: white;
    --nav-scrolled-text: #2C1E16;
    --nav-scrolled-muted: #6B5B50;
    --nav-scrolled-cta-bg: #c93e1e;
    --nav-scrolled-cta-text: white;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar transition */
#navbar {
    --nav-text: rgba(250, 248, 245, 0.95);
    --nav-text-muted: rgba(250, 248, 245, 0.65);
    --nav-cta-bg: rgba(250, 248, 245, 0.15);
    --nav-cta-text: white;
}

#navbar.scrolled {
    background: rgba(44, 30, 22, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 184, 138, 0.1);
    --nav-text: #2C1E16;
    --nav-text-muted: #6B5B50;
    --nav-cta-bg: #c93e1e;
    --nav-cta-text: white;
}

#navbar.scrolled .border-2 {
    border-color: #2C1E16;
}

/* Scroll reveal - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

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

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

/* Selection */
::selection {
    background: #fce4db;
    color: #2C1E16;
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #c93e1e;
}

/* Smooth image loading */
img {
    background-color: #ece2cc;
}
