/* Custom styles for Darryl's Auto Service */

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Service card hover effect */
.service-card:hover .w-14 {
    transform: scale(1.1) rotate(5deg);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3a6340;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Button focus styles */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Form input focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(77, 128, 83, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2.5rem;
    }
    
    .font-display:where(.text-4xl) {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav, .animate-bounce, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
