/* Custom styles for AC Repair website */

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

/* FAQ Accordion Animation */
.faq-toggle:hover {
    background-color: #f8fafc;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content.show {
    max-height: 200px;
    transition: max-height 0.3s ease-in;
}

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

/* Hover effects for service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Brand card hover effects */
.brand-card {
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: scale(1.05);
}

/* Sticky header */
.sticky-header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Form focus effects */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Button hover animations */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Loading animation for forms */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    border-color: #ffffff transparent #ffffff transparent;
    animation: loading 1.2s linear infinite;
}

@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Trust badge animations */
.trust-badge {
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: scale(1.1);
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Service section background patterns */
.service-section {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.05) 0%, transparent 50%);
}

/* Brand grid responsive improvements */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact form improvements */
.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* FAQ Section improvements */
.faq-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Footer background */
.footer-bg {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Sticky elements z-index management */
.sticky-call-btn {
    z-index: 1000;
}

.sticky-whatsapp-btn {
    z-index: 999;
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

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