/* Custom styles for Patten's Automotive */

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating animation for stat cards */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

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

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

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

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #E07A5F 0%, #D4694F 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);
    -webkit-backdrop-filter: blur(10px);
}

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

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

/* Text selection color */
::selection {
    background-color: #E07A5F;
    color: white;
}

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

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

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

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

/* Service card hover effect */
.group:hover .group-hover\\:bg-coral-500 {
    background-color: #E07A5F;
}

.group:hover .group-hover\\:text-white {
    color: white;
}

/* Testimonial card hover effect */
.hover\\:border-coral-500\\/30:hover {
    border-color: rgba(224, 122, 95, 0.3);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #E07A5F;
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.2);
}

/* Button hover effects */
button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Reduced 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;
    }
}
