/* 14-footer.css
 * Estilos para o rodapé
 * Criado por Agência Federal
 * https://agencia.federal.gov.br
 */

.af-footer {
    background: #07090c;
    color: var(--af-white);

    /* ❌ sem borda superior */
    border-top: 0;

    padding: 34px 0 0 0;
}

/* ✅ Rodapé sem underline (inclusive hover/focus/visited) */
.af-footer a,
.af-footer a:visited,
.af-footer a:hover,
.af-footer a:focus,
.af-footer a:active {
    text-decoration: none !important;
}

/* Colunas */
.af-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;

    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.af-footer-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--af-gold);
}

.af-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.af-footer-menu a {
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    line-height: 1.25;
    transition: color .2s ease;
}

.af-footer-menu a:hover {
    color: var(--af-gold);
}

/* =========================================================
   BLOCO INSTITUCIONAL (entre menus e rodapé)
   ========================================================= */
.af-footer-manifest {
    padding: 22px 0 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.af-footer-manifest-sep {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, .08);
    margin: 0 0 16px 0;
}

.af-footer-manifest-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--af-gold);
}

.af-footer-manifest-text {
    margin: 0;
    max-width: 92ch;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .78);
}

/* Barra inferior */
.af-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    /* ✅ mais espaço vertical em cima e embaixo */
    padding: 22px 0 22px 0;
}

.af-footer-logo .custom-logo {
    max-height: 48px;
    width: auto;
}

.af-footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* meta: endereço | redes */
.af-footer-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

/* endereço (2 linhas alinhadas à direita) */
.af-footer-address {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* ✅ alinha à direita */
    text-align: right;
    /* ✅ garante alinhamento */
    gap: 4px;

    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.2;
    max-width: 60vw;
}

.af-footer-address-line {
    white-space: nowrap;
}

/* separador | (desktop) */
.af-footer-sep {
    align-self: center;
    color: rgba(255, 255, 255, .28);
}

/* social wrapper */
.af-footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Chips RF/AC/CF */
.af-footer-chip {
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);

    color: var(--af-white);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;

    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.af-footer-chip:hover {
    border-color: rgba(212, 175, 55, .55);
    background: rgba(255, 255, 255, .06);
    color: var(--af-gold);
}

/* ícones */
.af-footer-social-a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);

    box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease;
}

.af-footer-social-a:hover {
    border-color: rgba(212, 175, 55, .55);
    background: rgba(255, 255, 255, .06);
}

/* garante branco->dourado no hover do mask */
.af-footer-social-a.af-social-a--icon::before {
    background-color: var(--af-white);
}

.af-footer-social-a.af-social-a--icon:hover::before {
    background-color: var(--af-gold);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .af-footer-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .af-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .af-footer-meta {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* ✅ no mobile: endereço alinhado à esquerda */
    .af-footer-address {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
    }

    .af-footer-address-line {
        white-space: normal;
        /* permite quebrar se precisar */
    }

    /* ✅ no mobile: some o separador */
    .af-footer-sep {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .af-footer-cols {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   INSTAGRAM BAR (faixa acima do footer)
   ========================================================= */

.af-footer-instabar {
    width: 100%;
    background: #efefef;
    padding: 10px 10px;
    text-align: center;
}

.af-footer-instabar-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #000;
    text-decoration: none;
}

.af-footer-instabar-link:hover {
    opacity: .85;
}

/* ícone instagram via mask */
.af-ig-icon {
    width: 42px;
    height: 42px;
    display: inline-block;
    background: #000;

    -webkit-mask: url("../img/ig.svg") no-repeat center/contain;
    mask: url("../img/ig.svg") no-repeat center/contain;
}

.af-ig-user {
    font-size: 28px;
}

/* remove underline da faixa instagram */
.af-footer-instabar a,
.af-footer-instabar a:visited,
.af-footer-instabar a:hover,
.af-footer-instabar a:focus,
.af-footer-instabar a:active {
    text-decoration: none !important;
}

/* =========================================================
   BACK TO TOP (AF)
   ========================================================= */

.af-backtop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(161, 161, 161, 0.388);
    backdrop-filter: blur(8px);

    cursor: pointer;
    z-index: 9999;

    /* estado escondido */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;

    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, border-color .22s ease, background .22s ease;
}

.af-backtop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.af-backtop:hover {
    border-color: rgba(212, 175, 55, .55);
    background: rgba(255, 255, 255, .06);
}

/* ícone seta (via mask) */
.af-backtop-ico {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: var(--af-white);

    -webkit-mask: url("../img/chevron-up.svg") no-repeat center/contain;
    mask: url("../img/chevron-up.svg") no-repeat center/contain;

    transition: background-color .22s ease, transform .22s ease;
}

.af-backtop:hover .af-backtop-ico {
    background: var(--af-gold);
    transform: translateY(-1px);
}

/* mobile: sobe um pouco pra não brigar com barras do iOS */
@media (max-width: 560px) {
    .af-backtop {
        right: 16px;
        bottom: 16px;
    }
}

/* =========================================================
   FAIXA FINAL (legal / copyright) — fundo #000
   ========================================================= */

.af-footer-legal {
    background: #000;
    color: rgba(255, 255, 255, .78);
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.af-footer-legal-inner {
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    flex-wrap: wrap;
}

.af-footer-legal-line {
    white-space: nowrap;
}

.af-footer-legal-sep {
    color: rgba(255, 255, 255, .35);
}

.af-wp-mark {
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
}

/* mobile: deixa quebrar bonito */
@media (max-width: 560px) {
    .af-footer-legal-line {
        white-space: normal;
    }
}

/* Link WordPress no rodapé legal */
.af-footer-wp-link {
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.af-footer-wp-link:hover {
    color: var(--af-gold);
}