/**
 * DIFFERENTIALS.CSS
 * Estilos para a seção de diferenciais conforme Figma Frame 34/35
 * Depende de base.css para tokens
 */

/* ===== DIFFERENTIALS - Frame 34 ===== */
.v2-differentials {
    /* Frame 34 - Layout principal */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 61px;
    width: 100%;
    max-width: 1440px;
    height: 379px;
    margin: 0 auto;
}

/* ===== HEADER - Frame 35 ===== */
.v2-differentials__header {
    /* Frame 35 - Container do título */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 88px;
    gap: 10px;
    width: 100%;
    height: 80px;
}

.v2-differentials__title {
    /* Título conforme Figma */
    width: 1264px;
    height: 80px;
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
    color: #223B5A;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== GRID - Frame 25 ===== */
.v2-differentials__grid {
    /* Frame 25 - Grid de cards */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 0 88px;
    gap: 16px;
    width: 100%;
    height: 238px;
}

/* ===== CARDS - Frame 32/31/29/30 ===== */
.v2-diff-card {
    /* Cards conforme Figma */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 10px;
    width: 304px;
    height: 238px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #F1DFC7;
    border-radius: 24px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v2-diff-card--strong {
    background: rgba(255, 255, 255, 0.4);
    border-color: #E8D5C0;
}

/* ===== ÍCONES ===== */
.v2-diff-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.v2-diff-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card 4 (portaria) tem ícone maior */
.v2-diff-card:nth-child(4) .v2-diff-card__icon {
    width: 88px;
    height: 88px;
}

/* ===== TÍTULOS ===== */
.v2-diff-card__title {
    /* Frame 27 - Container do texto */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 256px;
    height: 92px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;
}

.v2-diff-card__title {
    /* Texto conforme Figma */
    width: 236px;
    height: 72px;
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #223B5A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-diff-card__title--strong {
    font-weight: 700;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1440px) {
    .v2-differentials {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        height: auto;
        min-height: 300px;
    }

    .v2-differentials__header {
        padding: 0 20px;
    }

    .v2-differentials__grid {
        padding: 0 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .v2-diff-card {
        width: calc(50% - 8px);
        max-width: 304px;
        min-width: 280px;
    }
}

@media (max-width: 1024px) {
    .v2-differentials {
        gap: 40px;
        padding: 0 16px;
    }

    .v2-differentials__header {
        padding: 0 16px;
    }

    .v2-differentials__title {
        font-size: 28px;
        line-height: 36px;
        width: 100%;
        height: auto;
    }

    .v2-differentials__grid {
        padding: 0 16px;
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 20px;
    }

    .v2-diff-card {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .v2-differentials {
        gap: 32px;
        padding: 0 12px;
    }

    .v2-differentials__header {
        padding: 0 12px;
    }

    .v2-differentials__title {
        font-size: 24px;
        line-height: 32px;
    }

    .v2-differentials__grid {
        padding: 0 12px;
        gap: 16px;
    }

    .v2-diff-card {
        padding: 20px 16px;
        min-height: 180px;
    }

    .v2-diff-card__icon {
        width: 64px;
        height: 64px;
    }

    .v2-diff-card:nth-child(4) .v2-diff-card__icon {
        width: 72px;
        height: 72px;
    }

    .v2-diff-card__title {
        font-size: 14px;
        line-height: 20px;
        width: 100%;
        height: auto;
        padding: 8px;
    }
}
