/* ============================================
   SECTION: Diagnostic Evaluation Process — Evaluation
   Cream band, heading, three age-banded columns each with
   a white card listing assessment tools. A decorative
   orange swirl bleeds across the bottom-right corner.
   ============================================ */

.de-evaluation {
    position: relative;
    overflow: clip;
    padding: 100px var(--section-side-padding);
    background: #fef9ee;
}

.de-evaluation__swirl {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    right: 0;
    bottom: 0;
    width: 620px;
    aspect-ratio: 873 / 548;
    background: url("../../../images/decorative/orange-swirl.a4eb3f162d58.png") no-repeat right bottom / contain;
}

.de-evaluation__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin-inline: auto;
}

/* ----- Header ----- */
.de-evaluation__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 40px;
}

.de-evaluation__heading-group {
    flex: 0 1 505px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.de-evaluation__heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: var(--font-weight-normal);
    line-height: 50px;
    letter-spacing: -1.26px;
    color: #484336;
    margin: 0;
}

.de-evaluation__heading .accent-script {
    color: var(--color-accent-yellow);   /* #e09b2b */
}

.de-evaluation__lede {
    flex: 0 1 600px;
    align-self: flex-end;
    font-size: 16px;
    line-height: 26px;
    color: #776d79;
    margin: 0;
}

/* ----- Columns ----- */
.de-evaluation__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 20px;
}

.de-evaluation__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.de-evaluation__age {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    color: #ae9e76;
    margin: 0;
}

.de-evaluation__card {
    flex: 1 1 auto;
    list-style: none;
    margin: 0;
    padding: 24px 20px;
    background: var(--color-white);
    border: 2px solid #f6edd6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.de-evaluation__tool {
    display: flex;
    align-items: center;
    gap: 12px;
}

.de-evaluation__check {
    flex-shrink: 0;
    display: inline-flex;
    width: 44px;
    height: 44px;
}

.de-evaluation__tool-name {
    flex: 1 1 0;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: var(--font-weight-normal);
    line-height: 26px;
    color: #3e2e2d;
}

/* Scroll-position bars — phones only */
.de-evaluation__bars {
    display: none;
    gap: 7px;
    margin-top: 24px;
}

.de-evaluation__bar {
    flex: 1 1 0;
    height: 4px;
    border-radius: 100px;
    background: var(--color-primary-light);
    transition: background-color var(--transition-fast);
}

.de-evaluation__bar.is-active {
    background: var(--color-primary);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .de-evaluation__header {
        flex-direction: column;
        gap: 24px;
    }
    .de-evaluation__heading-group,
    .de-evaluation__lede {
        flex: initial;
        max-width: none;
        align-self: auto;
    }
    .de-evaluation__grid {
        grid-template-columns: 1fr;
    }
}

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

/* ----- Phones: the age bands become a horizontal, snapping scroller -----
   The grid gives way to a flex row that bleeds to the section edges so the
   next band peeks in from the right, with position bars underneath. */
@media (max-width: 600px) {
    .de-evaluation__grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;         /* equal heights; ragged looks broken */
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-inline: calc(-1 * var(--section-side-padding));
        padding-inline: var(--section-side-padding);
        /* keeps the snap point from cancelling the padding above */
        scroll-padding-inline: var(--section-side-padding);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .de-evaluation__grid::-webkit-scrollbar {
        display: none;
    }

    .de-evaluation__col {
        flex: 0 0 288px;
        scroll-snap-align: start;
    }

    .de-evaluation__bars {
        display: flex;
    }
}
