/* Custom styles for Dale's Auto Repair */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #a1a5aa;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a818a;
}

/* Selection color */
::selection {
    background: #e86a4b;
    color: white;
}

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

/* Feature card hover animation */
.feature-card {
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover animation */
.testimonial-card {
    transform: translateY(0);
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Contact info card hover animation */
.contact-info-card {
    transform: translateY(0);
}
.contact-info-card:hover {
    transform: translateY(-2px);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .font-heading,
.nav-scrolled .text-charcoal-900 {
    color: #1f2329 !important;
}

.nav-scrolled .nav-link {
    color: #5f6670 !important;
}

.nav-scrolled .nav-link:hover {
    color: #d45132 !important;
    background: #fff4f0 !important;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animation for elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered animation delay */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Pulse animation for the hero dot */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 143, 106, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 143, 106, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 143, 106, 0);
    }
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #e3e4e6 0%, #f6f6f7 100%);
}

/* Subtle pattern for hero section */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(232, 106, 75, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 106, 75, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(232, 106, 75, 0.06) 0%, transparent 50%);
}

/* Prevent layout shift on form inputs */
input, textarea, select {
    font-size: 1rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
