/* Custom styles for Crawford's Auto Detailing */

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

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

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

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

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

/* Animation classes */
.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);
}

/* Pulse animation for badge */
@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ff5c43 0%, #ff8a73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading state for buttons */
button:disabled,
input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #ff5c43;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

#mobileMenu.closed {
    max-height: 0;
    opacity: 0;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

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