/* ─── Cards section ───────────────────────────────────────── */

.section-why-xp {
    padding: var(--space-lg) 0;
}

/* ── Header ───────────────────────────────────────────────── */
.why-xp__header {
    margin-bottom: var(--space-lg);
}

.why-xp__header:last-child {
    margin-bottom: 0;
}

.why-xp__header--centered {
    text-align: center;
}

.why-xp__header--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: var(--space-lg);
}

.why-xp__heading-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.why-xp__header--split .why-xp__heading {
    max-width: 460px;
}

.why-xp__subtitle-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.why-xp__subtitle-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.why-xp__intro {
    color: var(--color-body);
}

/* ── Grid ─────────────────────────────────────────────────── */
.why-xp__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-sm);
}

/* ── Card ─────────────────────────────────────────────────── */
.why-xp__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-sm);
    background-color: #111111;
    border-radius: 12px;
    padding: var(--space-md);
}

.section-bg--deep .why-xp__card {
    background-color: #1D1D1D;
}

/* ── Icon ─────────────────────────────────────────────────── */
.why-xp__icon {
    width: 60px;
    height: 60px;
}

.why-xp__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.why-xp__card--icon-right .why-xp__icon {
    align-self: flex-end;
}

.why-xp__card--icon-large .why-xp__icon {
    width: 100px;
    height: 100px;
}

/* ── Content ──────────────────────────────────────────────── */
.why-xp__title {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-subtle);
    margin-bottom: var(--space-xs);
}

.why-xp__description {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--color-body);
}

/* ── Responsive ───────────────────────────────────────────── */
@media ( max-width: 900px ) {
    .why-xp__header--split {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

@media ( max-width: 768px ) {
    .why-xp__header {
        margin-bottom: var(--space-md);
    }

    .why-xp__grid {
        grid-template-columns: 1fr;
    }

    .why-xp__card {
        padding: var(--space-sm);
        min-height: 0;
    }

    .why-xp__card--icon-left {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--space-sm);
    }

    .why-xp__card--icon-left .why-xp__icon {
        order: 1;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
    }

    .why-xp__card--icon-left .why-xp__content {
        order: 0;
    }
}
