/* ============================================================
   CLS FIX — Font display swap override
   Adds font-display: swap to all Formata @font-face declarations.
   This prevents invisible/shifting text while the custom font loads.
   Load this AFTER styles.css in the HTML <head>.
   ============================================================ */

/* ── Nav placeholder pre-sizing ──────────────────────────────
   hex.js sets this height on window.onload via setNavPlaceholder().
   Pre-setting it here prevents content shifting when JS fires.
   Heights match: logo height + nav padding at each breakpoint.
   Desktop:  72px logo + 40px top + 40px bottom padding = 152px
   Tablet:   72px logo + 15px top + 15px bottom padding = 102px
   Mobile:   ~56px logo + 10px top + 10px bottom padding = 76px
   ──────────────────────────────────────────────────────────── */
#hiveSupportMainNavPlaceholder {
    height: 152px;
}

@media (max-width: 961px) {
    #hiveSupportMainNavPlaceholder {
        height: 102px;
    }
}

@media (max-width: 768px) {
    #hiveSupportMainNavPlaceholder {
        height: 76px;
    }

    /* ── Banner: stack vertically, image below text ── */
    .bannerAndNav .banner,
    .banner {
        flex-direction: column !important;
        align-items: center !important;
    }

    .bannerAndNav .banner .text,
    .banner .text {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* ── Show banner image below text, properly sized ── */
    .bannerAndNav .banner .image,
    .banner .image {
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 400px !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    .bannerAndNav .banner .image img,
    .banner .image img,
    .bannerAndNav .banner .image picture,
    .banner .image picture {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        transform: none !important;
        display: block !important;
    }

    /* ── Fix CTA button on mobile ── */
    .bannerAndNav .banner .text a {
        display: block !important;
        font-size: 14px !important;
        padding: 12px 28px !important;
        min-width: 0 !important;
        width: -moz-fit-content !important;
        width: fit-content !important;
        border-radius: 6px !important;
        margin: 8px auto 0 !important;
        align-self: center !important;
        text-align: center !important;
    }

    /* ── Hide hex section on mobile - JS-calculated, broken on small screens ── */
    .hexV2Section {
        display: none !important;
        visibility: hidden !important;
    }

    /* ── Show mobile industries grid instead ── */
    .mobile-industries {
        display: block !important;
    }
}

/* ── Desktop: restore original banner image behaviour for picture element ── */
@media (min-width: 769px) {
    .bannerAndNav .banner .image picture {
        display: contents;
    }
    .bannerAndNav .banner .image img {
        width: 112%;
        max-width: none;
        height: auto;
        transform: translateX(8px);
    }
}


.mobile-industries {
    display: none;
    background: #f7f9fb;
    padding: 42px 0;
}

.mobile-industries h3 {
    text-align: center;
    font-size: 26px;
    margin: 0 0 24px;
    color: #231F20;
    font-weight: bold;
}

.mobile-industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 92%;
    margin: 0 auto;
}

.mobile-industries-grid span {
    background: #fff;
    border: 1.5px solid #f9ad1d;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #231F20;
    line-height: 1.3;
    white-space: nowrap;
}

@font-face {
    font-family: "Formata";
    src: url("../fonts/Formata-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Formata";
    src: url("../fonts/Formata-Italic.otf") format("opentype");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Formata";
    src: url("../fonts/Formata-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Formata";
    src: url("../fonts/Formata-MediumItalic.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Formata";
    src: url("../fonts/Formata-Light.otf") format("opentype");
    font-weight: lighter;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Formata";
    src: url("../fonts/Formata-LightItalic.otf") format("opentype");
    font-weight: lighter;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Formata";
    src: url("../fonts/Formata-Bold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Formata";
    src: url("../fonts/Formata-BoldItalic.otf") format("opentype");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}
