/* =========================================
   HERO SECTION - RESPONSIVE
========================================= */

/* ---- Tablet / Small Laptop (≤1024px) ---- */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 2rem;
  }

  .hero-side {
    padding-block: 1rem;
  }

  .hero-side-inner {
    width: 100%;
  }

  .hero-stats__grid.dts-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Tablet Portrait / Large Phone (≤768px) ---- */
@media (max-width: 768px) {
  .hero-section.section-padding {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 3rem; /* 48px — standard mobile h1 */
    line-height: 1.2;
  }

  .hero-text {
    font-size: 1rem; /* 16px — standard mobile p */
    line-height: 1.5;
    max-width: 100%;
  }

  .hero-badge {
    font-size: 14px; /* standard mobile badge */
    padding: 8px 16px;
    margin-bottom: 14px;
  }

  .hero-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .dts-btn {
    width: 100%;
    text-align: center;
  }

  .hero-signal svg {
    width: 16px;
    height: 16px;
  }

  .status-card {
    padding: 14px;
    margin-block: 0.75rem;
  }

  .card-current-status {
    font-size: 1rem;
  }

  .hero-stats__grid.dts-grid-4.mt-5 {
    margin-top: 24px;
  }

  .hero-stats__item {
    padding: 16px;
    gap: 12px;
  }
}

/* ---- Mobile (≤576px) ---- */
@media (max-width: 576px) {
  .hero-title {
    font-size: 3rem; /* keep 48px standard mobile h1 across phone sizes */
  }

  .hero-stats__grid.dts-grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-stats__icon img {
    max-width: 40px;
  }
}

/* ---- Hero stat boxes: consistent single-line heading + description
   at every screen size (fixes 4th box wrapping to 2 lines while
   the others stay on one) — applies at all widths, not just mobile ---- */
.hero-stats__item {
  min-width: 0; /* allow grid children to actually shrink instead of overflowing */
}

.hero-stats__content {
  min-width: 0;
}






/* =========================================
   GLOBAL SECTION UTILITY CLASSES - RESPONSIVE
   (reused across multiple sections, so fixing once here)
========================================= */
@media (max-width: 1024px) {
    .dts-sec-heading-text-styles {
        font-size: 2.25rem;
        line-height: 2.75rem;
    }

    .dts-sec-desc-text-styles {
        font-size: 1.125rem;
        line-height: 1.6rem;
    }
}

@media (max-width: 768px) {
    .dts-sec-heading-text-styles {
        font-size: 2.25rem; /* 36px — standard mobile h2 (unified, no further shrink) */
        line-height: 2.75rem;
    }

    .dts-sec-desc-text-styles {
        font-size: 1rem; /* 16px — standard mobile p */
        line-height: 1.5rem;
    }

    span.dts-badge {
        font-size: 14px; /* standard mobile badge */
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .dts-sec-heading-text-styles {
        font-size: 2.25rem; /* keep 36px standard mobile h2 on small phones too */
        line-height: 2.6rem;
    }
}


/* =========================================
   ADDRESS CHECKER - RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .address-checker__header > *,
    .address-checker__content-wrap > * {
        flex: 1 1 100%;
    }

    .address-checker__intro {
        margin-top: 1rem;
    }

    .address-checker__card {
        padding: 1.75rem 1.5rem;
        border-radius: 24px;
    }

    .address-checker__content-wrap {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .address-checker.section-margin {
        margin: 30px 0;
    }

    .address-checker {
        background-size: 250px;
        padding-top: 30px;
    }

    .address-checker__card {
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .address-checker__field textarea {
        height: 160px;
    }

    .address-checker__actions {
        text-align: center;
    }

    .address-checker__actions .dts-btn,
    .address-checker__actions button {
        width: auto;
        max-width: 260px;
        display: inline-block;
        font-size: 14px; /* standard mobile button (overrides desktop's 16px) */
    }

    .address-checker__note {
        font-size: 0.875rem;
    }

    ul.address-checker__features li {
        margin: 8px 0;
        font-size: 1rem; /* 16px — standard mobile li */
    }
    h2.address-checker__title,
    h2.address-checker__card-title{
        font-size: 2.25rem; /* 36px — standard mobile h2 */
    }

}

@media (max-width: 480px) {
    .address-checker {
        background: none;
    }

    .address-checker__card {
        padding: 1.25rem 1rem;
    }

    .address-checker__field textarea {
        height: 130px;
        /* width:391px; */
    }

    .address-checker__actions .dts-btn {
        max-width: 220px;
    }

    
}


/* =========================================
   TRUSTED CARRIERS - RESPONSIVE
   NOTE: carousel slide-count (currently showing 1 logo at a
   time on mobile) is controlled by trusted-carriers.js
   (Slick's slidesToShow/responsive options), not CSS.
   Still pending that file to fix slide count — see chat.
   CSS below fixes the "stretched box" look in the meantime.
========================================= */
@media (max-width: 768px) {
    section.trusted-carriers.section-padding {
        padding: 30px 0;
    }

    .trusted-carriers__title.dts-badge {
        font-size: 14px; /* standard mobile badge */
        padding: 10px 16px;
    }

    .trusted-carriers__item {
        min-height: 60px;
        max-width: 160px;
        margin-inline: auto;
        padding: 10px;
    }

    .carrier-logo {
        max-width: 60px;
    }

    .carrier-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .carrier-logo {
        max-width: 50px;
    }

    .trusted-carriers__item {
        min-height: 50px;
        max-width: 120px;
    }
}


/* =========================================
   BUSINESS RELIABILITY - RESPONSIVE
   (overrides the broken flex-basis rules in home.css,
   which don't work because the parent is display:grid)
========================================= */
@media (max-width: 991px) {
    .business-reliability__card {
        flex: none;
        max-width: none;
    }

    .business-reliability__grid.dts-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .business-reliability-inner {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .business-reliability.section-padding {
        padding: 30px 0;
    }

    .business-reliability__title {
        font-size: 2.25rem !important; /* 36px — standard mobile h2 */
        line-height: 2.75rem !important;
    }

    p.business-reliability__description {
        font-size: 1rem; /* 16px — standard mobile p */
    }

    .business-reliability__card-title {
        font-size: 20px; /* standard mobile h3 */
    }

    .business-reliability__card-text {
        font-size: 1rem; /* 16px — standard mobile p */
        padding: 0 40px;
    }

    .business-reliability-inner {
        padding: 0 16px;
    }
    p.services-description {
        margin:0 auto 50px;
    }

}

@media (max-width: 560px) {
    .business-reliability__card-title {
        font-size: 16px; /* standard mobile h3 */
    }

    .business-reliability__card-text {
        font-size: 12px; /* 16px — standard mobile p */
        padding: 0 40px;
    }
    .business-reliability__grid.dts-grid-4 {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .business-reliability__card {
        max-width: 100%;
    }
    .testimonial-slide .testimonial-card{
        height: 400px;
    }
}


/* =========================================
   SERVICES SECTION - RESPONSIVE
========================================= */

/* Spacing between bullet list and "Learn More" — applies at all sizes */
.service-features {
    margin-bottom: 12px;
}

.service-link {
    margin-top: 20px;
    display: inline-block;
}

@media (max-width: 1024px) {
    .services-section {
        background-size: 400px;
    }

    .service-card {
        flex: 1 0 46%;
    }
}

@media (max-width: 768px) {
    .services-section.section-padding {
        padding: 0px 0 30px;
    }

    .services-section {
        background: none;
    }

    .services-title {
        font-size: 2.25rem !important; /* 36px — standard mobile h2 */
        line-height: 2.75rem !important;
    }

    .services-grid {
        gap: 1rem;
    }

    .service-card {
        flex: 1 0 100%;
        padding: 18px;
    }

    .service-card-title {
        font-size: 20px; /* standard mobile h3 (already matched) */
    }

    p.service-card-description {
        font-size: 1rem; /* 16px — standard mobile p */
    }

    .service-features {
        margin-bottom: 16px;
    }

    .service-features li {
        font-size: 1rem; /* 16px — standard mobile li */
    }

    .service-link {
        margin-top: 18px;
        font-size: 14px; /* standard mobile button/link */
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 2.25rem !important; /* keep 36px standard mobile h2 */
        line-height: 2.6rem !important;
    }

    .service-card {
        padding: 16px;
    }
}


/* =========================================
   TESTIMONIALS - RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .testimonials-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonials-section.section-padding {
        padding: 30px 0;
    }

    .testimonials-header {
        margin-bottom: 2rem;
    }

    .testimonials-title {
        font-size: 2.25rem; /* 36px — standard mobile h2 */
    }

    .testimonial-slide .testimonial-card {
        padding: 1.25rem;
        padding-top: 0;
        margin-top: -14px;
    }

    .testimonial-eclipse img {
        height: 70px;
    }

    .testimonial-slide .testimonial-card .company-logo {
        width: 70px;
        height: 70px;
        margin-top: -24px;
    }

    .testimonial-slide .testimonial-card .company-logo img {
        padding: 8px;
    }

    .testimonial-author h4 {
        font-size: 1.125rem;
    }

    .testimonial-author span,
    .testimonial-quote {
        font-size: 1rem; /* 16px — standard mobile p (already matched) */
        line-height: 1.35rem;
    }

    .testimonial-author span {
        margin-bottom: 0.75rem;
    }

    .testimonial-rating {
        font-size: 20px;
    }

    .testimonials-slider-wrap {
        gap: 0.5rem;
    }

    .testimonials-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-title {
        font-size: 2.25rem; /* keep 36px standard mobile h2 */
    }

    .testimonial-slide .testimonial-card {
        padding: 1rem;
        padding-top: 0;
        margin-top: -10px;
    }

    .testimonial-eclipse img {
        height: 56px;
    }

    .testimonial-slide .testimonial-card .company-logo {
        width: 56px;
        height: 56px;
        margin-top: -24px;
    }

    .testimonial-slide .testimonial-card .company-logo img {
        /* padding: 6px; */
    }
}

/* =========================================
   DTS DIRECT CTA - RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .dts-direct-cta__inner {
        padding: 35px;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .dts-direct-cta__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .dts-direct-cta__logo {
        justify-content: center;
    }

    .browser-mockup {
        max-width: 100%;
    }

    .dts-direct-cta .dts-dark-background {
        background: linear-gradient(160deg, #0A1633 0%, #14224A 100%);
    }
}

@media (max-width: 768px) {
    .dts-direct-cta.dts-sec-py-md {
        padding-block: 2.5rem 0;
        overflow-x: hidden; /* failsafe */
    }

    .dts-direct-cta__inner {
        padding: 24px;
        border-radius: 18px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .dts-direct-cta__content,
    .dts-direct-cta__logo,
    .browser-mockup {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .browser-mockup {
        overflow: hidden;
    }

    .browser-mockup__body {
        width: 100%;
        box-sizing: border-box;
    }

    .dts-direct-cta__title {
        font-size: 2.25rem; /* 36px — standard mobile h2 */
    }

    .dts-direct-cta__text {
        font-size: 1rem; /* 16px — standard mobile p */
        max-width: 100%;
    }

    /* Stacked by default (≤400px handled separately below) */
    .dts-direct-cta-btn {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 10px;
    }

    .dts-direct-cta-btn a {
        flex: none;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        text-align: center;
        padding: 12px 16px;
        font-size: 14px; /* standard mobile button */
        white-space: nowrap;
    }

    .portal-status-row {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.75rem 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .portal-status-row__info {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .portal-status-row__title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.7rem;
    }

    .portal-status-row__uptime {
        font-size: 0.625rem;
        white-space: nowrap;
    }

    .portal-status-row__meta {
        flex: 0 0 auto;
    }

    .portal-status-pill {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .dts-direct-cta__inner {
        padding: 18px;
    }

    .browser-mockup {
        padding: 0.75rem;
    }

    .portal-status-row__uptime {
        font-size: 0.6rem;
    }
}

@media (max-width: 400px) {
    .dts-direct-cta__inner {
        padding: 16px;
        border-radius: 14px;
    }

    /* Buttons: column layout below 400px */
    .dts-direct-cta-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        gap: 10px;
    }

    .dts-direct-cta-btn a {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        text-align: center;
        padding: 12px 16px;
        font-size: 14px; /* standard mobile button (unified, no further shrink) */
        white-space: nowrap;
    }

    .browser-mockup {
        padding: 0.5rem;
    }

    .browser-mockup__bar {
        gap: 6px;
    }

    .browser-mockup__url {
        font-size: 0.7rem;
    }

    .portal-status-row {
        flex-wrap: wrap;
        padding: 0.6rem 0.65rem;
        gap: 0.35rem;
    }

    .portal-status-row__title {
        font-size: 0.65rem;
    }

    .portal-status-row__uptime {
        font-size: 0.575rem;
    }

    .portal-status-row__meta {
        gap: 0.25rem;
    }

    .portal-status-pill {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
    }

    .portal-status-row__arrow {
        font-size: 0.85rem;
    }
}


/* =========================================
   CTA BUSINESS - RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .cta-business.section-padding {
        padding: 40px 20px;
    }

    .cta-business__actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 24px;
    }

    .cta-business__actions a {
        display: block;
        width: 100%;
        max-width: 220px;
        margin-inline: auto;
        text-align: center;
    }

    .cta-business__actions a.dts-btn {
        padding: 10px 16px;
        font-size: 14px; /* standard mobile button */
    }
}

@media (max-width: 480px) {
    .cta-business.section-padding {
        padding: 30px 16px;
    }

    .cta-business__actions {
        margin-top: 18px;
        gap: 6px;
    }

    .cta-business__actions a {
        max-width: 190px;
    }

    .cta-business__actions a.dts-btn {
        padding: 9px 14px;
        font-size: 14px; /* standard mobile button (unified, no further shrink) */
    }
}