/* Custom styles for G & C Diesel */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(253, 251, 247, 0.97) !important;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .font-serif {
    color: #3a2717 !important;
}

.nav-scrolled .text-sand-600 {
    color: #6b4a2e !important;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9f3213;
}

/* Selection color */
::selection {
    background-color: #c04116;
    color: #fdfbf7;
}
