/* ========================================
   Airmatrix HVAC Systems - Responsive Styles
   ======================================== */

/* Tablet Landscape and Below (Max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-grid {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (Max-width: 768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    h4 { font-size: 1.3rem; }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Page Header */
    .page-header {
        padding: 120px 0 60px;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about-badge {
        bottom: 10px;
        right: 10px;
        padding: 15px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* Installations */
    .installations-grid {
        grid-template-columns: 1fr;
    }

    .installation-card {
        height: 300px;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Mobile (Max-width: 480px) */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: 40px 0;
    }

    /* Logo */
    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Hero */
    .hero {
        min-height: 400px;
    }

    /* Service Cards */
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Installation Cards */
    .installation-card {
        height: 250px;
    }

    .installation-overlay {
        padding: 20px;
    }

    .installation-overlay h3 {
        font-size: 1.2rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ===== About Page Specific ===== */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-content-grid {
        grid-template-columns: 1fr;
    }

    .image-content-grid.reverse .image-content-img {
        order: -1;
    }

    .highlight-boxes {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
}

/* ===== Installations Page Specific ===== */
@media (max-width: 768px) {
    .installation-detail-grid {
        grid-template-columns: 1fr;
    }

    .installation-detail.reverse .installation-detail-content {
        order: -1;
    }

    .feature-list {
        padding-left: 0;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ===== Products & Services Page Specific ===== */
@media (max-width: 768px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail.reverse .service-detail-content {
        order: -1;
    }

    .services-grid-small {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .plan-badges {
        flex-direction: column;
    }
}

/* ===== Quality Policy Page Specific ===== */
@media (max-width: 768px) {
    .quality-commitments {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Page Specific ===== */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        grid-template-columns: 1fr;
    }

    .contact-form-right {
        order: -1;
    }

    .faq-container {
        padding: 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-scroll,
    .back-to-top,
    .cta-section,
    .contact-form-section,
    .footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .page-header {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .section-padding {
        padding: 20px 0;
    }
}