.site-footer {
    border-top: 1px solid var(--essayfi-stone);
    background: #F2EEE8;
    color: var(--essayfi-ink);
}

.site-footer__main {
    padding: clamp(44px, 7vw, 76px) 0;
}

.site-footer__grid,
.site-footer__bottom-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(150px, 0.7fr) minmax(230px, 0.95fr);
    gap: clamp(36px, 7vw, 100px);
}

.site-footer__brand .site-brand {
    width: max-content;
    gap: 8px;
}

.site-footer__brand .site-brand img {
    width: 50px;
    height: 50px;
}

.site-footer__brand .brand-name {
    font-size: 1.75rem;
}

.site-footer__description {
    max-width: 460px;
    margin: 20px 0 18px;
    color: #5F5B57;
    font-size: 0.93rem;
    line-height: 1.8;
}

.site-footer__open-access {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #514C47;
    font-size: 0.8rem;
    font-weight: 700;
}

.site-footer__open-access-dot {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
}

.site-footer__heading {
    margin: 4px 0 18px;
    color: var(--essayfi-ink);
    font-family: "Trebuchet MS", "Cabin Condensed", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.site-footer__links a {
    color: #5F5B57;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.site-footer__links a:hover,
.site-footer__links a[aria-current="location"] {
    color: var(--essayfi-teal);
}

.site-footer__links a:hover {
    transform: translateX(3px);
}

.site-footer__links a[aria-current="location"] {
    font-weight: 700;
}

.site-footer__contact > p {
    max-width: 300px;
    margin: 0 0 16px;
    color: #5F5B57;
    font-size: 0.9rem;
    line-height: 1.75;
}

.site-footer__email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--essayfi-ink);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}

.site-footer__email:hover {
    color: var(--essayfi-teal);
}

.site-footer__email-icon {
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #D8D0C8;
    border-radius: 50%;
    color: var(--essayfi-teal);
    font-size: 0.76rem;
    font-weight: 800;
}

.site-footer__contact-action {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    cursor: pointer;
}

.site-footer__bottom {
    border-top: 1px solid #DCD5CD;
}

.site-footer__bottom-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #6A645E;
    font-size: 0.78rem;
}

.site-footer__bottom-inner > p {
    margin: 0;
}

.site-footer__bottom-actions {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-footer__back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0 8px 10px;
    border: 0;
    background: transparent;
    color: var(--essayfi-ink);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.site-footer__back-to-top:hover {
    color: var(--essayfi-teal);
}

.site-footer__back-to-top svg {
    width: 19px;
    height: 19px;
}

.site-footer__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 760px) {
    .site-footer__grid,
    .site-footer__bottom-inner {
        width: calc(100% - 36px);
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 28px;
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }

    .site-footer__bottom-inner {
        min-height: 0;
        padding: 17px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .site-footer__bottom-actions {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }
}

@media (max-width: 430px) {
    .site-footer__grid,
    .site-footer__bottom-inner {
        width: calc(100% - 28px);
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer__about {
        grid-column: auto;
    }

    .site-footer__bottom-actions > span {
        max-width: 165px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__links a {
        transition: none;
    }
}
