/* Custom styles for Sidwell Auto Repair */

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

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        transition: none;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f9f6;
}
::-webkit-scrollbar-thumb {
    background: #93cb9e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5aad6b;
}

/* Selection color */
::selection {
    background: #c5e3cc;
    color: #0c3416;
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #328f45;
    box-shadow: 0 0 0 3px rgba(50, 143, 69, 0.15);
}

/* Image lazy loading fade */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}
