/**
 * WORKS homepage Why Choose WORKS section.
 *
 * Four light benefit cards for contractors.
 *
 * @package WORKS
 */

.works-why-works {
    background: var(--works-white);
}

.works-why-works-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.works-why-works-heading h2 {
    margin: 0 0 0.45rem;
    color: var(--works-navy);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.works-why-works-heading > p:last-child {
    margin: 0;
    color: var(--works-muted);
}

.works-why-works-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.works-why-works-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--works-ice);
}

.works-why-works-card:nth-child(odd) {
    background: var(--works-pale-blue);
}

/* Approved WORKS benefit icons */
.works-why-works-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.works-why-works-icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.works-why-works-icon span {
    width: 20px;
    height: 20px;
    border: 2px solid var(--works-orange);
    border-radius: 4px;
}

.works-why-works-card-content {
    min-width: 0;
}

.works-why-works-card h3 {
    margin: 0 0 0.3rem;
    color: var(--works-navy);
    font-size: 0.94rem;
    line-height: 1.25;
}

.works-why-works-card p {
    margin: 0;
    color: var(--works-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (max-width: 950px) {
    .works-why-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .works-why-works-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .works-why-works-card {
        padding: 0.9rem;
    }
}
