/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    position: relative;
    color: var(--ink);
    background-color: var(--shore);
    padding: 30px var(--gutter) 40px;
}

/* Shore between the deep sea and the beach */
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -119px;
    height: 120px;
    background: url("../footer_shore.svg") 0 0 / 100% 100% no-repeat;
    pointer-events: none;
}

.site-footer__main {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 170px 1fr;
    grid-template-areas:
        "logo links"
        "logo actions";
    column-gap: 50px;
    align-items: start;
}

.site-footer__logo {
    grid-area: logo;
    width: 170px;
    height: 170px;
    object-fit: cover;
}

.site-footer__links {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
    margin-top: 40px;
}

.site-footer__links a {
    color: var(--ink);
    font-family: var(--font-other);
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: #E0662E;
}

.site-footer__actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.site-footer__instagram {
    --btn-edge: #9A3B12;
    color: var(--white);
    background-color: #E0662E;
    font-family: var(--font-other);
    font-size: 20px;
    font-weight: bold;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    text-decoration: none;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.site-footer__bottom {
    max-width: 1240px;
    margin: 30px auto 0;
    padding-top: 19px;
    border-top: 3px solid #E0C48C;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    color: #A07A5E;
    font-size: 20px;
}

.site-footer__bottom p {
    margin: 0;
}

/* Links in the bottom line take the brown of the surrounding text */
.site-footer__email,
.site-footer__legal a {
    color: inherit;
    text-decoration: none;
}

.site-footer__email:hover,
.site-footer__email:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
    text-decoration: underline;
}

.site-footer__legal a + a::before {
    content: "·";
    display: inline-block;
    margin: 0 10px;
}

@media (max-width: 1020px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "links"
            "actions";
        justify-items: center;
        text-align: center;
    }

    .site-footer__links {
        justify-content: center;
        gap: 10px 24px;
        margin-top: 16px;
    }

    .site-footer__actions {
        flex-direction: column;
        margin-top: 24px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-footer__links a {
        font-size: 18px;
    }

    .site-footer__bottom {
        font-size: 18px;
    }
}
