/* ============================================================
   1TECH SOLUTIONS - RESPONSIVE SIZE FIX
   MOBILE & DESKTOP OPTIMIZED
   ============================================================ */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- Container Fix ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}

/* ---------- Row Fix ---------- */
.row {
    margin-left: -10px;
    margin-right: -10px;
}

.row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* ============================================================
   DESKTOP (1200px+) - MAXIMUM SIZE
   ============================================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fix for large screens */
    .hero-content {
        max-width: 620px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-title {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }
}

/* ============================================================
   TABLET (992px - 1199px)
   ============================================================ */
@media (max-width: 1199.98px) {
    .container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-title {
        font-size: 2.4rem;
    }

    .section-header h2 {
        font-size: 2.4rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}

/* ============================================================
   TABLET (768px - 991px)
   ============================================================ */
@media (max-width: 991.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-desc {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header .subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .service-card .card-image {
        height: 200px;
    }

    .service-card .card-body h3 {
        font-size: 1.1rem;
    }

    .service-card .card-body p {
        font-size: 0.88rem;
    }
}

/* ============================================================
   MOBILE (576px - 767px)
   ============================================================ */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* ---------- Typography ---------- */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-desc {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header .subtitle {
        font-size: 0.95rem;
    }

    h1.display-3 {
        font-size: 2rem !important;
    }

    h2.display-5 {
        font-size: 1.6rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }

    /* ---------- Buttons ---------- */
    .btn,
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-about,
    .btn-service,
    .btn-commercial {
        font-size: 0.85rem !important;
        padding: 0.7rem 1.6rem !important;
    }

    /* ---------- Cards ---------- */
    .service-card .card-image {
        height: 180px;
    }

    .service-card .card-body {
        padding: 16px 14px;
    }

    .service-card .card-body h3 {
        font-size: 1rem;
    }

    .service-card .card-body p {
        font-size: 0.82rem;
    }

    .commercial-card {
        padding: 20px 16px;
    }

    .commercial-card .card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .commercial-card h4 {
        font-size: 1rem;
    }

    .commercial-card p {
        font-size: 0.82rem;
    }

    .process-card {
        padding: 20px 16px;
    }

    .process-card .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .process-card h4 {
        font-size: 0.95rem;
    }

    .process-card p {
        font-size: 0.82rem;
    }

    .maintenance-card {
        padding: 20px 16px;
    }

    .maintenance-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .maintenance-card h5 {
        font-size: 0.95rem;
    }

    .maintenance-card p {
        font-size: 0.82rem;
    }

    .testimonial-card {
        padding: 18px 14px;
    }

    .testimonial-card .review-text {
        font-size: 0.85rem;
    }

    .testimonial-card .author .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .testimonial-card .author .info .name {
        font-size: 0.82rem;
    }

    .airquality-card {
        padding: 18px 14px;
    }

    .airquality-card .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .airquality-card h5 {
        font-size: 0.95rem;
    }

    .airquality-card p {
        font-size: 0.82rem;
    }

    /* ---------- Stats ---------- */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* ---------- Hero ---------- */
    .hero-content {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .badge-item {
        flex: 0 0 calc(50% - 6px);
        justify-content: center;
    }

    .badge-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .badge-text {
        font-size: 0.75rem;
    }

    /* ---------- Grid Fix ---------- */
    .row.g-4 {
        --bs-gutter-y: 16px;
        --bs-gutter-x: 16px;
    }

    .row.g-3 {
        --bs-gutter-y: 12px;
        --bs-gutter-x: 12px;
    }

    .gap-3 {
        gap: 10px !important;
    }

    .gap-4 {
        gap: 12px !important;
    }

    /* ---------- Section Padding ---------- */
    section.py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    section.py-4 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .py-5 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .py-4 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .mt-5 {
        margin-top: 30px !important;
    }

    .mb-5 {
        margin-bottom: 30px !important;
    }

    .mt-4 {
        margin-top: 20px !important;
    }

    .mb-4 {
        margin-bottom: 20px !important;
    }

    /* ---------- Accordion ---------- */
    .accordion-button {
        font-size: 0.88rem !important;
        padding: 14px 16px !important;
    }

    .accordion-body {
        font-size: 0.85rem !important;
        padding: 14px 16px !important;
    }

    /* ---------- Voice Search ---------- */
    .voice-container {
        padding: 25px 16px !important;
    }

    .voice-card {
        padding: 16px 14px !important;
    }

    .voice-card h5 {
        font-size: 0.9rem !important;
    }

    .voice-card p {
        font-size: 0.82rem !important;
    }

    /* ---------- Footer ---------- */
    .footer-section {
        padding-top: 30px !important;
        padding-bottom: 8px !important;
    }

    .footer-bottom p {
        font-size: 0.7rem !important;
    }

    /* ---------- About Image ---------- */
    .about-image {
        aspect-ratio: 4/2.8;
    }
}

/* ============================================================
   MOBILE (375px - 575px)
   ============================================================ */
@media (max-width: 575.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .row {
        margin-left: -4px;
        margin-right: -4px;
    }

    .row > [class*="col-"] {
        padding-left: 4px;
        padding-right: 4px;
    }

    /* ---------- Typography ---------- */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-desc {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header .subtitle {
        font-size: 0.9rem;
    }

    h1.display-3 {
        font-size: 1.8rem !important;
    }

    h2.display-5 {
        font-size: 1.4rem !important;
    }

    .lead {
        font-size: 0.9rem !important;
    }

    /* ---------- Buttons ---------- */
    .btn,
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-about,
    .btn-service,
    .btn-commercial {
        font-size: 0.8rem !important;
        padding: 0.6rem 1.4rem !important;
    }

    /* ---------- Cards ---------- */
    .service-card .card-image {
        height: 160px;
    }

    .service-card .card-body h3 {
        font-size: 0.95rem;
    }

    .service-card .card-body p {
        font-size: 0.8rem;
    }

    .commercial-card .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .commercial-card h4 {
        font-size: 0.95rem;
    }

    .commercial-card p {
        font-size: 0.8rem;
    }

    .process-card .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .process-card h4 {
        font-size: 0.9rem;
    }

    .process-card p {
        font-size: 0.8rem;
    }

    .maintenance-card .card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .maintenance-card h5 {
        font-size: 0.9rem;
    }

    .maintenance-card p {
        font-size: 0.8rem;
    }

    .testimonial-card .review-text {
        font-size: 0.8rem;
    }

    .airquality-card .card-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .airquality-card h5 {
        font-size: 0.9rem;
    }

    .airquality-card p {
        font-size: 0.8rem;
    }

    /* ---------- Stats ---------- */
    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* ---------- Trust Badges ---------- */
    .badge-item {
        flex: 0 0 100%;
    }

    /* ---------- Section Padding ---------- */
    section.py-5 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    section.py-4 {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    .py-5 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .py-4 {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    /* ---------- Footer ---------- */
    .footer-logo {
        height: 35px !important;
    }

    .footer-about {
        font-size: 0.75rem !important;
    }

    .footer-heading {
        font-size: 0.75rem !important;
    }

    .footer-menu a {
        font-size: 0.72rem !important;
    }

    .footer-contact li {
        font-size: 0.72rem !important;
    }

    .footer-bottom p {
        font-size: 0.6rem !important;
    }

    /* ---------- About Image ---------- */
    .about-image {
        aspect-ratio: 4/2.5;
    }

    /* ---------- Hero ---------- */
    .hero-content {
        padding: 70px 0 30px;
    }
}

/* ============================================================
   EXTRA SMALL (Below 375px)
   ============================================================ */
@media (max-width: 374.98px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .about-title {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .btn,
    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.75rem !important;
        padding: 0.5rem 1.2rem !important;
    }

    .service-card .card-image {
        height: 140px;
    }

    .stat-number {
        font-size: 1rem;
    }

    .footer-bottom p {
        font-size: 0.55rem !important;
    }

    .badge-text {
        font-size: 0.65rem;
    }
}