/* Large desktop */
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1320px;
    }
}

/* Desktop */
@media (max-width: 1919.98px) {
    :root {
        --container-width: 1730px;
    }

    .site-header__nav {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header__menu {
        gap: 24px;
        justify-content: flex-end;
    }

    .site-header .nav-link {
        font-size: 14px;
        letter-spacing: 1.2px;
    }

    .header-phone {
        font-size: 21px;
    }
}

/* Laptop scale */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    :root {
        --container-width: 1320px;
        --section-spacing: 72px;
    }

    body {
        font-size: 17px;
    }

    h1 {
        font-size: 58px;
        line-height: 64px;
        max-width: 650px;
    }

    h2 {
        font-size: 46px;
        line-height: 54px;
        margin-bottom: 18px;
    }

    h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .section-copy p:not(.eyebrow),
    .section-heading > p:not(.eyebrow) {
        font-size: 17px;
        line-height: 26px;
        margin-bottom: 16px;
    }

    .section-heading {
        margin-bottom: 34px;
        max-width: 900px;
    }

    .btn {
        font-size: 12px;
        letter-spacing: 1.2px;
        line-height: 18px;
        min-height: 44px;
        padding: 12px 22px;
    }

    .site-header,
    .site-header__nav {
        min-height: 78px;
    }

    .site-header__nav {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-header__brand img {
        height: 74px;
        width: 126px;
    }

    .site-header__collapse {
        margin-left: 24px;
    }

    .site-header__menu {
        gap: 18px;
        justify-content: flex-end;
    }

    .site-header .nav-link {
        font-size: 12px;
        letter-spacing: 1.1px;
        line-height: 18px;
    }

    .site-header__actions {
        gap: 10px;
        margin-left: 18px;
    }

    .header-phone {
        font-size: 16px;
        gap: 8px;
        line-height: 24px;
    }

    .header-phone__icon {
        height: 34px;
        width: 34px;
    }

    .btn-brand--small {
        min-height: 42px;
        padding: 10px 16px;
    }

    .hero-section {
        min-height: 690px;
        padding-top: 78px;
    }

    .hero-section__media,
    .hero-section__overlay {
        inset: 0;
    }

    .hero-section__content {
        min-height: 612px;
        max-width: 690px;
    }

    .hero-section__content > p {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 24px;
        max-width: 610px;
    }

    .hero-section__buttons {
        margin-bottom: 30px;
    }

    .hero-badges {
        gap: 14px 22px;
    }

    .hero-badges li,
    .trust-strip span {
        font-size: 12px;
        letter-spacing: 1.1px;
        line-height: 18px;
    }

    .trust-strip {
        padding: 8px;
    }

    .trust-strip__track {
        gap: 32px;
        padding-right: 32px;
    }

    .trust-strip span::before {
        margin-right: 32px;
    }

    .values-grid {
        gap: 18px;
        margin-top: 34px;
    }

    .value-card {
        gap: 14px;
        min-height: 130px;
        padding: 14px 18px;
    }

    .value-card h3 {
        margin-bottom: 10px;
    }

    .value-card p {
        font-size: 14px;
        letter-spacing: 0;
        line-height: 22px;
    }

    .service-card > img {
        height: 270px;
    }

    .service-card__body {
        padding: 18px;
    }

    .service-card p,
    .review-card p {
        font-size: 14px;
        line-height: 22px;
    }

    .service-card a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .service-accordion .accordion-button {
        font-size: 16px;
        line-height: 24px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .service-accordion .accordion-body {
        font-size: 14px;
        line-height: 22px;
    }

    .backflow-section__copy {
        max-width: 600px;
        padding-bottom: 82px;
        padding-top: 82px;
    }

    .backflow-section__image {
        min-height: 450px;
    }

    .review-card {
        padding: 22px;
    }

    .difference-card {
        min-height: 300px;
        padding: 30px;
    }

    .difference-card p {
        font-size: 18px;
        line-height: 28px;
    }

    .area-list {
        gap: 15px;
        margin: 20px 0;
    }

    .testing-cta__panel {
        padding: 38px 52px;
    }

    .testing-cta h2 {
        font-size: 30px;
        line-height: 38px;
    }

    .testing-cta p {
        font-size: 14px;
        line-height: 22px;
    }

    .footer-contact {
        padding: 22px 0;
    }

    .footer-contact__row {
        gap: 24px 36px;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .footer-contact span {
        font-size: 17px;
        line-height: 24px;
    }

    .footer-contact strong {
        font-size: 20px;
        line-height: 28px;
    }

    .site-footer__main {
        padding-top: 44px;
    }
}

@media (max-width: 1399.98px) {
    :root {
        --container-width: 1140px;
        --section-spacing: 72px;
    }

    h1 {
        font-size: 58px;
        line-height: 64px;
    }

    h2 {
        font-size: 46px;
        line-height: 54px;
    }

    .page-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-header__nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-header__menu {
        gap: 18px;
        justify-content: flex-end;
    }

    .site-header__actions {
        gap: 14px;
        margin-left: 22px;
    }

    .header-phone {
        font-size: 18px;
    }

    .btn-brand--small {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .backflow-section__copy {
        margin-left: 24px;
    }
}

/* Header collapse before the desktop navigation gets cramped. */
@media (max-width: 1399.98px) {
    .site-header__toggle {
        display: block;
    }

    .site-header__collapse {
        background: #000000;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        left: 0;
        margin-left: 0;
        max-height: calc(100vh - 78px);
        overflow-y: auto;
        padding: 28px 24px 34px;
        position: absolute;
        right: 0;
        top: 78px;
    }

    .site-header__menu {
        align-items: flex-start;
        gap: 20px;
    }

    .site-header__actions {
        align-items: flex-start;
        flex-direction: column;
        margin: 28px 0 0;
    }
}

/* Small desktop and tablet landscape */
@media (max-width: 1199.98px) {
    .site-header__toggle {
        display: block;
    }

    .site-header__collapse {
        background: #000000;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        left: 0;
        margin-left: 0;
        max-height: calc(100vh - 97px);
        overflow-y: auto;
        padding: 28px 24px 34px;
        position: absolute;
        right: 0;
        top: 97px;
    }

    .site-header__menu {
        align-items: flex-start;
        gap: 20px;
    }

    .site-header__actions {
        align-items: flex-start;
        flex-direction: column;
        margin: 28px 0 0;
    }

    .hero-section {
        min-height: 780px;
    }

    .hero-section__content {
        min-height: 683px;
    }

    .trust-strip__track {
        justify-content: flex-start;
    }

    .section-copy {
        max-width: 820px;
    }

    .service-card__body {
        padding: 22px;
    }

    .service-card > img {
        height: 290px;
    }

    .testing-cta__panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .testing-cta__actions {
        flex: 0 1 auto;
        width: 100%;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    :root {
        --section-spacing: 70px;
    }

    body {
        font-size: 18px;
    }

    h1 {
        font-size: 54px;
        line-height: 60px;
    }

    h2 {
        font-size: 44px;
        line-height: 54px;
    }

    .hero-section__overlay {
        background: linear-gradient(90deg, rgba(0, 17, 41, 0.94) 0%, rgba(0, 17, 41, 0.82) 70%, rgba(0, 17, 41, 0.36) 100%);
    }

    .hero-section__content {
        max-width: 680px;
    }

    .backflow-section__copy {
        margin-left: 0;
        max-width: none;
        padding: 70px 24px;
    }

    .backflow-section__image {
        min-height: 420px;
    }

    .reviews-carousel {
        padding: 0;
    }

    .reviews-carousel .carousel-control-prev,
    .reviews-carousel .carousel-control-next {
        display: none;
    }
}

/* Mobile landscape */
@media (max-width: 767.98px) {
    .page-container {
        padding-left: 9px;
        padding-right: 9px;
    }

    .site-header,
    .site-header__nav {
        min-height: 82px;
    }

    .site-header__nav {
        padding-left: 9px;
        padding-right: 9px;
    }

    .site-header__brand img,
    .site-footer__logo {
        height: 68px;
        width: 110px;
    }

    .site-header__collapse {
        max-height: calc(100vh - 82px);
        top: 82px;
    }

    .hero-section {
        min-height: 700px;
        padding-top: 82px;
    }

    .hero-section__media,
    .hero-section__overlay {
        inset: 0;
    }

    .hero-section__content {
        min-height: 618px;
    }

    h1 {
        font-size: 42px;
        line-height: 48px;
    }

    h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .hero-section__content > p {
        font-size: 20px;
        line-height: 30px;
    }

    .hero-badges {
        gap: 14px 20px;
    }

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

    .value-card {
        min-height: 0;
    }

    .service-card > img {
        height: 240px;
    }

    .area-list {
        grid-template-columns: 1fr;
    }

    .testing-cta__panel {
        padding: 38px 24px;
    }

    .testing-cta__actions {
        flex: 0 1 auto;
        width: 100%;
    }

    .footer-contact {
        padding: 36px 0;
    }

    .footer-contact__row {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    :root {
        --section-spacing: 58px;
    }

    body {
        font-size: 16px;
        overflow-x: hidden;
    }

    .footer-contact__row {
        grid-template-columns: 1fr;
    }

    .footer-contact__item {
        align-items: center;
        gap: 12px;
    }

    .footer-contact__icon {
        flex-basis: 46px;
        height: 46px;
        width: 46px;
    }

    .footer-contact span {
        font-size: 16px;
        line-height: 22px;
    }

    .footer-contact strong {
        font-size: clamp(17px, 4.6vw, 19px);
        line-height: 24px;
    }

    .page-container {
        max-width: 100%;
        overflow: hidden;
        padding-left: 20px;
        padding-right: 20px;
        width: 100vw;
    }

    .page-container > .row {
        margin-left: 0;
        margin-right: 0;
    }

    .row > * {
        min-width: 0;
    }

    .btn,
    .hero-section__buttons .btn {
        width: 100%;
    }

    .hero-section {
        min-height: 660px;
    }

    .hero-section__content {
        justify-content: flex-start;
        min-height: 578px;
        padding-top: 92px;
    }

    h1 {
        font-size: 38px;
        line-height: 44px;
        max-width: 100%;
    }

    h1 span {
        display: block;
    }

    h2 {
        font-size: 32px;
        line-height: 40px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    h2 span {
        display: block;
    }

    .section-copy,
    .section-heading,
    .hero-section__content {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .section-copy p,
    .section-heading p,
    .hero-section__content p {
        max-width:100% !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .value-card {
        display: block;
    }

    .value-card img {
        margin: 0 0 14px;
    }

    .hero-section__buttons,
    .button-row,
    .reviews-actions {
        flex-direction: column;
    }

    .hero-badges li,
    .trust-strip span {
        font-size: 13px;
        letter-spacing: 1.2px;
    }

    .section-copy p:not(.eyebrow),
    .section-heading > p:not(.eyebrow) {
        font-size: 18px;
        line-height: 28px;
    }

    .review-card {
        padding: 24px;
    }

    .testing-cta h2 {
        font-size: 32px;
        line-height: 40px;
    }
}

/* Custom navigation breakpoint: hamburger at 1024px and below. */
@media (min-width: 1024.02px) {
    .navbar-expand-xxl .site-header__toggle {
        display: none;
    }

    .navbar-expand-xxl .site-header__collapse {
        align-items: center;
        background: transparent;
        border-top: 0;
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        left: auto;
        margin-left: 24px;
        max-height: none;
        min-width: 0;
        overflow: visible;
        padding: 0;
        position: static;
        right: auto;
        top: auto;
    }

    .navbar-expand-xxl .site-header__brand img {
        height: 64px;
        width: 110px;
    }

    .navbar-expand-xxl .site-header__menu {
        align-items: center;
        flex-direction: row;
        flex: 1 1 auto;
        gap: 14px;
        justify-content: flex-end;
        min-width: 0;
    }

    .site-header .navbar-expand-xxl .nav-link {
        font-size: 11px;
        letter-spacing: 0.8px;
        line-height: 16px;
    }

    .navbar-expand-xxl .site-header__actions {
        align-items: center;
        flex: 0 0 auto;
        flex-direction: row;
        gap: 8px;
        margin-left: 14px;
        margin-bottom: 0;
        margin-top: 0;
    }

    .navbar-expand-xxl .header-phone {
        font-size: 15px;
        gap: 7px;
        line-height: 20px;
    }

    .navbar-expand-xxl .header-phone__icon {
        height: 32px;
        width: 32px;
    }

    .navbar-expand-xxl .btn-brand--small {
        font-size: 11px;
        letter-spacing: 1px;
        min-height: 42px;
        padding: 10px 14px;
    }
}

@media (min-width: 1024.02px) and (max-width: 1199.98px) {
    .navbar-expand-xxl .site-header__collapse {
        margin-left: 16px;
    }

    .navbar-expand-xxl .site-header__menu {
        gap: 21px;
        justify-content: flex-end;
    }

    .navbar-expand-xxl .site-header__actions {
        gap: 8px;
        margin-left: 8px;
    }

    .navbar-expand-xxl .header-phone span:not(.header-phone__icon) {
        display: none;
    }

    .navbar-expand-xxl .header-phone__icon {
        height: 40px;
        width: 40px;
    }

    .site-header .navbar-expand-xxl .nav-link {
        font-size: 12px;
        letter-spacing: 0.4px;
    }

    .navbar-expand-xxl .btn-brand--small {
        font-size: 10px;
        letter-spacing: 0.7px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (min-width: 1400px) {
    .navbar-expand-xxl .site-header__brand img {
        height: 74px;
        width: 126px;
    }

    .navbar-expand-xxl .site-header__menu {
        gap: 22px;
        justify-content: flex-end;
    }

    .site-header .navbar-expand-xxl .nav-link {
        font-size: 13px;
        letter-spacing: 1px;
        line-height: 20px;
    }

    .navbar-expand-xxl .site-header__actions {
        gap: 10px;
        margin-left: 18px;
    }

    .navbar-expand-xxl .header-phone {
        font-size: 18px;
        gap: 8px;
        line-height: 24px;
    }

    .navbar-expand-xxl .header-phone__icon {
        height: 36px;
        width: 36px;
    }

    .navbar-expand-xxl .btn-brand--small {
        font-size: 12px;
        letter-spacing: 1.1px;
        min-height: 44px;
        padding: 12px 16px;
    }
}

@media (min-width: 1600px) {
    .navbar-expand-xxl .site-header__brand img {
        height: 84px;
        width: 143px;
    }

    .navbar-expand-xxl .site-header__menu {
        gap: 28px;
        justify-content: flex-end;
    }

    .site-header .navbar-expand-xxl .nav-link {
        font-size: 14px;
        letter-spacing: 1.2px;
        line-height: 22px;
    }

    .navbar-expand-xxl .site-header__actions {
        gap: 14px;
        margin-left: 24px;
    }

    .navbar-expand-xxl .header-phone {
        font-size: 21px;
        gap: 9px;
        line-height: 28px;
    }

    .navbar-expand-xxl .btn-brand--small {
        font-size: 13px;
        letter-spacing: 1.3px;
        min-height: 46px;
        padding: 12px 18px;
    }
}

@media (min-width: 1920px) {
    .navbar-expand-xxl .site-header__brand img {
        height: 92px;
        width: 157px;
    }

    .navbar-expand-xxl .site-header__menu {
        gap: 40px;
        justify-content: flex-end;
    }

    .site-header .navbar-expand-xxl .nav-link {
        font-size: 16px;
        letter-spacing: 1.6px;
        line-height: 24px;
    }

    .navbar-expand-xxl .site-header__actions {
        gap: 20px;
        margin-left: 32px;
    }

    .navbar-expand-xxl .header-phone {
        font-size: 24px;
        gap: 10px;
        line-height: 32px;
    }

    .navbar-expand-xxl .btn-brand--small {
        font-size: 14px;
        letter-spacing: 1.6px;
        min-height: 48px;
        padding: 12px 20px;
    }
}
