/* ── Mobile fix — applied sitewide ────────────────────────────── */

/* Prevent horizontal scroll on any page */
html, body {
    overflow-x: hidden;
}

@media (max-width: 900px) {

    /* Some pages incorrectly hide the entire header-actions div,
       which also hides the hamburger. Force it visible. */
    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    /* Hide the desktop phone/CTA buttons — hamburger handles nav on mobile */
    .header-actions a.btn,
    .header-actions .btn {
        display: none !important;
    }

    /* Always show the hamburger icon */
    .hamburger {
        display: flex !important;
    }

    /* Collapse any multi-column inline grid layouts to single column */
    .mob-stack {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* Allow grid items to shrink below their natural content size (CSS default min-width:auto prevents this) */
    .mob-stack > * {
        min-width: 0;
        max-width: 100%;
    }

    /* Trust grid (4 columns) → 2×2 on mobile */
    .trust-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    /* Licences grid on about page */
    .licences-grid {
        grid-template-columns: 1fr !important;
    }

    /* CTA strip — prevent overflow on homepage */
    .cta-strip-text,
    .cta-strip-actions {
        min-width: 0;
        max-width: 100%;
    }

    .cta-strip-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Fix any contact/quote forms that sit inside a two-column layout */
    .cta-form {
        grid-template-columns: 1fr !important;
    }

    /* Force form field groups to shrink properly within grid cells */
    .fg {
        min-width: 0;
        width: 100%;
    }

    .fg input, .fg select, .fg textarea {
        width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    form {
        max-width: 100%;
        box-sizing: border-box;
    }

}
