/* Diagnosis page — psychological assessment hero (banner as CSS background, text on white band) */

.dx-page {
    width: 100%;
    overflow-x: hidden;
}

/*
 * Full-width background = artwork file; height follows intrinsic banner ratio (1600×520).
 * background-size: 100% auto = full width, no horizontal crop (“fit content” width-wise).
 */
.dx-hero {
    --dx-banner-w: 1600;
    --dx-banner-h: 520;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: var(--dx-banner-w) / var(--dx-banner-h);
    margin: 0;
    overflow: hidden;
    text-align: center;
    background-color: #ffffff;
    background-image: url("diagnosis/Group%201321316469.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
}

/* Headline + kicker sit in the white upper band of the artwork */
.dx-hero__copy {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    top: clamp(4%, 7.5vw, 12%);
    width: min(92%, 48rem);
    max-width: 100%;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.dx-hero__title {
    margin: 0 0 clamp(0.5rem, 1.4vw, 0.85rem);
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.85rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #141414;
}

.dx-hero__kicker {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.88rem, 2.4vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.4;
    color: #6ba0dc;
    text-transform: uppercase;
}

/* Phones / small tablets: pull text up, push banner art down so copy stays on the white band */
@media (max-width: 899px) {
    .dx-hero {
        /* Nudge artwork down so the white strip reads taller; text sits higher in that strip */
        background-position: center clamp(1rem, 5vw, 2.75rem);
    }

    .dx-hero__copy {
        top: max(0.25rem, env(safe-area-inset-top, 0px));
        padding-top: 0.1rem;
    }

    .dx-hero__title {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 1),
            0 0 20px rgba(255, 255, 255, 0.9),
            0 1px 0 #fff;
    }

    .dx-hero__kicker {
        font-size: clamp(0.82rem, 3.6vw, 1.12rem);
        letter-spacing: 0.08em;
        text-shadow:
            0 0 8px rgba(255, 255, 255, 1),
            0 0 16px rgba(255, 255, 255, 0.85);
    }
}

/* —— Text-only intro (white, centred body copy) —— */

.dx-map {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: clamp(2.5rem, 7vw, 1.5rem) clamp(1.25rem, 5vw, 1.5rem);
    background-color: #ffffff;
    text-align: center;
}

.dx-map__text {
    box-sizing: border-box;
    max-width: 85rem;
    margin: 0 auto;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.82;
    letter-spacing: 0.01em;
    color: #3a4048;
    text-wrap: pretty;
}

@media (max-width: 599px) {
    .dx-map {
        padding: clamp(2rem, 8vw, 3rem) clamp(1.15rem, 4.5vw, 1.5rem);
    }

    .dx-map__text {
        font-size: clamp(0.9rem, 3.8vw, 1rem);
        line-height: 1.78;
    }
}

/* —— Three-step diagnostic process (wide blue / narrow lime + photo) —— */

.dx-process {
    width: 100%;
    overflow: hidden;
}

.dx-process__grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.dx-process__main {
    box-sizing: border-box;
    order: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    background-color: #ecf9ff;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.dx-process__body {
    position: relative;
    z-index: 2;
}

.dx-process__figure {
    margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
    width: 100%;
    max-width: min(22rem, 100%);
}

.dx-process__title {
    margin: 0 0 clamp(0.65rem, 1.5vw, 0.95rem);
    max-width: 38rem;
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #141414;
}

.dx-process__intro {
    margin: 0 0 clamp(1.35rem, 3vw, 2rem);
    max-width: 38rem;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    font-weight: 400;
    line-height: 1.65;
    color: #4a5560;
}

.dx-process__steps {
    position: relative;
    margin: 0;
    padding: 0.35rem 0 0;
    list-style: none;
    max-width: 40rem;
}

/* Vertical rail + diamond caps (decorative) */
.dx-process__steps::before {
    content: "";
    position: absolute;
    left: calc(1.875rem - 0.5px);
    top: 0.65rem;
    bottom: 0.65rem;
    width: 1px;
    background: linear-gradient(to bottom, #b8c9d9 0%, #d2dde8 12%, #d2dde8 88%, #b8c9d9 100%);
    pointer-events: none;
}

.dx-process__step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: clamp(0.85rem, 2vw, 1.25rem);
    align-items: flex-start;
    padding-bottom: clamp(1.35rem, 3vw, 2rem);
}

.dx-process__step:last-child {
    padding-bottom: 0;
}

.dx-process__step-icon {
    position: relative;
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.dx-process__step-icon img {
    display: block;
    width: clamp(3rem, 7.5vw, 3.75rem);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.dx-process__step:first-child .dx-process__step-icon::before,
.dx-process__step:last-child .dx-process__step-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background-color: #c5d3e0;
    transform: rotate(45deg);
    z-index: 2;
}

.dx-process__step:first-child .dx-process__step-icon::before {
    top: -0.35rem;
}

.dx-process__step:last-child .dx-process__step-icon::after {
    bottom: -0.35rem;
}

.dx-process__step-title {
    margin: 0 0 clamp(0.4rem, 1vw, 0.55rem);
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.02rem, 1.35vw, 1.2rem);
    line-height: 1.25;
    color: #1a1f26;
}

.dx-process__step-body {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.875rem, 0.98vw, 0.98rem);
    font-weight: 400;
    line-height: 1.72;
    color: #3a4048;
}

.dx-process__step-body strong {
    font-weight: 600;
    color: #252b33;
}

.dx-process__aside {
    box-sizing: border-box;
    order: 2;
    min-height: 12rem;
    background-color: #f7ffe0;
}

@media (max-width: 899px) {
    .dx-process__aside {
        display: none;
    }
}

.dx-process__photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: clamp(14px, 1.8vw, 20px);
    box-shadow:
        0 2px 8px rgba(20, 35, 45, 0.08),
        0 16px 40px rgba(20, 35, 45, 0.1);
    object-fit: cover;
}

@media (min-width: 900px) {
    .dx-process {
        overflow: visible;
    }

    .dx-process__grid {
        grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
        max-width: none;
        position: relative;
        overflow: visible;
    }

    .dx-process__main {
        display: block;
        overflow: visible;
        min-height: clamp(24rem, 40vw, 36rem);
        padding: clamp(2.25rem, 4.5vw, 3.75rem) clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem)
            clamp(1.25rem, 3vw, 2.75rem);
    }

    .dx-process__aside {
        display: block;
        min-height: 0;
        order: 2;
    }

    /* Join = right edge of blue column (65%). Centre photo on that line; larger width. */
    .dx-process__figure {
        position: absolute;
        left: 115%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(40rem, 48vw);
        max-width: none;
        margin: 0;
        z-index: 0;
    }

    .dx-process__photo {
        border-radius: clamp(16px, 2vw, 22px);
    }
}

/* —— Specialized testing services (pink section, two white cards) —— */

.dx-services {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    background-color: #fff0f3;
    padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.15rem, 4vw, 2.5rem);
}

.dx-services__deco {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
    background-image: radial-gradient(circle, rgba(200, 150, 165, 0.55) 1.25px, transparent 1.25px);
    background-size: 14px 14px;
}

.dx-services__deco--tl {
    top: clamp(1rem, 3vw, 2rem);
    left: clamp(0.75rem, 3vw, 2rem);
    width: min(40%, 11rem);
    height: clamp(4rem, 18vw, 7rem);
}

.dx-services__deco--br {
    right: clamp(0.75rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    width: min(42%, 12rem);
    height: clamp(4.5rem, 20vw, 8rem);
}

.dx-services__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.dx-services__title {
    margin: 0 auto clamp(0.65rem, 1.5vw, 1rem);
    max-width: 52rem;
    text-align: center;
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.9vw, 2.05rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #141414;
}

.dx-services__subtitle {
    margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
    max-width: 40rem;
    text-align: center;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.9rem, 1.05vw, 1.02rem);
    font-weight: 400;
    line-height: 1.65;
    color: #4a5560;
}

.dx-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.15rem, 3vw, 1.75rem);
    align-items: stretch;
}

.dx-services__card {
    margin: 0;
    padding: clamp(1.35rem, 3vw, 2rem) clamp(1.15rem, 2.8vw, 1.85rem);
    list-style: none;
    background-color: #ffffff;
    border-radius: clamp(14px, 1.8vw, 20px);
    box-shadow:
        0 1px 3px rgba(35, 25, 40, 0.06),
        0 14px 36px rgba(35, 25, 40, 0.08);
}

.dx-services__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    align-items: flex-start;
    padding: clamp(0.85rem, 2vw, 1.15rem) 0;
    border-bottom: 1px solid rgba(220, 200, 208, 0.55);
}

.dx-services__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dx-services__item:first-child {
    padding-top: 0;
}

.dx-services__badge {
    flex-shrink: 0;
    width: clamp(3rem, 8vw, 3.5rem);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.15rem;
}

.dx-services__badge img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 3.5rem;
    object-fit: contain;
}

.dx-services__name {
    margin: 0 0 0.35rem;
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.28;
    color: #1a1f26;
}

.dx-services__desc {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.85rem, 0.98vw, 0.95rem);
    font-weight: 400;
    line-height: 1.65;
    color: #5c6570;
}

@media (min-width: 768px) {
    .dx-services__grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.25rem, 2.5vw, 2rem);
    }
}

@media (max-width: 480px) {
    .dx-services__item {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 0.65rem;
    }

    .dx-services__badge {
        padding-top: 0;
    }

    .dx-services__text {
        text-align: center;
    }
}

/* —— Philosophy note (split bg, illustration + card on join) —— */

.dx-philosophy {
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    /* Wider white band on the left (~60%), narrower blue on the right (~40%) */
    background: linear-gradient(to right, #ffffff 0%, #ffffff 60%, #ecf9ff 60%, #ecf9ff 100%);
}

.dx-philosophy__shell {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    min-height: clamp(16rem, 34vw, 24rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.15rem, 4vw, 2rem);
}

.dx-philosophy__visual {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(1.25rem, 3vw, 1.75rem);
}

.dx-philosophy__illustration {
    display: block;
    width: min(100%, 22rem);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.dx-philosophy__card {
    order: 2;
    box-sizing: border-box;
    margin: 0 auto;
    width: 100%;
    max-width: 36rem;
    padding: clamp(1.35rem, 3vw, 2rem) clamp(1.15rem, 3vw, 1.85rem);
    background-color: #ffffff;
    border-radius: clamp(14px, 1.8vw, 20px);
    box-shadow:
        0 1px 4px rgba(35, 25, 40, 0.07),
        0 18px 44px rgba(35, 25, 40, 0.1);
}

.dx-philosophy__title {
    margin: 0 0 clamp(0.65rem, 1.5vw, 0.95rem);
    font-family: "Playfair Display", "DM Serif Text", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111418;
}

.dx-philosophy__body {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(0.9rem, 1.02vw, 1.02rem);
    font-weight: 400;
    line-height: 1.78;
    color: #3a4048;
    text-align: left;
    text-wrap: pretty;
}

.dx-philosophy__body strong {
    font-weight: 600;
    color: #252b33;
}

@media (min-width: 900px) {
    .dx-philosophy {
        overflow: visible;
    }

    .dx-philosophy__shell {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: center;
        column-gap: 0;
        min-height: clamp(18rem, 32vw, 26rem);
        padding: clamp(2.25rem, 4.5vw, 3.75rem) clamp(1.25rem, 3vw, 2.5rem);
    }

    .dx-philosophy__visual {
        order: unset;
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 1;
        justify-content: center;
        padding: clamp(1rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1rem) clamp(1rem, 2vw, 1.5rem) 0;
    }

    .dx-philosophy__illustration {
        width: min(100%, 26rem);
        max-width: 94%;
    }

    /* Card in the narrower (blue) column; pulls left to straddle the 60% | 40% join */
    .dx-philosophy__card {
        order: unset;
        grid-column: 2;
        grid-row: 1;
        position: relative;
        z-index: 2;
        align-self: center;
        justify-self: stretch;
        width: auto;
        max-width: min(36rem, 38vw);
        margin: 0;
        margin-left: clamp(-2.5rem, -10%, -1rem);
    }
}

@media (max-width: 899px) {
    .dx-philosophy {
        background: linear-gradient(to bottom, #ffffff 0%, #ffffff 55%, #ecf9ff 55%, #ecf9ff 100%);
    }

    .dx-philosophy__shell {
        padding-bottom: clamp(2rem, 5vw, 3rem);
    }
}
