.footer {
    margin-top: 0;

    color: #3f3f46;
    background: #f5b1c1;
}

.footer__main {
    padding: 3rem 0 2.2rem;

    background: #f5b1c1;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr 1.15fr;
    gap: 0;
    align-items: stretch;
}

.footer__column {
    min-width: 0;
    padding: 0 1.6rem;

    text-align: center;

    border-right: 2px solid rgba(255, 255, 255, 0.82);
}

.footer__column--last {
    border-right: 0;
}

.footer__heading {
    margin: 0;

    color: #111827;

    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
}

.footer__heading::after {
    content: "";

    display: block;

    width: min(100%, 225px);
    height: 2px;
    margin: 1rem auto 1.1rem;

    background: rgba(255, 255, 255, 0.95);
}

.footer__nav,
.footer__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.78rem;
}

.footer__nav a,
.footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;

    color: #4b5563;
    text-decoration: none;

    font-size: 1rem;
    line-height: 1.35;

    transition:
        color var(--transition-base, 180ms ease),
        transform var(--transition-base, 180ms ease);
}

.footer__nav a:hover,
.footer__link:hover {
    color: #111827;

    transform: translateY(-1px);
}

.footer__icon {
    display: inline-flex;
    flex: 0 0 1.35rem;
    align-items: center;
    justify-content: center;

    width: 1.35rem;
    min-width: 1.35rem;

    color: #202020;

    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.footer__text {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.62rem;

    max-width: 275px;
    margin: 0 auto;

    color: #4b5563;

    font-size: 0.98rem;
    line-height: 1.55;
}

.footer__text .footer__icon {
    margin-top: 0.25rem;
}

/* Logo abaixo das colunas */
.footer__logo-area {
    display: flex;
    justify-content: center;

    padding-top: 2.1rem;
    margin-top: 2.3rem;

    border-top: 2px solid rgba(255, 255, 255, 0.58);
}

.footer__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 112px;
    height: 112px;

    border-radius: var(--header-logo-radius, 1.5rem);
    background: rgba(255, 255, 245, 0.78);
    box-shadow:
        0 12px 30px rgba(24, 24, 27, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);

    text-decoration: none;

    transition:
        transform var(--transition-base, 180ms ease),
        box-shadow var(--transition-base, 180ms ease);
}

.footer__logo-link:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 34px rgba(24, 24, 27, 0.11),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.footer__logo {
    display: block;

    width: 88px;
    height: 88px;

    object-fit: contain;
}

.footer__bottom {
    padding: 1.05rem 0;

    background: #f8d2cf;
    border-top: 0;

    text-align: center;
}

.footer__bottom p {
    margin: 0;

    color: #111827;

    font-size: 1rem;
    font-weight: 500;
}

@media (min-width: 641px) and (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 0;
    }

    .footer__column {
        position: relative;
    }

    .footer__column:nth-child(1) {
        border-right: 2px solid rgba(255, 255, 255, 0.82);
    }

    .footer__column:nth-child(2) {
        border-right: 0;
    }

    .footer__column:nth-child(3),
    .footer__column:nth-child(4) {
        padding-top: 2.4rem;
        margin-top: 2.4rem;

        border-top: 0;
    }

    .footer__column:nth-child(3) {
        border-right: 0;
    }

    .footer__column:nth-child(4) {
        border-right: 0;
    }

    .footer__column:nth-child(3)::before,
    .footer__column:nth-child(4)::before {
        content: "";

        position: absolute;
        top: 0;
        left: 1.6rem;
        right: 1.6rem;

        height: 2px;

        background: rgba(255, 255, 255, 0.82);
    }

    .footer__column:nth-child(3)::after {
        content: "";

        position: absolute;
        top: 2.4rem;
        right: 0;
        bottom: 0;

        width: 2px;

        background: rgba(255, 255, 255, 0.82);
    }

    .footer__logo-area {
        margin-top: 2.2rem;
        padding-top: 2rem;
    }
}

@media (max-width: 640px) {
    .footer__main {
        padding: 2.5rem 0 1.8rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer__column {
        padding: 0 0 1.8rem;
        margin-bottom: 1.8rem;

        border-right: 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.82);
    }

    .footer__column--last {
        margin-bottom: 0;
        padding-bottom: 0;

        border-bottom: 0;
    }

    .footer__heading {
        font-size: 1.2rem;
    }

    .footer__nav a,
    .footer__link,
    .footer__text {
        font-size: 0.98rem;
    }

    .footer__logo-area {
        padding-top: 1.6rem;
        margin-top: 1.8rem;
    }

    .footer__logo-link {
        width: 96px;
        height: 96px;
    }

    .footer__logo {
        width: 76px;
        height: 76px;
    }

    .footer__column:nth-child(3),
    .footer__column:nth-child(4) {
        padding-top: 0;
        margin-top: 0;
        border-top: none;
    }

    .footer__column:nth-child(3)::before,
    .footer__column:nth-child(4)::before {
        display: none;
    }
}