/* ============================================================
   FOOTER — High-End Corporate Redesign
   ============================================================ */

.site-footer {
    background: var(--gradient-brand);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

/* Subtle premium wash to avoid a flat gradient */
.site-footer::before {
    content: '';
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
}

.site-footer > * {
    position: relative;
    z-index: 1;
}

/* ── Trust CTA band — image + gradient overlay ── */
.footer-cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(260px, 34vh, 360px);
    background: #0c1a36;
    color: #fff;
    margin: 0;
}

.footer-cta-band__media,
.footer-cta-band__veil {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer-cta-band__media {
    z-index: 0;
}

.footer-cta-band__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: saturate(0.78) contrast(1.08) brightness(0.92);
    transform: scale(1.06);
}

.footer-cta-band__veil {
    z-index: 1;
    background:
        linear-gradient(
            105deg,
            rgba(12, 26, 54, 0.82) 0%,
            rgba(17, 41, 89, 0.58) 38%,
            rgba(27, 97, 121, 0.42) 68%,
            rgba(42, 165, 150, 0.35) 100%
        ),
        linear-gradient(
            180deg,
            rgba(12, 26, 54, 0.35) 0%,
            transparent 42%,
            rgba(12, 26, 54, 0.55) 100%
        );
    pointer-events: none;
}

.footer-cta-band__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 3.5vw, 3rem);
    width: 100%;
    padding-top: clamp(2rem, 3.5vw, 2.75rem);
    padding-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.footer-cta-band__copy {
    min-width: 0;
    max-width: 42rem;
}

.footer-cta-band__kicker {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1;
}

.footer-cta-band__title {
    margin: 0 0 0.55rem;
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    max-width: none;
    text-shadow: 0 8px 28px rgba(8, 18, 40, 0.35);
}

.footer-cta-band__lead {
    margin: 0;
    max-width: none;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.footer-cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: flex-end;
}

.footer-cta-band__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.25rem;
    padding: 0.8rem 1.3rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background-color var(--duration-ui, 0.3s) var(--ease-premium, ease),
        border-color var(--duration-ui, 0.3s) var(--ease-premium, ease),
        color var(--duration-ui, 0.3s) var(--ease-premium, ease),
        transform var(--duration-ui, 0.3s) var(--ease-premium, ease),
        box-shadow var(--duration-ui, 0.3s) var(--ease-premium, ease);
}

.footer-cta-band__btn--solid {
    background: #fff;
    color: var(--clr-primary, #112959);
    border: 1px solid #fff;
    box-shadow: 0 10px 28px rgba(8, 18, 40, 0.22);
}

.footer-cta-band__btn--solid:hover {
    background: var(--clr-accent, #e7e0cf);
    border-color: var(--clr-accent, #e7e0cf);
    color: var(--clr-primary, #112959);
    transform: translateY(-1px);
}

.footer-cta-band__btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
}

.footer-cta-band__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .footer-cta-band {
        min-height: 0;
    }

    .footer-cta-band__inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.35rem;
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .footer-cta-band__title {
        max-width: none;
    }

    .footer-cta-band__copy {
        max-width: none;
    }

    .footer-cta-band__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .footer-cta-band__btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* ── Footer Body ── */
.footer-body {
    padding: 1.5rem 0 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-body-inner {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding-x, 2rem);
}

/* Brand strip — full width, single row */
.footer-brand-bar {
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-logo-img {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-statement {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 42rem;
}

/* Offices + nav as two zones so link columns are not squeezed */
.footer-main-grid {
    display: grid;
    grid-template-columns: minmax(17rem, 0.95fr) minmax(0, 1.35fr);
    column-gap: clamp(1.75rem, 3.2vw, 3rem);
    row-gap: 1.5rem;
    align-items: start;
}

.footer-offices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.5rem;
    padding-right: clamp(0.75rem, 1.5vw, 1.25rem);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.1rem, 2vw, 1.75rem);
    row-gap: 1.25rem;
}

.footer-office {
    min-width: 0;
}

.footer-office__head {
    margin-bottom: 0.3rem;
}

.footer-office__label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.footer-office__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.footer-office__entity {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

.footer-office__address {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    line-height: 1.45;
    font-style: normal;
    color: rgba(255, 255, 255, 0.72);
}

.footer-office__hours {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.58);
}

.footer-office__contact {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    font-size: 0.72rem;
    line-height: 1.35;
}

.footer-office__contact a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    word-break: break-word;
}

.footer-office__contact a:hover {
    opacity: 0.85;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Direct routing strip */
.footer-routing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-routing__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.footer-routing__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.footer-routing__list a {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.footer-routing__list a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* ── Link Columns ── */
.footer-col {
    min-width: 0;
}

.footer-col-heading {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.55rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.footer-link-list a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    line-height: 1.35;
}

.footer-link-list a:hover {
    color: #fff;
}

/* ── Bottom Bar ── */
.footer-bottom {
    padding: 0.7rem 0;
    background-color: rgba(8, 18, 40, 0.38);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding-x, 2rem);
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
    letter-spacing: 0.2px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

.footer-legal a {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s;
    line-height: 1.4;
}

.footer-legal a:hover {
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        row-gap: 1.35rem;
    }

    .footer-offices {
        padding-right: 0;
        border-right: none;
        padding-bottom: 1.15rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
        row-gap: 1.35rem;
    }
}

@media (max-width: 860px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
        row-gap: 1.35rem;
    }
}

@media (max-width: 720px) {
    .footer-brand-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .footer-offices {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
}

@media (max-width: 480px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
}
