/* ndc-outcomes.css - NDC outcome positioning (homepage, services, case studies).
   Builds on product-family.css and cmx-mkt.css. */

/* ---------- Hero call-to-action row ---------- */
.ndc-hero-cta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.ndc-hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    width: fit-content;
}

/* Services hero: same look as the homepage banner. The product-page hero darkens the left
   third with a gradient; here that layer carries the homepage dot pattern instead. */
.prod-hero.ndc-hero::before {
    background: url(/img/pattern-2.png);
    background-size: 5px;
}

/* ---------- Partner journey / engagement steps ---------- */
.ndc-journey {
    padding: 60px 0 30px;
}

/* Light step card: thin border and soft shadow instead of the 6px .prod-stack-item frame.
   .prod-stack makes each column a flex container, so every card in a row is the same height. */
.ndc-step {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px 18px 18px;
    border: 1px solid #dee7ff;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(32, 69, 147, .06);
    transition: border-color .2s, box-shadow .2s;
}

.ndc-step:hover {
    border-color: #9db4f0;
    box-shadow: 0 6px 18px rgba(32, 69, 147, .12);
}

/* Header row: icon on the left, then a small "Step n" strapline above the title */
.ndc-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ndc-step-icon {
    flex: 0 0 auto;
    font-size: 2rem;
    line-height: 1;
    color: #007bff;
}

.ndc-step-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ndc-step-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    color: #8a94a6;
    white-space: nowrap;
}

/* Card title in the site's own heading face (Nunito Sans, extra-bold), not the Iceland display font */
.ndc-step h4 {
    font-family: "Nunito Sans", "DM Sans", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #204593;
    margin: 0;
}

.ndc-step p {
    font-size: .92rem;
    line-height: 1.5;
    color: #4d4e53;
    margin-bottom: 14px;
}

/* Chevron between steps on wide screens, so the row reads as a sequence */
@media only screen and (min-width: 992px) {
    .ndc-steps > [class*="col-"]:not(:last-child) .ndc-step::after {
        content: "\203A";
        position: absolute;
        top: 50%;
        right: -24px;
        transform: translateY(-50%);
        font-size: 2rem;
        line-height: 1;
        color: #9db4f0;
    }
}

.ndc-step-tool {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eef2ff;
    font-size: .85rem;
    color: #4d4e53;
}

.ndc-step-tool a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ndc-step-tool .prod-brand.prod-inline {
    color: #204593;
}

.ndc-soon {
    font-size: .75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---------- Outcome stories (homepage case study cards) ---------- */
/* Equal-height cards in each row, with the same light frame as the step cards. */
.ndc-cases .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.ndc-cases .brd-bl {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #dee7ff;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(32, 69, 147, .06);
}

.ndc-cases .media-1 {
    margin-bottom: 0;
}

.ndc-outcome {
    margin: 16px 0 0;
    font-size: .95rem;
    line-height: 1.5;
    color: #4d4e53;
}

/* ---------- Services page ---------- */
.ndc-service {
    padding: 60px 0;
}

.ndc-powered {
    margin-top: 14px;
    font-size: .9rem;
}

.ndc-powered .prod-brand.prod-inline {
    margin-right: 8px;
}

/* ---------- Small screens ---------- */
/* Two large buttons cannot sit side by side at phone width; below 576px only, let them wrap. */
@media only screen and (max-width: 575px) {
    .ndc-hero-cta {
        flex-wrap: wrap;
    }

    .ndc-journey,
    .ndc-service {
        padding: 40px 0 20px;
    }
}
