/* Shared Footer */
@font-face {
    font-family: "CMC Footer Icons";
    src: url("/assets/bootstrap-icons/fonts/home-bootstrap-icons.woff2") format("woff2");
    font-display: block;
}

.footer-section {
    margin: 0 !important;
    padding: 54px 0 24px;
    border-top: 4px solid #fd7e14;
    background: #08111d;
    color: #b9c5d1;
    font-family: "CMC Body", Roboto, sans-serif;
    line-height: 1.5;
}

.cmc-footer .footer-section {
    border-top-width: 2px;
}

.cmc-footer .footer-section > .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 48px);
}

.cmc-footer .footer-section :is(h2, strong) {
    font-family: "CMC Body", system-ui, sans-serif !important;
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1.85fr);
    gap: 64px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.footer-brand-link img {
    flex: 0 0 auto;
    border-radius: 50%;
}

.footer-brand-link strong,
.footer-brand-link small {
    display: block;
}

.footer-brand-link strong {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.footer-brand-link small {
    margin-top: 3px;
    color: #93a5b5;
    font-size: .82rem;
}

.footer-brand > p {
    max-width: 440px;
    margin: 20px 0;
    color: #aebbc7;
    font-size: .92rem;
    line-height: 1.65;
}

.footer-contact {
    display: grid;
    gap: 9px;
    margin: 0;
    font-style: normal;
}

.footer-contact a {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    color: #d8e1e9;
    font-size: .88rem;
    line-height: 1.45;
    text-decoration: none;
}

.footer-contact a:hover,
.footer-link-group a:hover,
.footer-social a:hover {
    color: #fd7e14;
}

.footer-contact i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #fd7e14;
}

.footer-contact .bi::before {
    display: inline-block;
    font: normal 1em/1 "CMC Footer Icons" !important;
}

.footer-contact .bi-geo-alt-fill::before { content: "\f3e7"; }
.footer-contact .bi-telephone-fill::before { content: "\f5b4"; }
.footer-contact .bi-envelope-fill::before { content: "\f32c"; }

.footer-contact span {
    overflow-wrap: anywhere;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: 'Oswald', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-button-primary {
    background: #fd7e14;
    color: #fff;
}

.footer-button-primary:hover {
    background: #e96f0f;
    color: #fff;
}

.footer-button-secondary {
    border-color: rgba(255, 255, 255, .32);
    color: #fff;
}

.footer-button-secondary:hover {
    border-color: #fff;
    background: #fff;
    color: #032662;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.footer-link-group h2 {
    margin: 4px 0 17px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.footer-link-group h2::after {
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 8px;
    background: #fd7e14;
    content: '';
}

.footer-link-group ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-link-group a {
    color: #aebbc7;
    font-size: .9rem;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px 28px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #7f91a2;
    font-size: .78rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: auto;
}

.footer-social a {
    color: #9fb0bf;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 991px) {
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}

@media (max-width: 575px) {
    .footer-section {
        padding: 42px 0 92px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 16px;
    }

    .footer-link-group h2 {
        letter-spacing: .6px;
    }

    .footer-link-group:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: grid;
        gap: 8px;
        margin-top: 36px;
    }

    .footer-social {
        gap: 14px;
        margin: 8px 0 0;
    }
}
