/* Custom styles for Aligntec Auto Repair */

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

/* Service card hover effects */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Review card hover effects */
.review-card {
    transform: translateY(0);
}

.review-card:hover {
    transform: translateY(-4px);
}

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

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

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(4, 107, 69, 0.1);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    background-color: #ffffff;
}

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

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

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

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

/* Prevent layout shift on images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .review-card {
        transition: none;
    }
    
    .service-card:hover,
    .review-card:hover {
        transform: none;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover,
    .review-card:hover {
        transform: none;
        box-shadow: 0 20px 40px -15px rgba(4, 107, 69, 0.15);
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .bg-emerald-600 {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
