/* ============================================
   SECTION: Neuroaffirming — Definition
   "What is Neurodiversity?" — sticky intro (left) +
   two stacked cards (right): pink (perspective shift
   with two tilted quote cards) and cream (note on
   language). Same layout family as home Our Services.
   ============================================ */

.neuro-def {
    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) ----- */
.neuro-def__intro {
    flex: 0 1 468px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;                  /* clears the sticky navbar */
    align-self: flex-start;
}

.neuro-def__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;
    max-width: 473px;
}

.neuro-def__heading .accent-script {
    color: var(--color-primary);
}

.neuro-def__lede {
    max-width: 468px;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-body);
    margin: 0;
}

/* ----- Cards (stacked, right) ----- */
.neuro-def__cards {
    flex: 0 1 610px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.neuro-def-card {
    position: relative;
    padding: 32px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.neuro-def-card--pink { background-color: var(--color-primary-light); }
.neuro-def-card--cream { background-color: var(--color-accent-yellow-bg); }

/* Decorative swirls — reuse the home Our Services assets */
.neuro-def-card__swirl {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}
.neuro-def-card--pink .neuro-def-card__swirl {
    top: -39px;
    left: -37px;
    width: 760px;
    aspect-ratio: 828 / 285;
    background: url("../../../images/decorative/vector-270.f060f4d8b30d.png") no-repeat center / contain;
}
.neuro-def-card--cream .neuro-def-card__swirl {
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 610 / 145;
    background: url("../../../images/decorative/vector-270-tan.af3e16a592bf.png") no-repeat center / contain;
}

.neuro-def-card__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    margin-bottom: 32px;
}

.neuro-def-card__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    line-height: 32px;
    color: var(--color-text-heading);
    margin: 0;
    max-width: 400px;
}

/* ----- Pink card: the two tilted quote cards + arrow ----- */
.neuro-def__quotes {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.neuro-def__quote {
    flex: 1 1 0;
    min-width: 0;
    min-height: 206px;
    margin: 0;
    padding: 22px;
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.neuro-def__quote--a { transform: rotate(-3deg); }
.neuro-def__quote--b { transform: rotate(5deg); }

.neuro-def__quote p {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: var(--font-weight-normal);
    line-height: 28px;
    color: #2c2626;
    margin: 0;
}

.neuro-def__hl {
    color: var(--color-primary);
}

.neuro-def__arrow {
    position: absolute;
    left: 50%;
    top: 8%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: inline-flex;
}

.neuro-def__quote--b p {
    margin-top: 40px;
}

/* ----- Cream card: note on language ----- */
.neuro-def-card__desc {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    max-width: 525px;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-faint);
}

.neuro-def-card__eyebrow {
    position: relative;
    z-index: 1;
    margin: 40px 0 0;
    color: var(--color-accent-yellow-label);   /* gold */
}

.neuro-def-card__statement {
    position: relative;
    z-index: 1;
    margin: 24px 0 0;
    max-width: 546px;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: var(--font-weight-normal);
    line-height: 44px;
    color: var(--color-accent-yellow);          /* #e09b2b */
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .neuro-def {
        flex-direction: column;
        gap: 48px;
    }
    .neuro-def__intro,
    .neuro-def__cards {
        flex: initial;
        max-width: none;
        width: 100%;
        position: static;       /* stop sticking once stacked */
    }
    .neuro-def__heading {
        font-size: 36px;
        line-height: 42px;
    }
}

@media (max-width: 768px) {
    .neuro-def {
        padding: 60px var(--section-side-padding);
    }
    .neuro-def-card {
        padding: 24px;
    }
    /* stack the quote cards on narrow screens */
    .neuro-def__quotes {
        flex-direction: column;
        gap: 28px;
    }
    .neuro-def__quote {
        width: 100%;
    }
    .neuro-def__arrow {
        top: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }
    .neuro-def-card__statement {
        font-size: 26px;
        line-height: 36px;
    }
}
