/**
 * Benefits Section Block Styles
 *
 * @package ACF Child Theme
 */

 :root {
    --color-yellow: #e3cd51;
    --color-light: #e7e9ed;
    --color-text: #595959;
    --color-teal: #2d5765;
    --color-white: #ffffff;
    --color-apigpen: #af623d;
    --color-avaxzipen: #54b141;
    --color-amedipen: #4c93b5;
    --color-asolopen: #5b5b5b;
    --font-primary: 'Aptos', sans-serif;
}

/* ── Section Wrapper — full-width light background ───────────────────────── */
.benefits-section {
    background-color: var(--color-light, #e7e9ed);
    width: 100%;
    padding: 80px 0;
    margin-bottom: 0 !important;
}

/* ── Content Container — WordPress layout width ──────────────────────────── */
.benefits-section__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.benefits-section__header {
    text-align: center;
    margin-bottom: 60px;
}

/* Shrinks to the natural width of the title text so the underline matches */
.benefits-section__title-wrap {
    display: inline-block;
}

.benefits-section__title {
    font-family: 'Aptos', sans-serif;
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--color-text, #595959);
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Yellow underline — inherits the inline-block wrapper width = title width */
.benefits-section__title-underline {
    width: 100%;
    height: 4px;
    background-color: var(--color-yellow, #e3cd51);
}

/* ── Items Grid — 6 columns desktop ─────────────────────────────────────── */
.benefits-section__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px 30px;
}

/* ── Single Benefit Item ─────────────────────────────────────────────────── */
.benefits-section__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Circular Icon Wrapper ───────────────────────────────────────────────── */
.benefits-section__icon-wrap {
    width: 130px;
    height: 130px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 18px;
}

.benefits-section__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Benefit Label ───────────────────────────────────────────────────────── */
.benefits-section__label {
    font-family: 'Aptos', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text, #595959);
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* ── Tablet — 3 columns ──────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1023px) {
    .benefits-section {
        padding: 60px 0;
    }

    .benefits-section__header {
        margin-bottom: 45px;
    }

    .benefits-section__title {
        font-size: 34px;
    }

    .benefits-section__title-underline {
        height: 3px;
    }

    .benefits-section__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
    }

    .benefits-section__icon-wrap {
        width: 110px;
        height: 110px;
    }

    .benefits-section__label {
        font-size: 0.78rem;
    }
}

/* ── Mobile — 2 columns ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .benefits-section {
        padding: 50px 0;
    }

    .benefits-section__header {
        margin-bottom: 35px;
    }

    .benefits-section__title {
        font-size: 28px;
    }

    .benefits-section__title-underline {
        height: 3px;
    }

    .benefits-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 20px;
    }

    .benefits-section__icon-wrap {
        width: 100px;
        height: 100px;
        margin-bottom: 14px;
    }

    .benefits-section__label {
        font-size: 0.75rem;
    }
}
