/* ==========================================================================
   FOOTER
   Mobile (< 640px): logo, social icons and menu in three rows.
   Tablet (>= 640px): logo + social icons left, menu right (vertically centered).
   Desktop (>= 890px): logo | social icons (centered) | menu, in one row.
   ========================================================================== */

.footer {
    contain: content;
    margin-top: 5rem;
    padding: 5rem 0;
    background: var(--color-blue);
    color: var(--color-white);
}

.footer a {
    color: var(--color-white);
}

.footer-line {
    width: 100%;
    height: 5px;
    margin: 0 0 4rem;
    border: 0;
    background: var(--color-white);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "logo"
        "social"
        "menu";
    column-gap: 1rem;
    align-items: center;
    max-width: 830px;
    margin: 0 1.5rem;
}

.footer-logo {
    grid-area: logo;
    max-width: 17.5rem;
    margin-bottom: 3.2rem;
}

.footer-logo img {
    display: block;
}

.footer-slinks {
    grid-area: social;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-slinks img {
    display: block;
    width: auto;
    height: 2.6rem;
}

.footer-nav {
    grid-area: menu;
    margin-top: 3.2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a:hover,
.footer-links a:focus {
    text-decoration: underline;
}

@media (min-width: 640px) {

    .footer-inner {
        grid-template-columns: 2fr 1fr;
        grid-template-areas:
            "logo menu"
            "social menu";
        margin: 0 3rem;
    }

    .footer-nav {
        margin-top: 0;
    }

    .footer-links {
        display: block;
    }

    .footer-links li:not(:last-child) {
        margin-bottom: 1rem;
    }
}

@media (min-width: 890px) {

    .footer-inner {
        grid-template-columns: 4fr 5fr 3fr;
        grid-template-areas: "logo social menu";
        column-gap: 3rem;
        margin: 0 auto;
    }

    .footer-logo {
        max-width: 21rem;
        margin-bottom: 0;
    }

    .footer-slinks {
        justify-content: center;
    }

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

    .footer-links li:not(:last-child) {
        margin-bottom: 0;
    }

    .footer-links a {
        font-weight: 700;
    }
}
