/* Block: Who This Is For. All selectors scoped under .who-this-is-for (BEM). */

.who-this-is-for {
    background: #fff;
    padding: 80px 0;
}

/* ---- Head (eyebrow / title / subtitle), centered -------------------------- */
.who-this-is-for__head {
    max-width: 1100px;
    margin: 0 auto 50px;
    text-align: center;
}

.who-this-is-for__eyebrow {
    display: block;
    margin: 0 0 20px;
    color: var(--lightblue);
    font-family: 'Chalet Custom', sans-serif;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: 0.36px;
    text-transform: uppercase;
}

.who-this-is-for__title {
    margin: 0 0 20px;
    padding: 0;
    font-family: 'Zurich', sans-serif;
    font-weight: bold;
    font-size: 50px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--main-color);
}

.who-this-is-for__subtitle {
    margin: 0;
    font-family: 'Chalet Custom', sans-serif;
    font-size: 24px;
    line-height: 1.4;
    color: var(--main-color);
}

/* ---- Body: tall side photo + audience cards grid -------------------------- */
.who-this-is-for__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px;
    align-items: stretch;
}

.who-this-is-for__photo {
    overflow: hidden;
    min-height: 320px;
    background: #F5F7F9;
    border-radius: 24px;
}

.who-this-is-for__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.who-this-is-for__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-content: start;
}

.who-this-is-for__card {
    display: flex;
    flex-direction: column;
    padding: 48px;
    background: #F0F3F6;
    border: 1px solid #D2DFE8;
    border-radius: 24px;
}

/* Odd last card fills the full row width (e.g. the 3rd of 3), matching the mockup. */
.who-this-is-for__card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.who-this-is-for__icon {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    color: var(--main-color);
}

.who-this-is-for__card-title {
    margin: 0 0 8px;
    padding: 0;
    font-family: 'Chalet Custom', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
    color: var(--main-color);
}

.who-this-is-for__card-text {
    margin: 0;
    font-family: 'Chalet Custom', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: var(--main-color);
}

/* ---- Responsive -----------------------------------------------------------
   Three tiers matching the Figma frames:
   base >=1500px = 1920 frame, <=1499px = 1440 frame, <=1023px = 375 frame. */

/* Tablet / laptop — Figma frame 1442. Same layout, type scaled ~0.83x. */
@media (max-width: 1499px) {
    .who-this-is-for {
        padding: 64px 0;
    }

    .who-this-is-for__eyebrow {
        font-size: 16px;
    }

    .who-this-is-for__subtitle {
        font-size: 20px;
    }

    .who-this-is-for__body {
        gap: 20px;
    }

    .who-this-is-for__photo {
        border-radius: 20px;
    }

    .who-this-is-for__card {
        padding: 40px;
        border-radius: 20px;
    }

    .who-this-is-for__icon {
        width: 27px;
        height: 27px;
        margin-bottom: 13px;
    }

    .who-this-is-for__card-title {
        font-size: 22px;
    }

    .who-this-is-for__card-text {
        font-size: 16px;
    }

    /* title stays 50px here — matches the 1440 frame. */
}

/* Mobile — Figma frame 375. Fully stacked: photo on top, single-column cards. */
@media (max-width: 1023px) {
    .who-this-is-for {
        padding: 40px 0;
    }

    .who-this-is-for__head {
        margin-bottom: 28px;
    }

    .who-this-is-for__eyebrow {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .who-this-is-for__title {
        font-size: 26px;
    }

    .who-this-is-for__subtitle {
        font-size: 16px;
    }

    /* Photo stacks above the cards, landscape crop. */
    .who-this-is-for__body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .who-this-is-for__photo {
        min-height: 0;
        height: auto;
        aspect-ratio: 43 / 30;
        max-height: 320px;
        border-radius: 18px;
    }

    /* Single-column cards. */
    .who-this-is-for__cards {
        grid-template-columns: 1fr;
    }

    .who-this-is-for__card {
        padding: 30px;
        border-radius: 18px;
    }

    .who-this-is-for__icon {
        width: 24px;
        height: 24px;
        margin-bottom: 10px;
    }

    .who-this-is-for__card-title {
        font-size: 20px;
    }

    .who-this-is-for__card-text {
        font-size: 14px;
    }
}
