/* County Line Automotive — Custom Styles */

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

/* Base selection color */
::selection {
    background-color: #c5dbaa;
    color: #1a2a10;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(44, 67, 27, 0.08);
}

/* Service card hover effect */
.service-card {
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: #ffffff;
}

/* Fade-in animations for scroll reveal */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 80ms; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 160ms; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 240ms; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 320ms; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 400ms; }

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

#mobile-menu.open {
    max-height: 320px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-up {
        opacity: 1;
        transform: none;
    }
    
    .service-card {
        transition: none;
    }
}
