/* Base styles and custom overrides */
html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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:nth-child(2) {
        transition-delay: 0.1s;
    }
    
    .reveal:nth-child(3) {
        transition-delay: 0.2s;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(48, 77, 48, 0.08);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #99be99;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 1px solid #4a7a4a;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #eae8e0;
}
