/*--------------------------------------------------------------
# Rodapé (#footer)
--------------------------------------------------------------*/
.rodape {
    position: relative;
    overflow: hidden;
    padding: 72px 0 28px;
    background-color: #2B0645;
    color: rgba(248, 246, 233, 0.72);
    font-size: 14px;
}

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

/* Linha de cima: frase + navegação + contato */
.rodape .rodape__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.rodape .rodape__tagline {
    max-width: 20ch;
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600;
    line-height: 1.3;
    color: #F8F6E9;
}

.rodape .rodape__tagline em {
    font-style: normal;
    color: #BBDF32;
}

.rodape .rodape__label {
    margin: 0 0 14px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 246, 233, 0.45);
}

.rodape .rodape__links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rodape .rodape__links a,
.rodape .rodape__legal-links a {
    position: relative;
    color: rgba(248, 246, 233, 0.82);
    transition: color 0.2s ease;
}

.rodape .rodape__links a::after,
.rodape .rodape__legal-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: #BBDF32;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.rodape .rodape__links a:hover,
.rodape .rodape__links a:focus-visible,
.rodape .rodape__legal-links a:hover,
.rodape .rodape__legal-links a:focus-visible {
    color: #fff;
}

.rodape .rodape__links a:hover::after,
.rodape .rodape__links a:focus-visible::after,
.rodape .rodape__legal-links a:hover::after,
.rodape .rodape__legal-links a:focus-visible::after {
    transform: scaleX(1);
}

.rodape a:focus-visible {
    outline: 2px solid #BBDF32;
    outline-offset: 3px;
    border-radius: 4px;
}

.rodape .rodape__social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.rodape .rodape__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(248, 246, 233, 0.22);
    border-radius: 50%;
    color: #F8F6E9;
    font-size: 15px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rodape .rodape__social a:hover,
.rodape .rodape__social a:focus-visible {
    border-color: #BBDF32;
    background-color: #BBDF32;
    color: #2B0645;
}

/* Logo grande (logo nova da Coostura, sem a borda de adesivo) */
.rodape .rodape__marca {
    --logo-letra: #875DE3;
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 64px auto 36px;
    transition: transform 0.35s cubic-bezier(.2, .8, .3, 1);
}

.rodape .rodape__marca svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.rodape .rodape__marca .logo__letra {
    fill: var(--logo-letra);
    transition: fill 0.35s ease;
}

/* Ao passar o mouse, as letras ficam verde-limão e a logo dá uma inclinadinha */
.rodape .rodape__marca:hover,
.rodape .rodape__marca:focus-visible {
    --logo-letra: #BBDF32;
    transform: rotate(-1.5deg) translateY(-6px);
}

.rodape .rodape__marca:focus-visible {
    outline-offset: 8px;
}

/* Linha de baixo */
.rodape .rodape__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(248, 246, 233, 0.14);
    font-size: 13px;
}

.rodape .rodape__legal,
.rodape .rodape__sign {
    margin: 0;
}

.rodape .rodape__legal > span {
    white-space: nowrap;
}

.rodape .rodape__dot {
    margin: 0 6px;
    color: rgba(248, 246, 233, 0.35);
}

.rodape .rodape__legal-links {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rodape .rodape__sign {
    color: rgba(248, 246, 233, 0.5);
    font-style: italic;
}

/* Tablet */
@media (max-width: 991px) {
    .rodape {
        padding-top: 60px;
    }

    .rodape .rodape__top {
        grid-template-columns: 1fr 1fr;
    }

    .rodape .rodape__tagline {
        grid-column: 1 / -1;
        max-width: 26ch;
    }

    .rodape .rodape__marca {
        margin-top: 52px;
    }
}

/* Celular */
@media (max-width: 575px) {
    .rodape {
        padding: 52px 0 24px;
    }

    .rodape .rodape__top {
        gap: 32px 20px;
    }

    .rodape .rodape__marca {
        margin: 44px 0 22px;
    }

    .rodape .rodape__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rodape .rodape__legal-links {
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rodape * {
        transition: none !important;
    }
}

@media (max-width: 575px) {
    .rodape .rodape__legal {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 14px;
    }

    .rodape .rodape__legal .rodape__dot {
        display: none;
    }
}
