/* CyberAI footer balance patch v1.0 – 2026-11-01
   Scope: public website footer only. Loaded AFTER the existing layout styles.
   No JavaScript; no changes to navigation URLs, credentials, or portal links.
*/

/* Desktop: brand + trust on the left, balanced Explore/Company navigation. */
.site-footer .footer-main {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 2.55fr);
    align-items: start;
    gap: clamp(34px, 4.5vw, 72px);
    padding: 50px 0 36px;
}
.site-footer .footer-brand,
.site-footer .footer-links,
.site-footer .footer-explore,
.site-footer .footer-company,
.site-footer .footer-explore-column {
    min-width: 0;
}
.site-footer .footer-brand > p {
    max-width: 320px;
    margin: 18px 0 0;
    line-height: 1.75;
    font-size: 13px;
}
.site-footer .footer-links {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(190px, .95fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
}
.site-footer .footer-explore-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(18px, 2.2vw, 36px);
}
.site-footer .footer-links h3,
.site-footer .footer-trust h3 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
}
.site-footer .footer-links a,
.site-footer .footer-trust a {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 5px 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.52;
    text-decoration: none;
    overflow-wrap: break-word;
    transition: color .16s ease;
}
.site-footer .footer-links a:hover,
.site-footer .footer-trust a:hover {
    color: var(--accent);
}
.site-footer .footer-links a:focus-visible,
.site-footer .footer-trust a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}
.site-footer .footer-webmail-link small {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.4;
}
/* Fill the former empty lower-left area with existing trust information. */
.site-footer .footer-trust {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    max-width: 270px;
}
.site-footer .footer-credentials {
    gap: 14px;
    padding-bottom: 26px;
}
.site-footer .footer-bottom {
    flex-wrap: wrap;
    row-gap: 10px;
}

/* Tablet: brand/trust row above navigation; keep the Explore two-column list. */
@media (max-width: 1050px) {
    .site-footer .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        padding-top: 42px;
    }
    .site-footer .footer-brand {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr);
        column-gap: 30px;
        align-items: start;
    }
    .site-footer .footer-brand > .brand { grid-column: 1; grid-row: 1; }
    .site-footer .footer-brand > p { grid-column: 1; grid-row: 2; }
    .site-footer .footer-trust { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
    .site-footer .footer-links { grid-template-columns: minmax(0, 2.2fr) minmax(180px, 1fr); }
}

/* Mobile: comfortable reading width, no cramped three/four-column grid. */
@media (max-width: 650px) {
    .site-footer .footer-main { gap: 26px; padding: 34px 0 28px; }
    .site-footer .footer-brand { display: block; }
    .site-footer .footer-brand > p { max-width: 100%; }
    .site-footer .footer-trust {
        display: flex;
        flex-wrap: wrap;
        column-gap: 16px;
        row-gap: 2px;
        margin-top: 20px;
        padding-top: 14px;
        max-width: none;
    }
    .site-footer .footer-trust h3 { width: 100%; margin: 0 0 5px; }
    .site-footer .footer-trust a { width: auto; }
    .site-footer .footer-links { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .site-footer .footer-explore-columns { column-gap: 18px; }
    .site-footer .footer-credentials { grid-template-columns: minmax(0, 1fr); }
    .site-footer .footer-credential { min-width: 0; }
}

