/* ==========================================================================
   ESG — Governança e Responsabilidade (Section VIII)
   ========================================================================== */

.esg {
    padding: 96px 0;
    background-color: #EDF1F7;
    overflow: hidden;
}

.esg__inner {
    display: flex;
    align-items: center;
    gap: 104px;
}

/* ===== Coluna visual (esquerda) ===== */

.esg__visual {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esg__badge {
    max-width: 460px;
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Coluna de texto (direita) ===== */

.esg__content {
    flex: 0 0 592px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.esg__label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 18px;
    line-height: 170%;
    letter-spacing: -0.01em;
    color: #252B37;
}

.esg__line {
    display: inline-block;
    width: 71px;
    height: 0;
    border-top: 1px solid var(--color-primary);
    flex-shrink: 0;
}

.esg__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 32px;
    line-height: 38px;
    color: #252B37;
}

.esg__description {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.esg__description p {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 16px;
    line-height: 170%;
    letter-spacing: -0.01em;
    color: #414651;
}

/* CTA */
.esg__cta-wrapper {
    padding: 8px;
    align-self: flex-start;
    border-radius: 16px;
    border: 1px solid transparent;
    background:
        linear-gradient(#EDF1F7, #EDF1F7) padding-box,
        linear-gradient(302.1deg, rgba(21, 94, 239, 0.39) 24.57%, rgba(21, 94, 239, 0) 70.33%) border-box;
}

.esg__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 324px;
    height: 64px;
    gap: 12px;
    padding: 20px 32px;
    background: #1F3A5F;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    border-radius: 12px;
    transition: background var(--transition-fast);
}

.esg__cta:hover {
    background: #2a4f7a;
}

.esg__cta svg {
    width: 24px;
    height: 24px;
}

/* ===== Responsivo ===== */

@media (max-width: 1280px) {
    .esg__inner {
        gap: 64px;
    }

    .esg__content {
        flex: 0 1 592px;
        min-width: 0;
    }

}

@media (max-width: 1024px) {
    .esg {
        padding: 72px 0;
    }

    .esg__inner {
        gap: 48px;
    }

    .esg__title {
        font-size: 28px;
        line-height: 34px;
    }

    .esg__content {
        flex: 1;
    }

    .esg__badge {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .esg {
        padding: 56px 0;
    }

    .esg__inner {
        flex-direction: column;
        gap: 24px;
    }

    .esg__content {
        display: contents;
    }

    .esg__visual { order: 1; max-width: 340px; width: 85%; align-self: center; }
    .esg__label { order: 2; align-self: center; }
    .esg__title { order: 3; align-self: center; text-align: center; }
    .esg__description { order: 4; align-self: center; text-align: center; }
    .esg__cta-wrapper { order: 5; align-self: center; }

    .esg__title {
        font-size: 26px;
        line-height: 34px;
    }

    .esg__label {
        font-size: 16px;
    }

    .esg__badge {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .esg {
        padding: 48px 0;
    }

    .esg__title {
        font-size: 24px;
        line-height: 30px;
    }

    .esg__cta-wrapper {
        align-self: stretch;
    }

    .esg__cta {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    .esg__badge {
        max-width: 280px;
    }
}
