/* Custom CSS for HVAC Services Green Valley AZ */

/* Inter font import already handled in HTML */
* {
    box-sizing: border-box;
}

.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

/* Header responsiveness improvements */
@media (max-width: 1023px) {
    .header-logo h1 {
        font-size: 1.125rem !important; /* 18px */
    }
    
    .header-logo p {
        font-size: 0.75rem !important; /* 12px */
    }
    
    .mobile-call-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .mobile-menu-btn {
        padding: 0.5rem;
    }
}

@media (max-width: 640px) {
    .header-logo {
        flex: 1;
    }
    
    .header-logo h1 {
        font-size: 1rem !important; /* 16px */
    }
    
    .header-logo p {
        font-size: 0.625rem !important; /* 10px */
    }
    
    .mobile-call-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-btn {
        padding: 0.375rem;
    }
}

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

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

#mobile-menu a {
    transition: all 0.2s ease;
}

#mobile-menu a:hover {
    background-color: rgb(239 246 255); /* blue-50 */
    color: rgb(37 99 235); /* blue-600 */
}

/* Hero section responsiveness */
.hero-section {
    background: linear-gradient(135deg, rgb(37 99 235) 0%, rgb(30 64 175) 100%);
}

@media (max-width: 640px) {
    .hero-section h2 {
        font-size: 1.875rem !important; /* 30px */
        line-height: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1rem !important; /* 16px */
        line-height: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* Services grid improvements */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgb(219 234 254); /* blue-100 */
}

/* Emergency service card special styling */
.emergency-card {
    border: 2px solid rgb(254 202 202); /* red-200 */
    background: rgb(254 242 242); /* red-50 */
}

.emergency-card:hover {
    border-color: rgb(248 113 113); /* red-400 */
    transform: translateY(-4px);
}

/* FAQ styling */
.faq-item {
    border: 1px solid rgb(229 231 235); /* gray-200 */
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgb(96 165 250); /* blue-400 */
}

.faq-question {
    transition: all 0.2s ease;
}

.faq-question:hover {
    background-color: rgb(243 244 246); /* gray-100 */
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

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

.faq-answer.show {
    max-height: 200px;
    padding-top: 0 !important;
}

/* Testimonials improvements */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Service areas grid */
.service-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .service-areas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Process section styling */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Why choose us section */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, rgb(37 99 235) 0%, rgb(30 64 175) 100%);
}

/* Footer improvements */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Icon animations */
.icon-bounce:hover {
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* Text selection styling */
::selection {
    background-color: rgb(96 165 250); /* blue-400 */
    color: white;
}

::-moz-selection {
    background-color: rgb(96 165 250); /* blue-400 */
    color: white;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid rgb(37 99 235); /* blue-600 */
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0.7;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(243 244 246); /* gray-100 */
}

::-webkit-scrollbar-thumb {
    background: rgb(156 163 175); /* gray-400 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(107 114 128); /* gray-500 */
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: white;
    }
    
    .text-gray-600 {
        color: black;
    }
    
    .border-gray-200 {
        border-color: black;
    }
}

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

/* Additional mobile optimizations */
@media (max-width: 375px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    .text-4xl {
        font-size: 1.75rem !important;
        line-height: 2.25rem !important;
    }
    
    .text-5xl {
        font-size: 2rem !important;
        line-height: 2.5rem !important;
    }
}