/* ==========================================================
   CDS Journey — Why CDS Journey (Phase 4)
   Namespace: .rd-why*
   Layout: editorial content + landscape image
   Palette: Navy / Olive / Gold — no lavender/purple
   ========================================================== */

.rd-why {
    position: relative;
    background: var(--rd-surface-default, #F8F9FB);
    padding-block: 56px 60px;
}

.rd-why__inner {
    width: 100%;
}

.rd-why__layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rd-why__content {
    display: contents;
}

/* ---- Intro ---- */
.rd-why__intro {
    order: 1;
    min-width: 0;
}

.rd-why__eyebrow {
    position: relative;
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-family: var(--rd-font-mono, "IBM Plex Mono", monospace);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rd-color-olive, #4B5320);
}

.rd-why__eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--rd-color-gold, #D4AF37);
}

.rd-why__heading {
    margin: 0;
    max-width: 16ch;
    font-family: var(--rd-font-display, "Fraunces", Georgia, serif);
    font-size: clamp(28px, 6.5vw, 36px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--rd-color-navy, #1A2B4C);
}

.rd-why__lead {
    margin: 14px 0 0;
    max-width: 36rem;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--rd-text-secondary, #6C757D);
}

/* ---- Visual ---- */
.rd-why__visual {
    order: 2;
    margin: 0;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--rd-color-navy, #1A2B4C);
}

.rd-why__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 8;
    object-fit: cover;
    object-position: center 40%;
}

/* ---- Principles ---- */
.rd-why__principles {
    order: 3;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rd-why__principle {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 12px 14px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--rd-border-subtle, #DDE2E6);
    transition: border-color 180ms ease;
}

.rd-why__principle:first-child {
    padding-top: 4px;
}

.rd-why__principle:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rd-why__principle:hover {
    border-bottom-color: rgba(75, 83, 32, 0.35);
}

.rd-why__principle-num {
    font-family: var(--rd-font-mono, "IBM Plex Mono", monospace);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: var(--rd-color-gold, #D4AF37);
    transition: color 180ms ease;
}

.rd-why__principle:hover .rd-why__principle-num {
    color: #C49F28;
}

.rd-why__principle-body {
    min-width: 0;
    max-width: 32rem;
}

.rd-why__principle-title {
    margin: 0 0 4px;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rd-color-navy, #1A2B4C);
}

.rd-why__principle-copy {
    margin: 0;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--rd-text-secondary, #6C757D);
}

/* ---- Text CTA ---- */
.rd-why__more {
    order: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 8px;
    min-height: 44px;
    font-family: var(--rd-font-body, "Inter", Arial, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-color-navy, #1A2B4C);
    text-decoration: none;
}

.rd-why__more:link,
.rd-why__more:visited {
    color: var(--rd-color-navy, #1A2B4C);
}

.rd-why__more span {
    display: inline-block;
    transition: transform 180ms ease;
}

.rd-why__more:hover {
    color: var(--rd-color-olive, #4B5320);
    outline: none;
}

.rd-why__more:hover span {
    transform: translateX(4px);
}

.rd-why__more:focus {
    outline: none;
}

.rd-why__more:focus-visible {
    outline: 2px solid var(--rd-color-navy, #1A2B4C);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ==========================================================
   Tablet 768–1199 — two columns when comfortable
   ========================================================== */
@media (min-width: 768px) {
    .rd-why {
        padding-block: 72px 80px;
    }

    .rd-why__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 40px;
        align-items: center;
    }

    .rd-why__content {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
    }

    .rd-why__intro,
    .rd-why__principles,
    .rd-why__more,
    .rd-why__visual {
        order: initial;
    }

    .rd-why__heading {
        max-width: 14ch;
        font-size: 40px;
        line-height: 1.08;
    }

    .rd-why__lead {
        font-size: 16px;
        max-width: 28rem;
    }

    .rd-why__image {
        aspect-ratio: 4 / 3;
        object-position: center center;
    }

    .rd-why__visual {
        border-radius: 18px;
    }

    .rd-why__principles {
        margin-top: 28px;
    }

    .rd-why__principle-title {
        font-size: 17px;
    }

    .rd-why__principle-copy {
        font-size: 14px;
        max-width: 28rem;
    }

    .rd-why__more {
        margin-top: 20px;
    }
}

/* Narrow tablet: stack when cramped */
@media (min-width: 768px) and (max-width: 899px) {
    .rd-why__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rd-why__content {
        display: contents;
    }

    .rd-why__intro { order: 1; }
    .rd-why__visual { order: 2; }
    .rd-why__principles { order: 3; }
    .rd-why__more { order: 4; }

    .rd-why__heading {
        max-width: 16ch;
    }
}

/* ==========================================================
   Desktop >=1200
   ========================================================== */
@media (min-width: 1200px) {
    .rd-why {
        padding-block: 96px 104px;
    }

    .rd-why__layout {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
        gap: 64px;
        align-items: center;
    }

    .rd-why__heading {
        font-size: 52px;
        line-height: 1.08;
        max-width: 12ch;
    }

    .rd-why__lead {
        font-size: 17px;
        margin-top: 16px;
        max-width: 32rem;
    }

    .rd-why__principles {
        margin-top: 36px;
    }

    .rd-why__principle {
        padding: 18px 0;
        gap: 14px 18px;
    }

    .rd-why__principle-num {
        font-size: 14px;
    }

    .rd-why__principle-title {
        font-size: 18px;
    }

    .rd-why__principle-copy {
        font-size: 15px;
        max-width: 30rem;
    }

    .rd-why__visual {
        border-radius: 20px;
    }

    .rd-why__more {
        margin-top: 24px;
    }
}

@media (min-width: 1440px) {
    .rd-why__heading {
        font-size: 56px;
    }

    .rd-why__layout {
        gap: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rd-why__more span,
    .rd-why__principle,
    .rd-why__principle-num {
        transition: none;
    }
}
