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

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

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

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

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

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

/* Selection color */
::selection {
    background: #f9d4c9;
    color: #42110b;
}

/* Geometric pattern overlay for hero */
.hero-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(228, 96, 72, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 2s infinite;
}

/* Pulse animation for CTA buttons */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(228, 96, 72, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(228, 96, 72, 0); }
}

.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

/* Print styles */
@media print {
    nav, #contact-form, .fixed {
        display: none;
    }
    
    body {
        background: white;
    }
}
