/* IndoSurgicals Desktop Footer Density & Alignment Fix v1.0
 * Patch 30.1 — desktop only. Mobile footer remains controlled by existing rules.
 */
@media (min-width: 901px) {
    /* Keep the procurement CTA strong, but reduce its vertical footprint. */
    #footer .isp-footer-cta {
        min-height: 82px;
        gap: 24px;
        padding: 15px 0;
    }

    #footer .isp-footer-cta span {
        margin-bottom: 4px;
        font-size: 10px;
    }

    #footer .isp-footer-cta strong {
        font-size: clamp(18px, 1.55vw, 23px);
        line-height: 1.25;
    }

    /* Compact the main footer so the navigation columns do not leave a large dead zone. */
    #footer .isp-footer-inner {
        grid-template-columns: minmax(330px, 1.7fr) minmax(118px, .72fr) minmax(150px, .88fr) minmax(118px, .68fr) minmax(145px, .82fr) !important;
        column-gap: 30px !important;
        row-gap: 0 !important;
        align-items: start;
        padding: 30px 0 25px !important;
    }

    #footer .isp-footer-company h2,
    #footer .isp-footer-column h3 {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    #footer .isp-footer-positioning {
        max-width: 430px;
        margin-bottom: 9px !important;
        font-size: 11.5px;
        line-height: 1.48;
    }

    /* Present the office address as a compact sentence instead of three tall lines. */
    #footer .isp-footer-company-top {
        margin: 0 0 8px !important;
    }

    #footer .isp-footer-company address {
        max-width: 470px;
        margin: 0 !important;
        font-size: 11.5px;
        line-height: 1.5;
    }

    #footer .isp-footer-company address span {
        display: inline !important;
    }

    #footer .isp-footer-company address span:not(:last-child)::after {
        content: ", ";
    }

    /* Business hours become a compact utility row. */
    #footer .isp-footer-hours--company {
        width: 100% !important;
        max-width: none !important;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 10px;
        margin: 8px 0 0 !important;
        padding: 0 !important;
    }

    #footer .isp-footer-hours--company small,
    #footer .isp-footer-hours--company strong,
    #footer .isp-footer-hours--company span {
        display: inline !important;
        margin: 0 !important;
        line-height: 1.35 !important;
    }

    #footer .isp-footer-hours--company small {
        color: var(--isp-chrome-mint);
        font-size: 9px !important;
    }

    #footer .isp-footer-hours--company small::after {
        content: ":";
    }

    #footer .isp-footer-hours--company strong {
        font-size: 10.5px !important;
    }

    #footer .isp-footer-hours--company span {
        color: #c4d2d8;
        font-size: 10px !important;
    }

    /* Phone and email sit side-by-side when space permits. */
    #footer .isp-footer-contact-links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 7px 18px;
        margin-top: 8px;
    }

    #footer .isp-footer-contact-links a {
        font-size: 11.5px !important;
    }

    #footer .isp-footer-social {
        gap: 7px;
        margin-top: 12px;
    }

    #footer .isp-footer-social a {
        width: 31px;
        height: 31px;
        border-radius: 7px;
    }

    #footer .isp-footer-social svg {
        width: 15px;
        height: 15px;
    }

    /* Tighten navigation links while preserving comfortable scanning. */
    #footer .isp-footer-column > a {
        margin-bottom: 8px;
        font-size: 11.5px;
        line-height: 1.32;
    }

    /* Make the legal row concise and clearly separated. */
    #copyright.isp-copyright {
        padding: 12px 0 !important;
    }

    #copyright .isp-copyright-line {
        gap: 20px;
        font-size: 10.5px;
    }

    #copyright .isp-copyright-links {
        gap: 7px;
    }

    #copyright .isp-copyright-links a {
        min-height: 27px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 9px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 6px;
        background: rgba(255,255,255,.035);
        font-size: 10px;
        white-space: nowrap;
    }

    #copyright .isp-copyright-inner p {
        max-width: 1120px;
        margin-top: 6px !important;
        font-size: 9.5px;
        line-height: 1.45;
    }
}

/* Compact-laptop refinement without entering the completed mobile breakpoint. */
@media (min-width: 901px) and (max-width: 1120px) {
    #footer .isp-footer-inner {
        grid-template-columns: minmax(285px, 1.55fr) repeat(4, minmax(105px, .75fr)) !important;
        column-gap: 20px !important;
    }

    #footer .isp-footer-positioning,
    #footer .isp-footer-company address,
    #footer .isp-footer-column > a {
        font-size: 10.5px !important;
    }

    #footer .isp-footer-contact-links {
        display: grid;
        gap: 6px;
    }
}

/* Patch 30.2 — remove redundant positioning sentence from the desktop footer only.
 * The original markup is preserved so the completed mobile footer remains unchanged.
 */
@media (min-width: 901px) {
    #footer .isp-footer-positioning {
        display: none !important;
    }
}
