/* ============================================
   SECTION: Parent Coaching — Advantages
   Sticky heading/intro on the left; a pink card on the
   right (reuses .ndbi-def-card--pink + vector-270 swirl)
   holding three numbered points. Mirrors the neuroaffirming
   / ndbi definition layout.
   ============================================ */

.pc-advantages {
    max-width: calc(var(--container-max) + 2 * var(--section-side-padding));
    margin-inline: auto;
    padding: 100px var(--section-side-padding);
    background: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ----- Intro (sticky, left) ----- */
.pc-advantages__intro {
    flex: 0 1 505px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.pc-advantages__heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: var(--font-weight-normal);
    line-height: 50px;
    letter-spacing: -1.26px;
    color: var(--color-text-heading);
    margin: 0;
    max-width: 505px;
}

/* ----- Pink card (right) ----- */
.pc-advantages__card {
    flex: 0 1 610px;
}

/* Flip the reused pink-card swirl to the right (scoped to this
   section so the shared ndbi-def-card--pink swirl is unaffected) */
.pc-advantages__card .ndbi-def-card__swirl {
    left: auto;
    right: -37px;
    transform: scaleX(-1);
}

/* Three numbered sub-cards inside the pink card */
.pc-advantages__list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pc-advantages__item {
    padding: 24px;
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);   /* #ffebf0 */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pc-advantages__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--color-primary-light);   /* #ffebf0 */
    border-radius: 12px;
    font-family: var(--font-accent);          /* Borel script */
    font-size: 32px;
    line-height: 1;
    color: var(--color-primary);
    /* Borel sits high in its line box; nudge down to optically center */
    padding-top: 10px;
}

.pc-advantages__text {
    margin: 0;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-heading);
}

/* Scroll-position bars — phones only. Sits above the card's swirl. */
.pc-advantages__bars {
    position: relative;
    z-index: 1;
    display: none;
    gap: 7px;
    margin-top: 24px;
}

.pc-advantages__bar {
    flex: 1 1 0;
    height: 4px;
    border-radius: 100px;
    background: var(--color-white);
    transition: background-color var(--transition-fast);
}

.pc-advantages__bar.is-active {
    background: var(--color-primary);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .pc-advantages {
        flex-direction: column;
        gap: 48px;
    }
    .pc-advantages__intro,
    .pc-advantages__card {
        flex: initial;
        max-width: none;
        width: 100%;
    }
    /* Only the intro is sticky. The card must keep the `position: relative`
       it gets from .ndbi-def-card — making it static sends its absolutely
       positioned swirl to the page origin, painting it over the hero. */
    .pc-advantages__intro {
        position: static;        /* stop sticking once stacked */
    }
    .pc-advantages__heading {
        font-size: 36px;
        line-height: 42px;
    }
}

@media (max-width: 768px) {
    .pc-advantages {
        padding: 60px var(--section-side-padding);
    }
    .pc-advantages__heading {
        font-size: 32px;
        line-height: 38px;
    }
}

/* ----- Phones: the numbered points become a horizontal scroller -----
   These sit inside the pink card, so the track bleeds to the card's own
   24px padding rather than the section gutter, and the card's
   `overflow: hidden` crops the next point to a peek. */
@media (max-width: 600px) {
    .pc-advantages__list {
        flex-direction: row;
        align-items: stretch;         /* equal heights; ragged looks broken */
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-inline: -24px;
        padding-inline: 24px;
        /* keeps the snap point from cancelling the padding above */
        scroll-padding-inline: 24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pc-advantages__list::-webkit-scrollbar {
        display: none;
    }

    .pc-advantages__item {
        flex: 0 0 260px;
        scroll-snap-align: start;
    }

    .pc-advantages__bars {
        display: flex;
    }
}
