/* ============================================================= *
 *  Why work with DI  —  native to the existing DI Team site      *
 *  Coastal palette from the hero image:                         *
 *  sunset gold #c07f24 · ocean teal #12616d · deep ink #163b42  *
 *  No custom fonts, no dark sections — inherits the site look.   *
 * ============================================================= */

/* Taller hero that reveals more of the coast photo */
#whydi .hero.overlay {
    min-height: 78vh;
    max-height: 860px;
    padding-top: 0;
    padding-bottom: 0;
}

/* This page only: shrink the overlaid logo so the headline can sit higher
   (scoped via :has() so every other page keeps the full-size logo) */
body:has(#whydi) .site-nav {
    padding-top: 14px;
    padding-bottom: 14px;
}

body:has(#whydi) .logo {
    height: 56px !important;
}

/* Lift the title block up into the space freed above */
#whydi .hero > .container > .row {
    padding-top: 4.5rem;
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    #whydi .hero > .container > .row {
        padding-top: 3.5rem;
    }
}

/* Fit the whole image (less zoom/crop) and let it cover the hero */
#whydi .hero .img-bg {
    position: absolute;
    inset: 0;
}

    #whydi .hero .img-bg img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center 38%;
        transform: none;
    }

/* Warm-to-clear gradient for heading legibility (top-left), fading out
   before the bottom so the white fade below reads cleanly. */
#whydi .hero.overlay:before {
    background:
        linear-gradient(105deg, rgba(11,40,46,.82) 0%, rgba(11,40,46,.42) 34%, rgba(13,55,62,.10) 64%, transparent 88%),
        linear-gradient(to bottom, rgba(11,40,46,.30) 0%, transparent 42%);
}

/* Larger, fluid hero typography to suit the big image */
#whydi .hero .heading {
    font-size: clamp(2.8rem, 6vw, 5.25rem);
    line-height: 1.04;
}

#whydi .hero .col-lg-9 > p.fw-bold {
    font-size: 1rem;
    letter-spacing: .2em;
}

#whydi .hero .col-lg-9 > p.mb-0 {
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

/* Fade the photo into white at the bottom instead of a hard cut-off */
#whydi .hero.overlay:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 55%, #fff 100%);
}

/* Section headings — deep ocean ink (replaces the site indigo on this page) */
#whydi .section .heading {
    color: #163b42;
}

#whydi .wd-kicker {
    display: inline-block;
    color: #c07f24;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .82rem;
    margin-bottom: .75rem;
}

#whydi .wd-lead {
    font-size: 1.2rem;
    line-height: 1.65;
    color: #4a4a4a;
}

#whydi .wd-callout {
    color: #c07f24;
    font-weight: 700;
    font-size: 1.15rem;
}

/* ---- Cards (icon + title + text) ---- */
#whydi .wd-card {
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 40px -28px rgba(28, 30, 34, .5);
    transition: transform .35s ease, box-shadow .35s ease;
}

    #whydi .wd-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 26px 50px -26px rgba(28, 30, 34, .55);
    }

    #whydi .wd-card h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #163b42;
        margin: 0 0 .6rem;
    }

    #whydi .wd-card p {
        margin: 0;
        color: #5c5c5c;
        line-height: 1.55;
    }

#whydi .wd-ic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
}

    #whydi .wd-ic:before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #e0a23a;
        opacity: .2;
    }

    #whydi .wd-ic img {
        width: 30px;
        height: 30px;
        position: relative;
    }

/* ---- Business-area cards (centered, no icon) ---- */
#whydi .wd-area {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 92px;
}

    #whydi .wd-area h3 {
        margin: 0;
    }

/* ---- Emphasis banner ---- */
#whydi .wd-banner {
    background: linear-gradient(120deg, #0f5560 0%, #12616d 60%, #16707c 100%);
    color: #fff;
    border-radius: 14px;
    padding: 2.4rem 2rem;
    text-align: center;
}

    #whydi .wd-banner p {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 600;
        line-height: 1.45;
    }

    #whydi .wd-banner .accent {
        color: #f3c163;
    }

/* ---- Proof rows (example -> what it proves) ---- */
#whydi .wd-proof {
    border-top: 1px solid #e7e7e7;
}

#whydi .wd-proof-row {
    border-bottom: 1px solid #e7e7e7;
    padding: 1.05rem 0;
}

    #whydi .wd-proof-row .name {
        color: #c07f24;
        font-weight: 700;
        font-size: 1.1rem;
    }

    #whydi .wd-proof-row .desc {
        color: #555;
    }

/* ---- Portfolio table ---- */
#whydi .wd-th {
    color: #c07f24;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .74rem;
}

#whydi .wd-proof-row .built {
    color: #163b42;
    font-weight: 600;
}

/* ---- Common themes card ---- */
#whydi .wd-themes {
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 18px 40px -28px rgba(28, 30, 34, .5);
}

    #whydi .wd-themes h3 {
        color: #163b42;
        font-weight: 700;
        font-size: 1.25rem;
        margin: 0 0 1.1rem;
    }

/* ---- Checklist (themes, security, triggers) ---- */
#whydi .wd-check {
    list-style: none;
    margin: 0;
    padding: 0;
}

    #whydi .wd-check li {
        position: relative;
        padding: .5rem 0 .5rem 1.9rem;
        color: #4a4a4a;
        line-height: 1.5;
    }

        #whydi .wd-check li:before {
            content: "";
            position: absolute;
            left: 2px;
            top: .7em;
            width: 11px;
            height: 6px;
            border-left: 2.5px solid #12616d;
            border-bottom: 2.5px solid #12616d;
            transform: rotate(-45deg);
        }

/* ---- Metric cards ---- */
#whydi .wd-num {
    color: #c07f24;
    font-weight: 800;
    font-size: 2.9rem;
    line-height: 1;
    margin-bottom: .6rem;
}

#whydi .wd-metric h3 {
    font-size: 1.05rem;
}

/* ---- How we work steps ---- */
#whydi .wd-step {
    display: flex;
    gap: 1.1rem;
    height: 100%;
}

    #whydi .wd-step .n {
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: linear-gradient(135deg, #d39026, #c07f24);
        color: #fff;
        font-weight: 800;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #whydi .wd-step h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #163b42;
        margin: .35rem 0 .4rem;
    }

    #whydi .wd-step p {
        margin: 0;
        color: #5c5c5c;
        line-height: 1.55;
    }
