:root {
    --cbmc-core-navy: #0d3550;
    --cbmc-core-navy-deep: #08283d;
    --cbmc-core-blue: #1277aa;
    --cbmc-core-cyan: #25b9cf;
    --cbmc-core-white: #ffffff;
    --cbmc-core-muted: #c9d8e4;
    --cbmc-core-border: rgba(255, 255, 255, 0.15);
    --cbmc-core-shadow: 0 18px 45px rgba(4, 27, 43, 0.22);
    --cbmc-site-font: inherit;
}

.cbmc-core-wrap {
    width: min(1304px, calc(100% - 48px));
    margin-inline: auto;
}

/* One footer only. These selectors target common Jupiter X, Elementor and WordPress theme footers. */
body.cbmc-core-replaces-footer .jupiterx-footer,
body.cbmc-core-replaces-footer .elementor-location-footer,
body.cbmc-core-replaces-footer footer#colophon,
body.cbmc-core-replaces-footer footer.site-footer,
body.cbmc-core-replaces-footer #site-footer:not(#cbmc-site-footer),
body.cbmc-core-replaces-footer .site-footer:not(.cbmc-core-footer) {
    display: none !important;
}

.cbmc-core-footer,
.cbmc-core-footer *,
.cbmc-core-tools-ribbon,
.cbmc-core-tools-ribbon * {
    box-sizing: border-box;
}

.cbmc-core-footer,
.cbmc-core-footer * {
    font-family: var(--cbmc-site-font), Arial, sans-serif !important;
}

.cbmc-core-footer {
    position: relative;
    z-index: 5;
    display: block !important;
    clear: both;
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--cbmc-core-white);
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 185, 207, 0.14), transparent 30%),
        linear-gradient(135deg, var(--cbmc-core-navy-deep), var(--cbmc-core-navy));
    font-family: var(--cbmc-site-font), Arial, sans-serif;
}

.cbmc-core-footer__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--cbmc-core-blue), var(--cbmc-core-cyan), var(--cbmc-core-blue));
}

.cbmc-core-footer__main {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(170px, .75fr) minmax(190px, .9fr) minmax(270px, 1.2fr);
    gap: clamp(32px, 4vw, 66px);
    padding-block: 58px 44px;
}

.cbmc-core-footer__brand,
.cbmc-core-footer__column {
    min-width: 0;
}

.cbmc-core-footer__logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(230px, 100%);
    height: 118px;
    padding: 13px 24px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--cbmc-core-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cbmc-core-footer__logo-card:hover,
.cbmc-core-footer__logo-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(4, 27, 43, 0.3);
}

.cbmc-core-footer__logo-card img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 185px;
    max-height: 92px;
    object-fit: contain;
}

.cbmc-core-footer__tagline {
    max-width: 330px;
    margin: 24px 0 10px;
    color: #fff;
    font-size: 17px;
    line-height: 1.55;
}

.cbmc-core-footer__markets {
    margin: 0;
    color: var(--cbmc-core-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.cbmc-core-footer__column h2 {
    margin: 4px 0 20px;
    color: #fff;
    font-family: var(--cbmc-site-font), Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.cbmc-core-footer__links {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cbmc-core-footer__links li {
    margin: 0;
    padding: 0;
}

.cbmc-core-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cbmc-core-muted);
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.cbmc-core-footer__links a span {
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .2s ease, transform .2s ease;
}

.cbmc-core-footer__links a:hover,
.cbmc-core-footer__links a:focus-visible {
    color: #fff;
    transform: translateX(2px);
}

.cbmc-core-footer__links a:hover span,
.cbmc-core-footer__links a:focus-visible span {
    opacity: 1;
    transform: translateX(0);
}

.cbmc-core-footer__contact {
    display: grid;
    align-content: start;
    gap: 12px;
}

.cbmc-core-footer__contact-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--cbmc-core-muted);
    font-size: 15px;
    line-height: 1.55;
    text-decoration: none;
}

.cbmc-core-footer__contact-row > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: -2px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.cbmc-core-footer__contact-row strong,
.cbmc-core-footer__contact-row address {
    min-width: 0;
    margin: 0;
    color: inherit;
    font-style: normal;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.cbmc-core-footer__contact-row:hover,
.cbmc-core-footer__contact-row:focus-visible {
    color: #fff;
}

.cbmc-core-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    border-top: 1px solid var(--cbmc-core-border);
    color: var(--cbmc-core-muted);
    font-size: 13px;
}

.cbmc-core-footer__bottom p {
    margin: 0;
}

.cbmc-core-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.cbmc-core-footer__legal a {
    color: var(--cbmc-core-muted);
    text-decoration: none;
}

.cbmc-core-footer__legal a:hover,
.cbmc-core-footer__legal a:focus-visible {
    color: #fff;
}

.cbmc-core-tools-ribbon {
    position: relative;
    z-index: 30;
    display: block;
    width: 100%;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(90deg, #0b3049, #123e5a 52%, #0b3049);
    box-shadow: 0 6px 18px rgba(7, 32, 50, .12);
    font-family: var(--cbmc-site-font), Arial, sans-serif;
}

.cbmc-core-tools-ribbon[hidden] {
    display: none !important;
}

.cbmc-core-tools-ribbon__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
}

.cbmc-core-tools-ribbon__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 56px;
    padding: 10px 24px;
    color: #fff;
    text-decoration: none;
    transition: background .2s ease;
}

.cbmc-core-tools-ribbon__link:hover,
.cbmc-core-tools-ribbon__link:focus-visible {
    color: #fff;
    background: rgba(37,185,207,.12);
}


.cbmc-core-tools-ribbon__link strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.cbmc-core-tools-ribbon__divider {
    width: 1px;
    margin-block: 12px;
    background: rgba(255,255,255,.18);
}

/* Fallback selectors for the exact homepage statement. JS also handles text-based matching. */
.home .cbmc-statement-white,
.home [data-cbmc-statement],
.home .cbmc-why-cbmc h2,
.home .why-cbmc h2 {
    color: #fff !important;
}

@media (max-width: 1024px) {
    .cbmc-core-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cbmc-core-wrap {
        width: min(100% - 30px, 1304px);
    }

    .cbmc-core-footer__main {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-block: 42px 34px;
    }

    .cbmc-core-footer__logo-card {
        width: 210px;
        height: 108px;
    }

    .cbmc-core-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 18px;
    }

    .cbmc-core-tools-ribbon__inner {
        grid-template-columns: 1fr 1px 1fr;
        width: 100%;
    }

    .cbmc-core-tools-ribbon__link {
        min-height: 62px;
        padding: 8px 12px;
        text-align: center;
    }

    .cbmc-core-tools-ribbon__link strong {
        font-size: 13px;
        line-height: 1.25;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cbmc-core-footer *,
    .cbmc-core-tools-ribbon * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* v1.0.2: Force only the two lines beneath the footer logo to use the synced site font. */
html body #cbmc-site-footer .cbmc-core-footer__brand > p.cbmc-core-footer__tagline,
html body #cbmc-site-footer .cbmc-core-footer__brand > p.cbmc-core-footer__markets {
    font-family: var(--cbmc-site-font), Arial, sans-serif !important;
}
