
/* =================================================
   AKIPERTO — FOOTER
   Desktop, mobile e acessibilidade
   ================================================= */

/* FOOTER BASE */

footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.footer-container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-container p {
    font-family: 'akipertoFont2', sans-serif;
    font-size: 0.9rem;
    margin: 0;
}

/* =================================================
   LINHA SUPERIOR
   ================================================= */

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding: 20px;
}

/* NEWSLETTER */

.footer-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: start;
    gap: 5px;

    max-width: 100%;
    text-align: center;
    font-family: 'akipertoFont', sans-serif;
    text-transform: uppercase;
}

.footer-newsletter span {
    font-size: 14px;
    color: #fff;
}

.footer-newsletter a {
    display: inline-block;
    font-size: 13px;
    color: #FFC107;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.footer-newsletter a:hover {
    color: #fff;
}

/* LIGAÇÃO DE CONTACTO */

.footer-links {
    display: flex;
    align-items: center;
    justify-self: center;
}

.footer-links a {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a3d45d;
}

/* REDES SOCIAIS */

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.social-links img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.social-links a:hover img {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* =================================================
   LINHA INFERIOR — SELOS E DIREITOS DE AUTOR
   ================================================= */

.footer-bottom {
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding: 20px;
    text-align: center;
}

.footer-awards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-award {
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
}

.footer-award img {
    display: block;
    width: auto;
    height: 55px;
    object-fit: contain;
}

.footer-funding {
    width: 100%;
    max-width: 300px;
}

.footer-funding a {
    display: block;
}

.footer-funding img {
    display: block;
    width: 100%;
    height: auto;
    margin: 5px 0 10px;
    object-fit: contain;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* =================================================
   ACESSIBILIDADE
   ================================================= */

footer a:focus-visible {
    outline: 3px solid #a3d45d;
    outline-offset: 4px;
    border-radius: 3px;
}

/* =================================================
   MOBILE
   ================================================= */

@media (max-width: 768px) {

    footer {
        padding: 28px 16px 20px;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    /* Organização principal */

    .footer-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        align-items: center;
        gap: 24px;

        padding: 24px 0;
        text-align: center;
    }

    .footer-newsletter {
        justify-self: center;
        align-items: center;
        gap: 8px;
    }

    .footer-newsletter span {
        font-size: 14px;
        line-height: 1.5;
    }

    .footer-newsletter a {
        padding: 8px 16px;
    }

    .footer-links {
        justify-self: center;
    }

    .social-links {
        justify-self: center;
        justify-content: center;
        gap: 18px;
    }

    /* Selos */

    .footer-awards {
        justify-content: center;
        gap: 16px;
        width: 100%;
    }

    .footer-award img {
        height: 45px;
        max-width: 100%;
    }

    .footer-funding {
        max-width: 280px;
    }

    .footer-funding img {
        margin: 0;
    }

    /* Direitos de autor */

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;

        margin-top: 8px;
        padding: 20px 0 0;
        text-align: center;
    }

    .footer-bottom p {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }
}

/* =================================================
   MOVIMENTO REDUZIDO
   ================================================= */

@media (prefers-reduced-motion: reduce) {
    .footer-newsletter a,
    .footer-links a,
    .social-links img {
        transition: none;
    }

    .social-links a:hover img {
        transform: none;
    }
}
