/* Custom styles for Krepline Trucking & Excavating */

html {
    scroll-behavior: smooth;
}

/* Ensure all text is readable against backgrounds */
body {
    background-color: #faf9f6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ef;
}
::-webkit-scrollbar-thumb {
    background: #c5dbc9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9abf9e;
}

/* Nav shadow on scroll */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(42, 80, 49, 0.08);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 160, 114, 0.2);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
