/* =========================================================
   ECSI — MODERN CORPORATE FOOTER
========================================================= */

.footer {
    position: relative;

    margin: 0;
    padding: 78px 0 0;

    color: var(--ecsi-light);

    background:
        linear-gradient(
            145deg,
            #0B2545 0%,
            #13315C 52%,
            #0B2545 100%
        );

    border-top:
        1px solid rgba(141, 169, 196, 0.18);

    overflow: hidden;
}


/* =========================================================
   FOOTER DECORATIVE GLOW
========================================================= */

.footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(141, 169, 196, 0.45),
            transparent
        );

    pointer-events: none;
}

.footer::after {
    content: "";

    position: absolute;

    top: -180px;
    right: -160px;

    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(141, 169, 196, 0.10),
            transparent 70%
        );

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.footer > .container {
    position: relative;

    z-index: 1;

    width: min(
        1280px,
        calc(100% - 48px)
    );

    margin: 0 auto;
}


/* =========================================================
   FOOTER MAIN
========================================================= */

.footer-main {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.4fr)
        minmax(150px, 0.75fr)
        minmax(190px, 1fr)
        minmax(260px, 1.15fr);

    gap: 50px;

    padding-bottom: 62px;
}


/* =========================================================
   BRAND
========================================================= */

.footer-brand {
    max-width: 370px;
}


/* =========================================================
   LOGO
========================================================= */

.footer-logo {
    display: inline-flex;

    align-items: center;

    margin-bottom: 21px;

    line-height: 0;

    text-decoration: none;
}

.footer-logo img {
    display: block;

    width: 185px;
    height: auto;

    max-height: 62px;

    object-fit: contain;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.footer-logo:hover img {
    opacity: 0.9;

    transform:
        translateY(-2px);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.footer-description {
    max-width: 350px;

    margin: 0 0 23px;

    color:
        rgba(238, 244, 237, 0.65);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   TRUST BADGES
========================================================= */

.footer-trust {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 24px;
}

.footer-trust span {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 5px 9px;

    color:
        rgba(238, 244, 237, 0.70);

    font-size: 10px;

    font-weight: 600;

    line-height: 1.2;

    background:
        rgba(141, 169, 196, 0.07);

    border:
        1px solid rgba(141, 169, 196, 0.16);

    border-radius: 6px;
}


/* =========================================================
   SOCIAL MEDIA
========================================================= */

.footer-social {
    display: flex;

    align-items: center;

    gap: 9px;
}

.footer-social > span {
    margin-right: 4px;

    color:
        rgba(238, 244, 237, 0.48);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.footer-social a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color:
        rgba(238, 244, 237, 0.72);

    font-size: 14px;

    text-decoration: none;

    background:
        rgba(141, 169, 196, 0.08);

    border:
        1px solid rgba(141, 169, 196, 0.18);

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.footer-social a:hover {
    color: var(--ecsi-light);

    background:
        var(--ecsi-primary);

    border-color:
        rgba(141, 169, 196, 0.42);

    transform:
        translateY(-2px);
}


/* =========================================================
   FOOTER COLUMNS
========================================================= */

.footer-column h3 {
    margin: 3px 0 21px;

    color:
        var(--ecsi-light);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.footer-column ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-column li {
    margin: 0;
    padding: 0;
}

.footer-column li + li {
    margin-top: 11px;
}

.footer-column li a {
    display: inline-block;

    color:
        rgba(238, 244, 237, 0.62);

    font-size: 13px;

    line-height: 1.5;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-column li a:hover {
    color:
        var(--ecsi-accent);

    transform:
        translateX(4px);
}


/* =========================================================
   CONTACT COLUMN
========================================================= */

.footer-contact .contact-item {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 18px;
}

.footer-contact .contact-item:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONTACT ICON
========================================================= */

.contact-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    color:
        var(--ecsi-accent);

    font-size: 15px;

    background:
        rgba(141, 169, 196, 0.08);

    border:
        1px solid rgba(141, 169, 196, 0.16);

    border-radius: 8px;
}


/* =========================================================
   CONTACT LABEL
========================================================= */

.contact-item small {
    display: block;

    margin-bottom: 3px;

    color:
        rgba(238, 244, 237, 0.40);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


/* =========================================================
   CONTACT LINKS
========================================================= */

.contact-item a,
.contact-item address,
.contact-item > div > span {
    color:
        rgba(238, 244, 237, 0.76);

    font-size: 13px;

    line-height: 1.6;

    text-decoration: none;
}

.contact-item a {
    transition:
        color 0.2s ease;
}

.contact-item a:hover {
    color:
        var(--ecsi-accent);
}

.contact-item address {
    margin: 0;

    font-style: normal;
}


/* =========================================================
   CTA / COVERAGE
========================================================= */

.footer-highlight {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 24px 28px;

    background:
        linear-gradient(
            135deg,
            rgba(19, 64, 116, 0.75),
            rgba(11, 37, 69, 0.78)
        );

    border:
        1px solid rgba(141, 169, 196, 0.18);

    border-radius: 14px;

    box-shadow:
        inset 0 1px 0
        rgba(238, 244, 237, 0.05);
}


/* CTA TEXT */

.footer-highlight strong {
    display: block;

    margin-bottom: 5px;

    color:
        var(--ecsi-light);

    font-size: 14px;

    font-weight: 700;
}

.footer-highlight > div > span {
    display: block;

    color:
        rgba(238, 244, 237, 0.54);

    font-size: 12px;

    line-height: 1.6;
}


/* CTA LINK */

.footer-highlight > a {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    flex: 0 0 auto;

    min-height: 42px;

    padding: 10px 18px;

    color:
        var(--ecsi-light);

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    background:
        var(--ecsi-primary);

    border:
        1px solid rgba(141, 169, 196, 0.28);

    border-radius: 999px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.footer-highlight > a span {
    font-size: 16px;

    transition:
        transform 0.2s ease;
}

.footer-highlight > a:hover {
    color:
        var(--ecsi-light);

    background:
        var(--ecsi-secondary);

    border-color:
        rgba(141, 169, 196, 0.45);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.18);
}

.footer-highlight > a:hover span {
    transform:
        translateX(4px);
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-top: 42px;

    padding: 23px 0 27px;

    border-top:
        1px solid rgba(141, 169, 196, 0.13);
}

.footer-bottom p {
    margin: 0;

    color:
        rgba(238, 244, 237, 0.42);

    font-size: 11px;

    line-height: 1.6;
}

.footer-bottom strong {
    color:
        rgba(238, 244, 237, 0.68);

    font-weight: 600;
}


/* =========================================================
   LEGAL NAVIGATION
========================================================= */

.footer-legal {
    display: flex;

    align-items: center;

    gap: 20px;
}

.footer-legal a {
    color:
        rgba(238, 244, 237, 0.42);

    font-size: 11px;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.footer-legal a:hover {
    color:
        var(--ecsi-accent);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .footer-main {
        grid-template-columns:
            1.3fr
            0.8fr
            1fr;

        gap: 42px;
    }

    .footer-contact {
        grid-column: span 3;
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 991px) {

    .footer {
        padding-top: 65px;
    }

    .footer > .container {
        width:
            calc(100% - 40px);
    }

    .footer-main {
        grid-template-columns:
            1.2fr
            1fr;

        gap: 42px 35px;
    }

    .footer-contact {
        grid-column: span 2;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .footer {
        padding-top: 55px;
    }

    .footer > .container {
        width:
            calc(100% - 32px);
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 34px;

        padding-bottom: 45px;
    }

    .footer-contact {
        grid-column: auto;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo img {
        width: 165px;
    }

    .footer-description {
        max-width: 520px;

        font-size: 13px;

        line-height: 1.75;
    }

    .footer-trust {
        max-width: 500px;
    }

    .footer-column h3 {
        margin-bottom: 15px;
    }

    .footer-column li + li {
        margin-top: 9px;
    }

    .footer-highlight {
        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        padding: 22px;
    }

    .footer-highlight > a {
        width: auto;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 14px;

        margin-top: 34px;
    }

    .footer-legal {
        flex-wrap: wrap;

        gap: 10px 18px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .footer > .container {
        width:
            calc(100% - 28px);
    }

    .footer-main {
        gap: 30px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-description {
        font-size: 12px;
    }

    .footer-trust {
        gap: 6px;
    }

    .footer-trust span {
        font-size: 9px;

        padding: 5px 7px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
    }

    .footer-highlight {
        padding: 20px;

        border-radius: 12px;
    }

    .footer-highlight strong {
        font-size: 13px;
    }

    .footer-highlight > div > span {
        font-size: 11px;
    }

    .footer-bottom p,
    .footer-legal a {
        font-size: 10px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-logo img,
    .footer-social a,
    .footer-column li a,
    .contact-item a,
    .footer-highlight > a,
    .footer-highlight > a span,
    .footer-legal a {
        transition: none !important;
    }
}