/* ==========================================================
   KOKO Enterprise
   Premium Footer
   Version: 3.1.0
   ========================================================== */

/*--------------------------------------------------------------
# Site Footer
--------------------------------------------------------------*/

.site-footer {
    position: relative;

    padding: 96px 0 34px;

    color: rgba(255, 255, 255, 0.72);
    background: #111111;

    font-size: 0.98rem;
}

/*--------------------------------------------------------------
# Footer Container
--------------------------------------------------------------*/

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

/*--------------------------------------------------------------
# Footer Top
--------------------------------------------------------------*/

.footer-top {
    display: block;

    max-width: 640px;

    margin: 0 0 5rem;
    padding-bottom: 3rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/*--------------------------------------------------------------
# Footer Branding
--------------------------------------------------------------*/

.footer-brand {
    display: flex;
    align-items: center;

    margin: 0 0 1.5rem;
}

.footer-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-brand .custom-logo {
    display: block;

    width: auto;
    max-width: 185px;
    max-height: 60px;

    filter:
        brightness(0)
        saturate(100%)
        invert(100%);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.footer-brand .custom-logo-link:hover .custom-logo,
.footer-brand .custom-logo-link:focus-visible .custom-logo {
    opacity: 0.82;
    transform: translateY(-1px);
}

/*--------------------------------------------------------------
# Text Logo Fallback
--------------------------------------------------------------*/

h2.footer-brand {
    color: #ffffff;

    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

/*--------------------------------------------------------------
# Footer Intro
--------------------------------------------------------------*/

.footer-intro {
    max-width: 540px;
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.9;
}

/*--------------------------------------------------------------
# Footer Grid
--------------------------------------------------------------*/

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem;

    margin-bottom: 5rem;
}

/*--------------------------------------------------------------
# Footer Columns
--------------------------------------------------------------*/

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

.footer-column h4 {
    margin: 0 0 1.5rem;

    color: #ffffff;

    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/*--------------------------------------------------------------
# Footer Menu
--------------------------------------------------------------*/

.footer-menu {
    display: grid;
    gap: 1rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: rgba(255, 255, 255, 0.68);

    line-height: 1.6;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-menu a::after {
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;

    height: 1px;

    content: "";

    background: var(--color-accent, #b08d57);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform 0.25s ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-menu a:hover::after,
.footer-menu a:focus-visible::after {
    transform: scaleX(1);
}

/*--------------------------------------------------------------
# Footer Bottom
--------------------------------------------------------------*/

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    padding-top: 2.5rem;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/*--------------------------------------------------------------
# Copyright
--------------------------------------------------------------*/

.footer-copyright {
    margin: 0;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.88rem;
    line-height: 1.7;
}

/*--------------------------------------------------------------
# Legal Navigation
--------------------------------------------------------------*/

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal a {
    position: relative;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.88rem;
    text-decoration: none;

    transition: color 0.25s ease;
}

.footer-legal a::after {
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;

    height: 1px;

    content: "";

    background: var(--color-accent, #b08d57);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform 0.25s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #ffffff;
}

.footer-legal a:hover::after,
.footer-legal a:focus-visible::after {
    transform: scaleX(1);
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

.site-footer a:focus-visible {
    outline: 2px solid var(--color-accent, #b08d57);
    outline-offset: 4px;
    border-radius: 2px;
}

/*--------------------------------------------------------------
# Tablet
--------------------------------------------------------------*/

@media (max-width: 992px) {
    .site-footer {
        padding: 82px 0 32px;
    }

    .footer-top {
        margin-bottom: 3.5rem;
        padding-bottom: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }

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

/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 768px) {
    .site-footer {
        padding: 68px 0 28px;
    }

    .footer-top {
        margin-bottom: 3rem;
        padding-bottom: 2.5rem;
    }

    .footer-brand .custom-logo {
        max-width: 160px;
        max-height: 52px;
    }

    h2.footer-brand {
        font-size: 2rem;
    }

    .footer-intro {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;

        margin-bottom: 3rem;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 1.25rem;
    }
}

/*--------------------------------------------------------------
# Small Mobile
--------------------------------------------------------------*/

@media (max-width: 576px) {
    .site-footer {
        padding: 58px 0 24px;
    }

    .footer-brand {
        margin-bottom: 1.25rem;
    }

    .footer-brand .custom-logo {
        max-width: 145px;
        max-height: 46px;
    }

    h2.footer-brand {
        font-size: 1.8rem;
    }

    .footer-intro {
        font-size: 1rem;
    }

    .footer-column h4 {
        margin-bottom: 1.2rem;
    }

    .footer-menu {
        gap: 0.85rem;
    }

    .footer-legal {
        gap: 1rem;
    }
}

/*--------------------------------------------------------------
# Reduced Motion
--------------------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {
    .footer-brand .custom-logo,
    .footer-menu a,
    .footer-menu a::after,
    .footer-legal a,
    .footer-legal a::after {
        transition: none;
    }

    .footer-brand .custom-logo-link:hover .custom-logo,
    .footer-brand .custom-logo-link:focus-visible .custom-logo,
    .footer-menu a:hover,
    .footer-menu a:focus-visible {
        transform: none;
    }
}