/* ============================================================
   NUPEA — Rodapé global claro
   ============================================================ */

.nupea-footer,
.nupea-footer * {
    box-sizing: border-box;
}

.nupea-footer {
    --footer-navy: #082e4f;
    --footer-blue: #0b5ea8;
    --footer-green: #139b55;
    --footer-orange: #f58a12;
    --footer-text: #526a7a;
    --footer-muted: #718493;
    --footer-border: #d9e5ec;
    --footer-surface: #f7fafc;

    padding: 0;
    border-top: 1px solid var(--footer-border);
    background: var(--footer-surface);
    color: var(--footer-navy);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nupea-footer a {
    text-decoration: none;
}

.nupea-footer__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin: 0;
    padding: 44px 0 38px;
    border-bottom: 1px solid var(--footer-border);
}

.nupea-footer__cta-copy {
    max-width: 720px;
}

.nupea-footer__eyebrow,
.nupea-footer__column-title {
    color: var(--footer-green);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.nupea-footer__eyebrow {
    display: block;
    margin-bottom: 10px;
}

.nupea-footer__cta h2 {
    margin: 0;
    color: var(--footer-navy);
    font-family: inherit;
    font-size: clamp(1.55rem, 2.7vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.nupea-footer__cta p {
    margin: 10px 0 0;
    color: var(--footer-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.nupea-footer__cta-button {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid var(--footer-orange);
    border-radius: 10px;
    background: var(--footer-orange);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(245, 138, 18, 0.16);
}

.nupea-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.55fr) minmax(125px, 0.7fr) minmax(135px, 0.75fr) minmax(190px, 0.9fr);
    gap: 46px;
    padding: 48px 0 44px;
}

.nupea-footer__identity,
.nupea-footer__column {
    min-width: 0;
}

.nupea-footer__logo {
    display: inline-flex;
    margin-bottom: 20px;
}

.nupea-footer__logo-img {
    display: block;
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
}

.nupea-footer__logo--text {
    flex-direction: column;
    color: var(--footer-navy);
}

.nupea-footer__logo--text strong {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
}

.nupea-footer__logo--text span {
    margin-top: 3px;
    color: var(--footer-blue);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nupea-footer__name {
    max-width: 360px;
    margin: 0 0 9px;
    color: var(--footer-navy);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.45;
}

.nupea-footer__description,
.nupea-footer__address {
    max-width: 350px;
    color: var(--footer-text);
    font-size: 0.78rem;
    line-height: 1.65;
}

.nupea-footer__description {
    margin: 0;
}

.nupea-footer__address {
    margin: 12px 0 0;
}

.nupea-footer__email {
    display: inline-flex;
    margin-top: 12px;
    color: var(--footer-blue);
    font-size: 0.78rem;
    font-weight: 750;
}

.nupea-footer__column-title {
    margin: 4px 0 17px;
    line-height: 1.3;
}

.nupea-footer__links,
.nupea-footer__social {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nupea-footer__links {
    display: grid;
    gap: 10px;
}

.nupea-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--footer-text);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
}

.nupea-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.nupea-footer__social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--footer-blue);
}

.nupea-footer__social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nupea-footer__social .nupea-footer__social-fill {
    fill: currentColor;
    stroke: none;
}

.nupea-footer__affiliation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 0;
    border-top: 1px solid var(--footer-border);
}

.nupea-footer__affiliation-copy {
    min-width: 0;
}

.nupea-footer__affiliation-copy span {
    display: block;
    margin-bottom: 5px;
    color: var(--footer-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nupea-footer__affiliation-copy p {
    margin: 0;
    color: var(--footer-text);
    font-size: 0.78rem;
    line-height: 1.55;
}

.nupea-footer__affiliation-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: min(270px, 32vw);
    padding: 10px 14px;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    background: #ffffff;
}

.nupea-footer__affiliation-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.nupea-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0 24px;
    border-top: 1px solid var(--footer-border);
}

.nupea-footer__bottom p,
.nupea-footer__bottom a {
    margin: 0;
    color: var(--footer-muted);
    font-size: 0.69rem;
    line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
    .nupea-footer__cta-button,
    .nupea-footer__links a,
    .nupea-footer__email,
    .nupea-footer__social a {
        transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    }

    .nupea-footer__cta-button:hover {
        border-color: #e97800;
        background: #e97800;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(245, 138, 18, 0.22);
    }

    .nupea-footer__links a:hover,
    .nupea-footer__email:hover {
        color: var(--footer-blue);
    }

    .nupea-footer__social a:hover {
        border-color: var(--footer-blue);
        background: var(--footer-blue);
        color: #ffffff;
        transform: translateY(-2px);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .nupea-footer__grid {
        grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(120px, 0.75fr));
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .nupea-footer__cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding: 36px 0 32px;
    }

    .nupea-footer__cta-button {
        width: 100%;
    }

    .nupea-footer__affiliation {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .nupea-footer__affiliation-logo {
        width: min(300px, 100%);
    }

    .nupea-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 24px;
        padding: 38px 0 36px;
    }

    .nupea-footer__identity {
        grid-column: 1 / -1;
    }

    .nupea-footer__institutional {
        grid-column: 1 / -1;
    }

    .nupea-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 420px) {
    .nupea-footer__grid {
        grid-template-columns: 1fr;
    }

    .nupea-footer__identity,
    .nupea-footer__institutional {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nupea-footer *,
    .nupea-footer *::before,
    .nupea-footer *::after {
        transition: none !important;
    }
}

/* ============================================================
   Compatibilidade com o CSS antigo do tema/WPCode
   Estas regras ficam no final para substituir definitivamente
   o antigo rodapé azul-escuro.
   ============================================================ */

body #nupea-footer.nupea-footer {
    border-top-color: #d9e5ec !important;
    background: #f7fafc !important;
    background-color: #f7fafc !important;
    background-image: none !important;
    color: #082e4f !important;
}

body #nupea-footer.nupea-footer::before,
body #nupea-footer.nupea-footer::after,
body #nupea-footer .nupea-footer__bg {
    display: none !important;
    background: none !important;
    background-image: none !important;
}

body #nupea-footer .nupea-footer__cta {
    border-color: #d9e5ec !important;
    background: transparent !important;
}

body #nupea-footer .nupea-footer__eyebrow,
body #nupea-footer .nupea-footer__column-title {
    color: #139b55 !important;
    font-family: "Inter", system-ui, sans-serif !important;
}

body #nupea-footer .nupea-footer__cta h2,
body #nupea-footer .nupea-footer__name,
body #nupea-footer .nupea-footer__logo--text,
body #nupea-footer .nupea-footer__logo--text strong {
    color: #082e4f !important;
    font-family: "Inter", system-ui, sans-serif !important;
}

body #nupea-footer .nupea-footer__cta p,
body #nupea-footer .nupea-footer__description,
body #nupea-footer .nupea-footer__address,
body #nupea-footer .nupea-footer__links a {
    color: #526a7a !important;
    font-family: "Inter", system-ui, sans-serif !important;
}

body #nupea-footer .nupea-footer__email {
    color: #0b5ea8 !important;
}

body #nupea-footer .nupea-footer__logo,
body #nupea-footer .nupea-footer__logo--image {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body #nupea-footer .nupea-footer__logo-img {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body #nupea-footer .nupea-footer__cta-button {
    border-color: #f58a12 !important;
    background: #f58a12 !important;
    color: #ffffff !important;
}

body #nupea-footer .nupea-footer__social a {
    border-color: #d9e5ec !important;
    background: #ffffff !important;
    color: #0b5ea8 !important;
}

body #nupea-footer .nupea-footer__bottom {
    border-color: #d9e5ec !important;
    background: transparent !important;
}

body #nupea-footer .nupea-footer__bottom p,
body #nupea-footer .nupea-footer__bottom a {
    color: #718493 !important;
    font-family: "Inter", system-ui, sans-serif !important;
}

@media (hover: hover) and (pointer: fine) {
    body #nupea-footer .nupea-footer__links a:hover,
    body #nupea-footer .nupea-footer__email:hover {
        color: #0b5ea8 !important;
    }

    body #nupea-footer .nupea-footer__cta-button:hover {
        border-color: #e97800 !important;
        background: #e97800 !important;
        color: #ffffff !important;
    }

    body #nupea-footer .nupea-footer__social a:hover {
        border-color: #0b5ea8 !important;
        background: #0b5ea8 !important;
        color: #ffffff !important;
    }
}
