/* Custom Styles for Suttons Truck & Auto Repair */

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

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

::-webkit-scrollbar-track {
    background: #1c1917;
}

::-webkit-scrollbar-thumb {
    background: #d97757;
    border-radius: 5px;
}

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

/* Selection Color */
::selection {
    background: #d97757;
    color: #0c0a09;
}

/* Animation Classes */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Nav Active State */
nav a.active {
    color: #d97757;
}

/* Form Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #d97757 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
}

/* Button Hover Effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent Layout Shift */
img {
    content-visibility: auto;
}

/* Loading State for Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
