/* ============================================================
   VIANNA COMMERCIAL SERVICES
   GLOBAL SITE FOOTER
============================================================ */


/* ============================================================
   1. FOOTER FOUNDATION
============================================================ */

.site-footer {
    position: relative;

    isolation: isolate;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    color:
        var(--color-white);

    color-scheme: dark;

    background:
        linear-gradient(
            180deg,
            var(--color-navy-1000) 0%,
            #01070e 100%
        );

    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);

    padding-bottom:
        env(
            safe-area-inset-bottom,
            0px
        );
}


/* ============================================================
   2. FOOTER BACKGROUND GLOW
============================================================ */

.site-footer::before {
    content: "";

    position: absolute;

    z-index: -2;

    top: -360px;
    left: -270px;

    width: 720px;
    height: 720px;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(22, 60, 99, 0.25) 0%,
            rgba(22, 60, 99, 0.07) 40%,
            transparent 72%
        );

    border-radius: 50%;
}


/* ============================================================
   3. FOOTER PATTERN
============================================================ */

.footer-pattern {
    position: absolute;

    z-index: -1;

    inset: 0;

    pointer-events: none;

    opacity: 0.3;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size:
        74px 74px;

    -webkit-mask-image:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.38) 62%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.38) 62%,
            transparent 100%
        );
}


/* ============================================================
   4. FOOTER CONTAINER
============================================================ */

.footer-container {
    position: relative;

    z-index: 2;

    width:
        min(
            calc(
                100% -
                (var(--container-padding) * 2)
            ),
            var(--container-width)
        );

    min-width: 0;

    margin:
        0 auto;
}


/* ============================================================
   5. FOOTER PRIMARY LAYOUT
============================================================ */

.footer-primary {
    display: grid;

    grid-template-columns:
        minmax(270px, 0.78fr)
        minmax(0, 2.22fr);

    align-items: start;

    gap:
        clamp(
            52px,
            6.2vw,
            92px
        );

    padding:
        clamp(
            68px,
            6.4vw,
            86px
        )
        0
        clamp(
            60px,
            5.5vw,
            74px
        );
}


/* ============================================================
   6. FOOTER BRAND COLUMN
============================================================ */

.footer-brand-column {
    width: 100%;
    min-width: 0;
    max-width: 390px;
}


/* ============================================================
   7. FOOTER BRAND
============================================================ */

.footer-brand {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    width: fit-content;

    color:
        var(--color-white);
}


/* ============================================================
   8. FOOTER BRAND MARK
============================================================ */

.footer-brand-mark {
    position: relative;

    display: block;

    width: 48px;
    height: 48px;

    flex:
        0 0 48px;
}

.footer-brand-mark-left,
.footer-brand-mark-right {
    position: absolute;

    top: 5px;

    width: 11px;
    height: 37px;

    background:
        linear-gradient(
            180deg,
            var(--color-red-400) 0%,
            var(--color-red-600) 100%
        );
}

.footer-brand-mark-left {
    left: 10px;

    transform:
        skewX(20deg);
}

.footer-brand-mark-right {
    right: 10px;

    transform:
        skewX(-20deg);
}


/* ============================================================
   9. FOOTER BRAND COPY
============================================================ */

.footer-brand-copy {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.footer-brand-name {
    color:
        var(--color-white);

    font-size: 19px;
    font-weight: 800;
    line-height: 1;

    letter-spacing:
        0.08em;
}

.footer-brand-description {
    margin-top: 5px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing:
        0.16em;

    text-transform: uppercase;
}


/* ============================================================
   10. FOOTER BRAND DESCRIPTION
============================================================ */

.footer-brand-text {
    max-width: 360px;

    margin:
        27px 0
        0;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 11px;
    font-weight: 450;
    line-height: 1.78;
}


/* ============================================================
   11. FOOTER LOCATION
============================================================ */

.footer-location {
    display: flex;

    align-items: center;

    gap: 13px;

    width: 100%;

    margin-top: 29px;

    padding-top: 24px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.footer-location svg {
    width: 20px;
    height: 20px;

    flex:
        0 0 20px;

    color:
        var(--color-red-400);
}

.footer-location div {
    display: flex;

    flex-direction: column;

    min-width: 0;

    gap: 4px;
}

.footer-location span {
    color:
        rgba(255, 255, 255, 0.34);

    font-size: 7px;
    font-weight: 800;
    line-height: 1.3;

    letter-spacing:
        0.15em;

    text-transform: uppercase;
}

.footer-location strong {
    color:
        rgba(255, 255, 255, 0.78);

    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
}


/* ============================================================
   12. FOOTER QUOTE LINK
============================================================ */

.footer-quote-link {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    min-height: 40px;

    margin-top: 24px;

    color:
        var(--color-white);

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

    letter-spacing:
        0.11em;

    text-transform: uppercase;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.25);

    transition:
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.footer-quote-link svg {
    width: 16px;
    height: 16px;

    flex:
        0 0 16px;

    color:
        var(--color-red-400);

    transition:
        transform var(--transition-medium);
}

.footer-quote-link:hover,
.footer-quote-link:focus-visible {
    color:
        var(--color-red-400);

    border-color:
        var(--color-red-500);
}

.footer-quote-link:hover svg,
.footer-quote-link:focus-visible svg {
    transform:
        translateX(4px);
}


/* ============================================================
   13. FOOTER NAVIGATION
============================================================ */

.footer-nav {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    align-items: start;

    gap:
        42px 32px;

    min-width: 0;
}

.footer-nav-column {
    min-width: 0;
}

.footer-nav-title {
    margin:
        0 0
        24px;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 8px;
    font-weight: 800;
    line-height: 1.3;

    letter-spacing:
        0.17em;

    text-transform: uppercase;
}


/* ============================================================
   14. FOOTER NAV LIST
============================================================ */

.footer-nav-list {
    display: grid;

    gap: 5px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-nav-list li {
    min-width: 0;
}

.footer-nav-list a {
    position: relative;

    display: inline-flex;

    align-items: center;

    min-height: 33px;

    max-width: 100%;

    color:
        rgba(255, 255, 255, 0.66);

    font-size: 10px;
    font-weight: 550;
    line-height: 1.45;

    overflow-wrap: anywhere;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}


/* ============================================================
   15. FOOTER LINK ACCENT
============================================================ */

.footer-nav-list a::before {
    content: "";

    position: absolute;

    top: 50%;
    left: -13px;

    width: 0;
    height: 1px;

    background:
        var(--color-red-500);

    opacity: 0;

    transform:
        translateY(-50%);

    transition:
        width var(--transition-fast),
        opacity var(--transition-fast);
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
    color:
        var(--color-white);

    transform:
        translateX(8px);
}

.footer-nav-list a:hover::before,
.footer-nav-list a:focus-visible::before {
    width: 7px;

    opacity: 1;
}

.footer-nav-list-highlight {
    margin-top: 7px;
}

.footer-nav-list-highlight a {
    color:
        var(--color-red-400);

    font-weight: 700;
}


/* ============================================================
   16. FOOTER SERVICE STRIP
============================================================ */

.footer-service-strip {
    display: grid;

    grid-template-columns:
        max-content
        minmax(0, 1fr);

    align-items: center;

    gap:
        24px 42px;

    padding:
        25px 0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.1);
}

.footer-service-strip-title {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 8px;
    font-weight: 800;
    line-height: 1.55;

    letter-spacing:
        0.14em;

    text-transform: uppercase;
}

.footer-service-strip-dot {
    width: 6px;
    height: 6px;

    flex:
        0 0 6px;

    background:
        var(--color-red-500);

    border-radius: 50%;

    box-shadow:
        0 0 10px
        rgba(223, 23, 56, 0.5);
}

.footer-service-strip-copy {
    min-width: 0;

    color:
        rgba(255, 255, 255, 0.38);

    font-size: 9px;
    font-weight: 450;
    line-height: 1.65;

    text-align: right;
}


/* ============================================================
   17. FOOTER BOTTOM
============================================================ */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    min-height: 78px;
}

.footer-copyright {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.32);

    font-size: 8px;
    font-weight: 600;
    line-height: 1.5;

    letter-spacing:
        0.04em;
}

.footer-bottom-links {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 13px;
}

.footer-bottom-links a {
    display: inline-flex;

    align-items: center;

    min-height: 34px;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 8px;
    font-weight: 650;
    line-height: 1;

    transition:
        color var(--transition-fast);
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
    color:
        var(--color-white);
}

.footer-bottom-links > span {
    width: 3px;
    height: 3px;

    flex:
        0 0 3px;

    background:
        rgba(255, 255, 255, 0.22);

    border-radius: 50%;
}


/* ============================================================
   18. FOOTER FOCUS
============================================================ */

.footer-brand:focus-visible,
.footer-quote-link:focus-visible,
.footer-nav-list a:focus-visible,
.footer-bottom-links a:focus-visible {
    outline:
        2px solid
        var(--color-red-400);

    outline-offset: 4px;
}


/* ============================================================
   19. SMALL DESKTOP / IPAD LANDSCAPE
============================================================ */

@media (max-width: 1180px) {

    .footer-primary {
        grid-template-columns:
            1fr;

        gap: 56px;

        padding-top: 68px;
        padding-bottom: 62px;
    }

    .footer-brand-column {
        max-width: 650px;
    }

    .footer-brand-text {
        max-width: 540px;
    }

    .footer-nav {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap:
            42px 28px;
    }
}


/* ============================================================
   20. TABLET / IPAD PORTRAIT
============================================================ */

@media (max-width: 900px) {

    .footer-primary {
        gap: 52px;
    }

    .footer-nav {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            46px 40px;
    }

    .footer-service-strip {
        grid-template-columns:
            1fr;

        gap: 10px;
    }

    .footer-service-strip-copy {
        max-width: 680px;

        text-align: left;
    }
}


/* ============================================================
   21. MOBILE
============================================================ */

@media (max-width: 640px) {

    .footer-pattern {
        background-size:
            52px 52px;
    }

    .site-footer::before {
        top: -280px;
        left: -340px;

        width: 620px;
        height: 620px;
    }


    /* ========================================================
       BRAND
    ======================================================== */

    .footer-primary {
        gap: 46px;

        padding:
            56px 0
            48px;
    }

    .footer-brand-column {
        max-width: 100%;
    }

    .footer-brand {
        gap: 12px;
    }

    .footer-brand-mark {
        width: 43px;
        height: 43px;

        flex-basis: 43px;
    }

    .footer-brand-mark-left,
    .footer-brand-mark-right {
        top: 5px;

        width: 10px;
        height: 33px;
    }

    .footer-brand-mark-left {
        left: 9px;
    }

    .footer-brand-mark-right {
        right: 9px;
    }

    .footer-brand-name {
        font-size: 17px;
    }

    .footer-brand-description {
        font-size: 7px;
    }

    .footer-brand-text {
        max-width: 480px;

        margin-top: 23px;

        font-size: 10px;
        line-height: 1.75;
    }


    /* ========================================================
       LOCATION
    ======================================================== */

    .footer-location {
        align-items: flex-start;

        margin-top: 25px;

        padding-top: 21px;
    }

    .footer-location svg {
        margin-top: 1px;
    }

    .footer-location strong {
        font-size: 10px;

        overflow-wrap: anywhere;
    }


    /* ========================================================
       QUOTE LINK
    ======================================================== */

    .footer-quote-link {
        min-height: 44px;

        margin-top: 22px;
    }


    /* ========================================================
       NAVIGATION
    ======================================================== */

    .footer-nav {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            40px 24px;
    }

    .footer-nav-title {
        margin-bottom: 15px;
    }

    .footer-nav-list {
        gap: 1px;
    }

    .footer-nav-list a {
        width: fit-content;

        min-height: 39px;

        font-size: 10px;
    }


    /* ========================================================
       SERVICE STRIP
    ======================================================== */

    .footer-service-strip {
        padding:
            21px 0;
    }

    .footer-service-strip-title {
        align-items: flex-start;

        font-size: 7px;

        white-space: normal;
    }

    .footer-service-strip-dot {
        margin-top: 3px;
    }

    .footer-service-strip-copy {
        font-size: 8px;
    }


    /* ========================================================
       BOTTOM
    ======================================================== */

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
        justify-content: center;

        gap: 6px;

        min-height: auto;

        padding:
            18px 0
            20px;
    }

    .footer-copyright {
        font-size: 7px;
    }

    .footer-bottom-links {
        gap:
            5px 12px;
    }

    .footer-bottom-links a {
        min-height: 36px;

        font-size: 8px;
    }
}


/* ============================================================
   22. NARROW MOBILE
   iPhone Pro / Android phones / 430px devices
============================================================ */

@media (max-width: 520px) {

    .footer-primary {
        gap: 42px;
    }

    .footer-nav {
        grid-template-columns:
            1fr;

        gap: 34px;
    }

    .footer-nav-column {
        padding-bottom: 4px;
    }

    .footer-nav-title {
        margin-bottom: 12px;

        font-size: 8px;
    }

    .footer-nav-list a {
        width: 100%;

        min-height: 42px;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.055);
    }

    .footer-nav-list li:last-child a {
        border-bottom: 0;
    }

    .footer-nav-list a:hover,
    .footer-nav-list a:focus-visible {
        transform:
            translateX(5px);
    }

    .footer-service-strip {
        margin-top: 4px;
    }
}


/* ============================================================
   23. SMALL MOBILE
============================================================ */

@media (max-width: 390px) {

    .footer-primary {
        padding-top: 50px;
        padding-bottom: 43px;
    }

    .footer-brand-mark {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .footer-brand-mark-left,
    .footer-brand-mark-right {
        height: 30px;
    }

    .footer-brand-name {
        font-size: 16px;
    }

    .footer-brand-text {
        font-size: 9px;
    }

    .footer-location {
        gap: 11px;
    }

    .footer-service-strip {
        padding:
            19px 0;
    }

    .footer-bottom-links {
        width: 100%;
    }
}


/* ============================================================
   24. TOUCH DEVICES
============================================================ */

@media (hover: none) {

    .footer-nav-list a:hover,
    .footer-quote-link:hover {
        transform:
            none;
    }

    .footer-quote-link:hover svg {
        transform:
            none;
    }
}


/* ============================================================
   25. REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .footer-quote-link,
    .footer-quote-link svg,
    .footer-nav-list a,
    .footer-nav-list a::before,
    .footer-bottom-links a {
        transition:
            none !important;
    }
}