/* ==========================================================================
   ESG Compromisso — Seção de compromisso ESG
   ========================================================================== */

.esg-compromisso {
    padding: 88px 0;
    background-color: #FFFFFF;
    overflow: hidden;
    clip-path: polygon(
        120px 0,
        calc(100% - 120px) 0,
        100% 97px,
        100% 100%,
        0 100%,
        0 97px
    );
}

.esg-compromisso__inner {
    display: flex;
    align-items: flex-start;
    gap: 56px;
}

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

.esg-compromisso__visual {
    flex: 0 0 453px;
    position: relative;
    min-height: 467px;
}

.esg-compromisso__frame {
    position: absolute;
    top: -34px;
    left: 0;
    width: 411px;
    height: 513px;
    z-index: 0;
    pointer-events: none;
}

.esg-compromisso__frame svg {
    width: 100%;
    height: 100%;
    display: block;
}

.esg-compromisso__image-wrapper {
    position: relative;
    width: 411px;
    margin-left: 42px;
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(43px 0, 100% 0, 100% 100%, 0 100%, 0 41px);
}

.esg-compromisso__image-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(19, 23, 26, 0.3), transparent 40%);
    z-index: 1;
}

.esg-compromisso__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Card flutuante */
.esg-compromisso__card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 219px;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%),
        linear-gradient(137deg, rgba(27, 28, 54, 0.25) 23.98%, rgba(112, 113, 122, 0.25) 65.73%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 12px 17px 43.795px 0 rgba(221, 228, 234, 0.16);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.esg-compromisso__card-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--color-primary);
    padding: 4px 8px;
    border-radius: 24px;
}

.esg-compromisso__card-badge svg {
    flex-shrink: 0;
}

.esg-compromisso__card-badge span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    line-height: normal;
    color: #FFFFFF;
    white-space: nowrap;
}

.esg-compromisso__card-text {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.64;
    color: #FFFFFF;
    text-align: center;
}

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

.esg-compromisso__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 22px;
}

.esg-compromisso__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-compromisso__line {
    display: inline-block;
    width: 71px;
    height: 0;
    border-top: 1px solid var(--color-primary);
    flex-shrink: 0;
}

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

.esg-compromisso__description {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.esg-compromisso__highlight {
    font-weight: 500 !important;
    color: #252B37 !important;
}

/* Bullets com ícones */
.esg-compromisso__bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 16px;
    margin-top: 8px;
}

.esg-compromisso__bullet {
    display: flex;
    align-items: center;
    gap: 8px;
}

.esg-compromisso__bullet svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.esg-compromisso__bullet span {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #252B37;
}

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

@media (max-width: 1280px) {
    .esg-compromisso__visual {
        flex: 0 0 397px;
    }

    .esg-compromisso__image-wrapper {
        width: 360px;
        margin-left: 37px;
        clip-path: polygon(38px 0, 100% 0, 100% 100%, 0 100%, 0 36px);
    }

    .esg-compromisso__frame {
        top: -30px;
        left: 0;
        width: 360px;
        height: 449px;
    }
}

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

    .esg-compromisso__inner {
        gap: 40px;
    }

    .esg-compromisso__visual {
        flex: 0 0 331px;
    }

    .esg-compromisso__image-wrapper {
        width: 300px;
        margin-left: 31px;
        clip-path: polygon(31px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
    }

    .esg-compromisso__frame {
        top: -25px;
        left: 0;
        width: 300px;
        height: 374px;
    }

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

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

    .esg-compromisso__inner {
        flex-direction: column;
        gap: 32px;
    }

    .esg-compromisso__content {
        order: 1;
    }

    .esg-compromisso__visual {
        order: 2;
        flex: none;
        width: 100%;
        min-height: auto;
        display: flex;
        justify-content: center;
        padding-top: 32px;
    }

    .esg-compromisso__image-wrapper {
        width: 100%;
        max-width: 400px;
        margin-left: 0;
        clip-path: none;
        border-radius: 8px;
    }

    .esg-compromisso__frame {
        display: none;
    }

    .esg-compromisso__card {
        right: -10px;
        bottom: -10px;
    }

    .esg-compromisso__content {
        padding-top: 32px;
    }

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

    .esg-compromisso__bullets {
        grid-template-columns: 1fr;
    }
}

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

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

    .esg-compromisso__card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 16px;
    }
}
