/* Loaded only on phones; desktop rules remain in insuba.css. */
@media (max-width: 767px) {
    html, body {
        overflow-x: clip;
    }

    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .page-wrapper {
        width: 100%;
    }

    .page-wrapper img, .main-footer img {
        max-width: 100%;
    }

    .page-wrapper iframe {
        max-width: 100%;
    }

    .main-header .container-fluid {
        padding-inline: 16px;
    }

    .main-header .main-header__inner {
        gap: 12px;
    }

    .main-header .main-header__logo {
        flex: 1;
        min-width: 0;
        margin-right: 0;
    }

    .main-header .main-header__logo img {
        display: block;
        width: 100%;
        max-width: 305px;
        height: auto;
    }

    .main-header .main-header__right {
        flex-shrink: 0;
    }

    .mobile-nav__btn {
        min-height: 44px;
        justify-content: center;
    }

    /* Show the backdrop and menu together, without either sliding. */
    .mobile-nav__wrapper,
    .mobile-nav__wrapper.expanded,
    .mobile-nav__wrapper .mobile-nav__content,
    .mobile-nav__wrapper.expanded .mobile-nav__content,
    .mobile-nav__overlay {
        transform: none;
        transition: none;
        animation: none;
    }

    .mobile-nav__wrapper {
        width: 100%;
        height: 100dvh;
        z-index: 1051;
        pointer-events: none;
    }

    .mobile-nav__wrapper.expanded {
        pointer-events: auto;
    }

    .mobile-nav__wrapper .mobile-nav__content {
        width: min(320px, 88vw);
        padding: 64px 20px 24px;
        overscroll-behavior: contain;
    }

    .mobile-nav__content .main-menu__list li a button {
        transition: none;
    }

    .mobile-nav__contact li a,
    .footer-widget__info__text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #home .main-slider-four__item {
        height: auto;
        min-height: 540px;
        padding: 24px 16px 60px;
    }

    #home .container {
        padding-inline: 0;
    }

    #home .glassmorphism {
        margin: 0;
        padding: 28px 20px;
        border: 0;
    }

    #home .glassmorphism > div {
        padding-inline: 0;
    }

    #home .main-slider-four__content {
        padding-top: 0;
    }

    #home .main-slider-four__title {
        font-size: clamp(28px, 7.5vw, 34px);
        line-height: 1.25;
        margin-bottom: 20px;
    }

    #home .main-slider-four__description {
        padding-right: 0;
        margin-bottom: 24px;
    }

    #home .main-slider-four__text {
        font-size: 16px;
        line-height: 1.7;
    }

    #home .main-slider-four__button {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    #home .slider-contact-btn {
        display: inline-flex;
        justify-content: center;
        min-height: 48px;
        padding: 12px 28px;
    }

    #home .main-slider-four__carousel.owl-carousel .owl-dots {
        top: auto;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
    }

    body .home-quick-quote #service_form .service-quote-fields {
        grid-template-columns: 1fr;
    }

    body .home-quick-quote #service_form .locations .input-group {
        max-width: none;
    }

    #service_form .locations {
        position: static;
        width: 100%;
        margin-bottom: 16px;
        padding: 0;
        box-shadow: none;
        border: 0;
    }

    #service_form .service-quote-fields {
        margin-inline: 0;
        row-gap: 16px;
    }

    #service_form .service-quote-contact {
        margin-bottom: 16px;
    }

    #service_form .form-label {
        padding-inline: 0;
        font-size: 13px;
    }

    #service_form input,
    #faq_form input,
    #faq_form textarea,
    #quote_modal_form input,
    #quote_modal_form select,
    #quote_modal_form textarea {
        min-width: 0;
        font-size: 16px !important;
    }

    .page-header {
        padding-block: 56px;
    }

    .page-header .page-header__title {
        font-size: clamp(28px, 8vw, 36px);
        overflow-wrap: break-word;
    }

    .services-page > .container > .row {
        margin-inline: 0;
    }

    .services-page > .container > .row > div {
        padding-inline: 0;
    }

    .home-all-service-head {
        margin-bottom: 24px;
    }

    .main-footer .main-footer__top {
        padding-top: 48px;
    }

    .main-footer__copyright {
        text-align: center;
        font-size: 13px;
        line-height: 1.6;
    }

    /* Keep all three contact actions in one compact bottom row. */
    .floating-buttons.floating-buttons--left {
        display: flex;
        flex-direction: row;
        gap: 8px;
        left: 12px;
        right: auto;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 1040;
    }

    .floating-buttons--left .scl-btn {
        width: 44px;
        height: 48px;
        margin: 0;
    }

    .floating-buttons--left .scl-btn i {
        font-size: 22px;
    }

    .floating-buttons.floating-buttons--right {
        left: 120px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 1040;
    }

    .floating-buttons--right .quote-btn {
        min-height: 48px;
        padding: 8px 10px;
        gap: 8px;
        font-size: 12px;
        line-height: 1.3;
    }

    .floating-buttons--right .quote-btn__text {
        margin: 0;
    }

    .floating-buttons--right .quote-btn__icon {
        flex-basis: 28px;
        height: 28px;
    }

    .scroll-to-top.scl-btn {
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        width: 40px;
        height: 40px;
    }

    #citySelectionModal .modal-content {
        max-height: calc(100dvh - 32px);
    }

    body #citySelectionModal .modal-header {
        flex-shrink: 0;
        padding: 16px;
    }

    body #citySelectionModal .modal-body {
        overflow-y: auto;
        padding: 16px;
    }
}
