
/* =========================================================
   SITE FOOTER — BASE
========================================================= */

.site-footer {
    position: relative;

    width: 100%;
    max-width: none;

    box-sizing: border-box;

    padding: 65px 0 25px;

    background: #282d2e;
    color: #fff;
}

.site-footer * {
    box-sizing: border-box;
}


/* =========================================================
   CONTENT CONTAINER
========================================================= */

.site-footer .footer-inner {
    width: min(calc(100% - 80px), 1480px) !important;
    max-width: none !important;

    margin: 0 auto !important;
    padding: 0 !important;
}


/* Remove unnecessary Gutenberg group spacing */

.site-footer .footer-inner > *,
.site-footer .footer-main > *,
.site-footer .footer-nav > *,
.site-footer .footer-nav-column > * {
    margin-block-start: 0 !important;
}


/* =========================================================
   MAIN FOOTER LAYOUT
========================================================= */

.site-footer .footer-main {
    display: grid;

    grid-template-columns:
        minmax(250px, .85fr)
        minmax(0, 1.4fr);

    gap: clamp(60px, 8vw, 130px);

    align-items: start;

    width: 100%;
    max-width: none !important;

    margin: 0 !important;
}


/* =========================================================
   BRAND SECTION
========================================================= */

.site-footer .footer-brand {
    max-width: 380px;
}


/* Logo */

.site-footer .footer-brand .wp-block-site-logo,
.site-footer .footer-brand .wp-block-image {
    margin: 0 0 24px !important;
}


.site-footer .footer-brand .wp-block-site-logo img,
.site-footer .footer-brand .wp-block-image img {
    display: block;

    width: auto;
    max-width: 180px;
    max-height: 100px;

    height: auto;

    object-fit: contain;
}


/* Brand description */

.site-footer .footer-brand > p {
    max-width: 330px;

    margin: 0 !important;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.8;

    color: rgba(255, 255, 255, .65);
}


/* =========================================================
   SOCIAL ICONS
========================================================= */

.site-footer .footer-brand .wp-block-social-links {
    display: flex;

    flex-wrap: wrap;
    align-items: center;

    gap: 16px;

    margin: 28px 0 0 !important;
    padding: 0;
}


/* Monochrome social icons */

.site-footer .wp-block-social-links .wp-social-link {
    background: transparent !important;
    color: rgba(255, 255, 255, .65) !important;

    transition:
        color .2s ease,
        transform .2s ease;
}


.site-footer .wp-block-social-links .wp-social-link:hover {
    background: transparent !important;
    color: #fff !important;

    transform: translateY(-3px);
}


.site-footer .wp-social-link a {
    color: inherit !important;
}


/* =========================================================
   FOOTER NAVIGATION
========================================================= */

.site-footer .footer-nav {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: clamp(24px, 3vw, 55px);

    width: 100%;
    max-width: none !important;

    margin: 0 !important;
}


/* Navigation columns */

.site-footer .footer-nav-column {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 0;
}


/* Column headings */

.site-footer .footer-nav-column h3 {
    margin: 0 0 24px !important;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.4;
    letter-spacing: .16em;

    color: rgba(255, 255, 255, .48);
}


/* Link paragraphs */

.site-footer .footer-nav-column p {
    margin: 0 0 13px !important;

    font-size: 14px;
    line-height: 1.55;
}


/* Footer links */

.site-footer .footer-nav-column a {
    color: #f5f5f5;

    text-decoration: none;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.5;

    transition:
        color .2s ease,
        opacity .2s ease;
}


.site-footer .footer-nav-column a:hover {
    color: #d7bee9;
}


/* Keyboard focus */

.site-footer a:focus-visible {
    outline: 2px solid #d7bee9;
    outline-offset: 5px;
}


/* =========================================================
   BOTTOM COPYRIGHT AREA
========================================================= */

.site-footer .footer-bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;

    gap: 16px 30px;

    width: 100%;
    max-width: none !important;

    margin: 55px 0 0 !important;

    padding: 20px 0 0;

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


/* Copyright and company details */

.site-footer .footer-bottom p {
    margin: 0 !important;

    font-size: 11px;
    font-weight: 400;

    line-height: 1.6;
    letter-spacing: .04em;

    color: rgba(255, 255, 255, .5);
}


/* Align right-side information */

.site-footer .footer-bottom p:last-child {
    text-align: right;
}


/* Links in copyright area */

.site-footer .footer-bottom a {
    color: inherit;

    text-decoration: none;

    transition: color .2s ease;
}


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


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .site-footer {
        padding: 60px 0 25px;
    }


    .site-footer .footer-inner {
        width: calc(100% - 56px) !important;
    }


    .site-footer .footer-main {
        grid-template-columns:
            minmax(200px, .7fr)
            minmax(0, 1.3fr);

        gap: 45px;
    }


    .site-footer .footer-nav {
        gap: 25px;
    }


    .site-footer .footer-bottom {
        margin-top: 45px !important;
    }

}


/* =========================================================
   MOBILE / SMALL TABLET
========================================================= */

@media (max-width: 780px) {

    .site-footer {
        padding: 55px 0 24px;
    }


    .site-footer .footer-inner {
        width: calc(100% - 40px) !important;
    }


    /* Stack brand and navigation */

    .site-footer .footer-main {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .site-footer .footer-brand {
        max-width: none;
    }


    .site-footer .footer-brand > p {
        max-width: 350px;
    }


    /* Navigation remains in three columns */

    .site-footer .footer-nav {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px;
    }


    .site-footer .footer-nav-column h3 {
        margin-bottom: 18px !important;
    }


    .site-footer .footer-bottom {
        margin-top: 45px !important;
        padding-top: 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .site-footer {
        padding: 48px 0 22px;
    }


    .site-footer .footer-brand
    .wp-block-site-logo img,
    .site-footer .footer-brand
    .wp-block-image img {
        max-width: 155px;
        max-height: 85px;
    }


    .site-footer .footer-brand > p {
        font-size: 13px;
    }


    .site-footer .footer-nav {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px 25px;
    }


    .site-footer .footer-nav-column h3 {
        font-size: 10px;
    }


    .site-footer .footer-nav-column p,
    .site-footer .footer-nav-column a {
        font-size: 13px;
    }


    .site-footer .footer-bottom {
        display: block;

        margin-top: 40px !important;
    }


    .site-footer .footer-bottom p:last-child {
        margin-top: 10px !important;

        text-align: left;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .site-footer .footer-inner {
        width: calc(100% - 32px) !important;
    }


    .site-footer .footer-nav {
        gap: 28px 15px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .site-footer a,
    .site-footer .wp-social-link {
        transition: none !important;
        transform: none !important;
    }

}



/* =========================================================
   FOOTER — BACK TO TOP
========================================================= */

.site-footer .footer-return {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    margin: 38px 0 0 !important;
    padding: 0;
}

.site-footer .footer-return p {
    margin: 0 !important;
}

.site-footer .footer-return a {
    display: inline-block;

    padding: 10px 0;

    color: rgba(255, 255, 255, .75);
    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, .3);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .13em;

    transition:
        color .25s ease,
        border-color .25s ease;
}

.site-footer .footer-return a:hover {
    color: #fff;
    border-color: #d5b2e9;
}

/* Reduce gap before copyright divider */

.site-footer .footer-bottom {
    margin-top: 16px !important;
}

/* Mobile */

@media (max-width: 600px) {

    .site-footer .footer-return {
        margin-top: 30px !important;
    }

    .site-footer .footer-return a {
        font-size: 10px;
    }

}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .site-footer .footer-return a {
        transition: none;
    }

}

