/*
|--------------------------------------------------------------------------
| MKGO - Public Footer
|--------------------------------------------------------------------------
|
| File:
| /assets/css/components/footer.css
|
*/


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #0f172a;
    color: #ffffff;
}


.site-footer::before {
    content: "";

    position: absolute;

    top: -280px;
    left: -220px;

    width: 560px;
    height: 560px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0) 70%
        );

    pointer-events: none;
}


.site-footer > .site-container {
    position: relative;
    z-index: 1;
}


/*
|--------------------------------------------------------------------------
| Main Grid
|--------------------------------------------------------------------------
*/

.site-footer-grid {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.5fr)
        repeat(4, minmax(130px, 1fr));

    gap: 50px;

    padding:
        72px
        0
        58px;
}


/*
|--------------------------------------------------------------------------
| Brand
|--------------------------------------------------------------------------
*/

.site-footer-brand {
    max-width: 330px;
}


.site-footer-logo {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    text-decoration: none;
}


.site-footer-logo:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;

    border-radius: 8px;
}


/*
|--------------------------------------------------------------------------
| Shared Brand Overrides
|--------------------------------------------------------------------------
*/

.site-footer
.site-brand-mark {
    background: #ffffff;
    color: #0f172a;
}


.site-footer
.site-brand-name {
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Tagline
|--------------------------------------------------------------------------
*/

.site-footer-tagline {
    max-width: 280px;

    margin:
        22px
        0
        0;

    color: #cbd5e1;

    font-size: 0.92rem;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Company
|--------------------------------------------------------------------------
*/

.site-footer-company {
    max-width: 290px;

    margin:
        14px
        0
        0;

    color: #94a3b8;

    font-size: 0.76rem;
    line-height: 1.65;
}


.site-footer-company strong {
    color: #cbd5e1;

    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Brand Actions
|--------------------------------------------------------------------------
*/

.site-footer-brand-actions {
    display: flex;
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;

    margin-top: 24px;
}


.site-footer-brand-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    width: fit-content;

    color: #cbd5e1;

    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 700;

    transition:
        color 0.18s ease;
}


.site-footer-brand-link::after {
    content: "→";

    margin-left: 7px;

    color: #64748b;

    transition:
        transform 0.18s ease,
        color 0.18s ease;
}


.site-footer-brand-link:hover {
    color: #ffffff;
}


.site-footer-brand-link:hover::after {
    color: #ffffff;

    transform:
        translateX(3px);
}


.site-footer-brand-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;

    border-radius: 3px;
}


/*
|--------------------------------------------------------------------------
| Columns
|--------------------------------------------------------------------------
*/

.site-footer-column {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Desktop Heading
|--------------------------------------------------------------------------
*/

.site-footer-heading {
    margin:
        2px
        0
        20px;

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Links
|--------------------------------------------------------------------------
*/

.site-footer-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;

    gap: 12px;
}


.site-footer-links a {
    position: relative;

    display: inline-flex;

    color: #94a3b8;

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 550;
    line-height: 1.5;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}


.site-footer-links a:hover {
    color: #ffffff;
}


.site-footer-links a.is-active {
    color: #ffffff;

    font-weight: 700;
}


.site-footer-links a.is-active::before {
    content: "";

    position: absolute;

    top: 50%;
    left: -12px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #ffffff;

    transform:
        translateY(-50%);
}


.site-footer-links a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;

    border-radius: 3px;
}


/*
|--------------------------------------------------------------------------
| Mobile Toggle
|--------------------------------------------------------------------------
*/

.site-footer-toggle {
    display: none;

    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;
    color: #ffffff;

    cursor: pointer;

    font: inherit;

    text-align: left;
}


.site-footer-toggle-icon {
    position: relative;

    display: block;

    flex: 0 0 auto;

    width: 18px;
    height: 18px;
}


.site-footer-toggle-icon::before,
.site-footer-toggle-icon::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 12px;
    height: 1.5px;

    border-radius: 999px;

    background: #94a3b8;

    transform:
        translate(-50%, -50%);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.site-footer-toggle-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}


.site-footer-toggle[aria-expanded="true"]
.site-footer-toggle-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}


.site-footer-toggle[aria-expanded="true"]
.site-footer-toggle-icon::before,

.site-footer-toggle[aria-expanded="true"]
.site-footer-toggle-icon::after {
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Divider
|--------------------------------------------------------------------------
*/

.site-footer-divider {
    width: 100%;
    height: 1px;

    background:
        rgba(148, 163, 184, 0.18);
}


/*
|--------------------------------------------------------------------------
| Bottom
|--------------------------------------------------------------------------
*/

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    min-height: 86px;

    padding:
        22px
        0;
}


/*
|--------------------------------------------------------------------------
| Copyright
|--------------------------------------------------------------------------
*/

.site-footer-copyright {
    margin: 0;

    color: #64748b;

    font-size: 0.73rem;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Bottom Links
|--------------------------------------------------------------------------
*/

.site-footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 22px;
}


.site-footer-bottom-links a {
    color: #64748b;

    text-decoration: none;

    font-size: 0.73rem;
    font-weight: 600;

    transition:
        color 0.18s ease;
}


.site-footer-bottom-links a:hover,
.site-footer-bottom-links a.is-active {
    color: #ffffff;
}


.site-footer-bottom-links a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;

    border-radius: 3px;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .site-footer-grid {
        grid-template-columns:
            minmax(260px, 1.4fr)
            repeat(2, minmax(160px, 1fr));

        gap:
            46px
            36px;
    }


    .site-footer-brand {
        grid-row:
            span 2;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile Footer
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {

    .site-footer-grid {
        display: block;

        padding:
            52px
            0
            36px;
    }


    /*
    |--------------------------------------------------------------------------
    | Brand
    |--------------------------------------------------------------------------
    */

    .site-footer-brand {
        max-width: 100%;

        margin-bottom: 38px;
    }


    .site-footer-tagline {
        max-width: 420px;
    }


    .site-footer-company {
        max-width: 420px;
    }


    /*
    |--------------------------------------------------------------------------
    | Columns
    |--------------------------------------------------------------------------
    */

    .site-footer-column {
        border-top:
            1px solid
            rgba(148, 163, 184, 0.16);
    }


    .site-footer-column:last-child {
        border-bottom:
            1px solid
            rgba(148, 163, 184, 0.16);
    }


    /*
    |--------------------------------------------------------------------------
    | Desktop Heading
    |--------------------------------------------------------------------------
    */

    .site-footer-heading {
        position: absolute;

        width: 1px;
        height: 1px;

        margin: -1px;
        padding: 0;

        overflow: hidden;

        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);

        white-space: nowrap;

        border: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | Toggle
    |--------------------------------------------------------------------------
    */

    .site-footer-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 20px;

        min-height: 58px;

        padding:
            0
            2px;

        color: #ffffff;

        font-size: 0.82rem;
        font-weight: 750;
    }


    .site-footer-toggle:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: -3px;

        border-radius: 4px;
    }


    /*
    |--------------------------------------------------------------------------
    | Collapsible Links
    |--------------------------------------------------------------------------
    */

    .site-footer-links {
        display: grid;

        grid-template-rows: 0fr;

        gap: 0;

        overflow: hidden;

        visibility: hidden;

        opacity: 0;

        transition:
            grid-template-rows 0.25s ease,
            opacity 0.2s ease,
            visibility 0.25s ease,
            padding 0.25s ease;
    }


    .site-footer-links::before {
        content: "";

        min-height: 0;
    }


    .site-footer-column.is-open
    .site-footer-links {
        grid-template-rows: 1fr;

        visibility: visible;

        opacity: 1;

        padding-bottom: 18px;
    }


    .site-footer-links a {
        margin-top: 11px;

        padding-left: 2px;

        font-size: 0.8rem;
    }


    .site-footer-links a:first-child {
        margin-top: 0;
    }


    .site-footer-links
    a.is-active::before {
        display: none;
    }


    /*
    |--------------------------------------------------------------------------
    | Bottom
    |--------------------------------------------------------------------------
    */

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;

        min-height: 0;

        padding:
            24px
            0
            28px;
    }


    .site-footer-bottom-links {
        gap:
            14px
            20px;
    }

}


/*
|--------------------------------------------------------------------------
| Small Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {

    .site-footer-grid {
        padding-top: 44px;
    }


    .site-footer-brand-actions {
        gap: 10px;
    }


    .site-footer-bottom-links {
        width: 100%;
    }

}


/*
|--------------------------------------------------------------------------
| No JavaScript Fallback
|--------------------------------------------------------------------------
|
| home.js can add .js-ready to <html>. If JavaScript is unavailable we do
| not want the mobile footer links to become permanently inaccessible.
|
*/

@media (max-width: 760px) {

    html:not(.js-ready)
    .site-footer-links {
        display: flex;

        overflow: visible;

        visibility: visible;

        opacity: 1;

        padding-bottom: 18px;
    }


    html:not(.js-ready)
    .site-footer-toggle {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .site-footer-links,
    .site-footer-links a,
    .site-footer-brand-link,
    .site-footer-brand-link::after,
    .site-footer-bottom-links a,
    .site-footer-toggle-icon::before,
    .site-footer-toggle-icon::after {
        transition: none;
    }

}