:root {
    --apof-layout-bg: #eee7dd;
    --apof-layout-card: rgba(255, 255, 255, 0.28);
    --apof-layout-heading: #c4420f;
    --apof-layout-text: #504f4f;
    --apof-layout-muted: #6c655f;
    --apof-layout-radius: 1.875rem;
    --apof-layout-gap: 1.375rem;
    --apof-layout-label-size: clamp(11px, 0.9vw, 12px);
}

.apof-layout-footer {
    padding: 2em 1em;
    background: var(--apof-layout-bg);
}

.apof-layout-footer__inner {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--apof-layout-gap);
}

.apof-layout-footer__card {
    min-width: 0;
    min-height: auto;
    padding: 2em 1.8em;
    border-radius: var(--apof-layout-radius);
    background: var(--apof-layout-card);
}

.apof-layout-footer__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.apof-layout-footer__logo-link {
    display: inline-block;
}

.apof-layout-footer__logo {
    display: block;
    width: min(14.375rem, 100%);
    height: auto;
}

.apof-layout-footer__signature {
    margin-top: 1.625rem;
    color: var(--apof-layout-heading);
    font-family: "Jost", cursive;
    font-size: clamp(1.15rem, 1.5vw, 1.6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
}

.apof-layout-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.375rem;
}

.apof-layout-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--apof-layout-heading);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.apof-layout-footer__social svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.apof-layout-footer__social:hover,
.apof-layout-footer__social:focus-visible {
    opacity: 0.8;
    transform: translateY(-2px);
    outline: none;
}

.apof-layout-footer__title {
    margin: 0 0 1.5rem;
    color: var(--apof-layout-heading);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(1rem, 1.15vw, 1.25rem);
    font-weight: 400;
    line-height: 1.28;
}

.apof-layout-footer__menu,
.apof-layout-footer__contact {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.apof-layout-footer__menu a,
.apof-layout-footer__contact a,
.apof-layout-footer__contact span {
    color: var(--apof-layout-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.35;
    text-decoration: none;
}

.apof-layout-footer__menu a:hover,
.apof-layout-footer__menu a:focus-visible,
.apof-layout-footer__contact a:hover,
.apof-layout-footer__contact a:focus-visible {
    color: var(--apof-layout-heading);
    outline: none;
}

.apof-layout-footer__contact li {
    color: var(--apof-layout-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.35;
}

@media (max-width: 1180px) {
    .apof-layout-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .apof-layout-footer {
        padding: 2em 1em;
    }

    .apof-layout-footer__inner {
        grid-template-columns: 1fr;
    }

    .apof-layout-footer__card {
        min-height: auto;
        padding: 1.5em 1.25em;
        border-radius: 1.375rem;
    }

    .apof-layout-footer__brand {
        gap: 1.375rem;
    }

    .apof-layout-footer__socials {
        margin-top: 0.625rem;
    }

    .apof-layout-footer__title {
        font-size: 1rem;
    }
}
