.site-footer {
    color: #fff;
    background: #262836;

    a {
        color: inherit;
        text-decoration: none;
    }
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 1.5rem;
}

.site-footer__top {
    display: grid;
    gap: 2.5rem;
}

.site-footer__brand,
.site-footer__newsletter {
    display: grid;
    gap: 1.5rem;
}

.site-footer__social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;

    a {
        width: 3rem;
        height: 3rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: color 180ms ease, background 180ms ease;

        &:hover {
            color: rgba(255, 255, 255, 0.72);
            background: rgba(255, 255, 255, 0.08);
        }
    }

    svg {
        width: 1.8rem;
        height: 1.8rem;
        fill: currentColor;
    }
}

.site-footer__logo {
    width: min(15.625rem, 100%);
    height: auto;
    margin: 0 auto;
}

.site-footer__newsletter {
    h2 {
        margin: 0;
        color: #fff;
        font-size: 1.125rem;
        font-weight: 600;
    }

    form {
        display: grid;
        gap: 0.75rem;
    }

    form > p {
        margin: 0;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

.site-footer__newsletter-fields {
    display: grid;
    gap: 0.75rem;

    input,
    button {
        min-height: 2.875rem;
        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 0.75rem;
        font: inherit;
    }

    input {
        min-width: 0;
        padding: 0.75rem 1rem;
        color: #fff;
        background: transparent;

        &::placeholder { color: rgba(255, 255, 255, 0.7); }
    }

    button {
        padding: 0.75rem 1.25rem;
        color: #fff;
        font-weight: 600;
        background: transparent;
        cursor: pointer;
        transition: background 180ms ease;

        &:hover { background: rgba(255, 255, 255, 0.12); }
    }
}

.site-footer__feedback { color: #fff !important; }

.site-footer__address,
.site-footer__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    line-height: 1.75;
}

.site-footer__address--desktop { display: none; }

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin: 2.5rem 0 0;
    font-size: 0.875rem;

    a:hover { color: rgba(255, 255, 255, 0.72); }
}

.site-footer__copy {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    text-align: center;

    a:hover { color: rgba(255, 255, 255, 0.72); }
}

@media (min-width: 768px) {
    .site-footer__inner {
        padding: 3rem 2.5rem 1.5rem;
    }

    .site-footer__top {
        grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.8fr);
        gap: 3rem;
    }

    .site-footer__social { justify-content: flex-start; }
    .site-footer__logo { margin: 0; }
    .site-footer__address--mobile { display: none; }
    .site-footer__address--desktop { display: block; margin-top: 2.5rem; }

    .site-footer__newsletter-fields {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}
