/* ==========================================================
   SERGIO
   File: footer.css
   Version: 1.1
   Purpose: Shared Responsive Site Footer
========================================================== */


/* ==========================================================
   SITE FOOTER
========================================================== */

.site-footer {
    background: #fff;
    color: #1c1c1c;
}

.site-footer__inner {
    width: 100%;
}


/* ==========================================================
   MOBILE ACCORDION
========================================================== */

.site-footer__group {
    border-top: 1px solid rgba(28, 28, 28, 0.12);
}

.site-footer__group:last-child {
    border-bottom: 1px solid rgba(28, 28, 28, 0.12);
}

.site-footer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 3.75rem;
    padding: 0 1.5rem;

    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;
    list-style: none;
}

.site-footer__heading::-webkit-details-marker {
    display: none;
}

.site-footer__chevron {
    width: 0.8rem;
    height: 0.8rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 300ms ease;
}

.site-footer__group[open] .site-footer__chevron {
    transform: rotate(180deg);
}


/* ==========================================================
   FOOTER NAVIGATION
========================================================== */

.site-footer__nav {
    padding: 0 1.5rem 1.75rem;
}

.site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__list a,
.site-footer__cookie-button {
    color: inherit;

    font: inherit;
    font-size: 0.75rem;
    line-height: 1.4;
    text-decoration: none;
}

.site-footer__cookie-button {
    padding: 0;

    text-align: left;
}

.site-footer__list a:hover,
.site-footer__cookie-button:hover {
    opacity: 0.55;
}


/* ==========================================================
   FOOTER BOTTOM
========================================================== */

.site-footer__bottom {
    padding: 1.5rem;
}

.site-footer__copyright {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ==========================================================
   DESKTOP
========================================================== */

@media (min-width: 64rem) {

    .site-footer {
        padding: 5rem 4rem 2rem;
    }

    .site-footer__groups {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;

        width: 100%;
    }

    .site-footer__group,
    .site-footer__group:last-child {
        border: 0;
    }

    .site-footer__heading {
        min-height: auto;
        margin-bottom: 1.75rem;
        padding: 0;

        cursor: default;
        pointer-events: none;
    }

    .site-footer__chevron {
        display: none;
    }

    .site-footer__nav {
        padding: 0;
    }

    .site-footer__list {
        gap: 0.65rem;
    }

    .site-footer__bottom {
        padding: 6rem 0 0;
    }

}