/* ============================================================
   Customer Detail Hero
   Shared by customer (casestudy) and What's New (feature_release) singles.
   Template: theme partials/header-customer-detail.php
   ============================================================ */

/* Hide the site-header for new-layout pages (hero is in the template). */
.customer-new-layout .site-header,
.has-customer-hero .site-header {
    display: none !important;
}

/* --- Hero --- */
.customer-detail-hero {
    position: relative;
    background-image: url('../resources/images/template-bg.png');
    background-size: cover;
    background-position: bottom center;
    text-align: center;
    padding: 20px 0 0;
    overflow: hidden;
}

/* Dark mode: white text (use with dark background images) */
.customer-detail-hero--dark {
    color: #fff;
}
.customer-detail-hero--dark .page-title,
.customer-detail-hero--dark h1,
.customer-detail-hero--dark h2,
.customer-detail-hero--dark p {
    color: #fff;
}
.customer-detail-hero--dark .hero-stat__value,
.customer-detail-hero--dark .hero-stat__desc {
    color: #fff;
}
.customer-detail-hero--dark .customer-detail-hero__wave svg path {
    fill: #ffffff;
}

/* Light mode: dark text (use with light background images) */
.customer-detail-hero--light {
    color: #3F4955;
}
.customer-detail-hero--light .page-title,
.customer-detail-hero--light h1,
.customer-detail-hero--light h2,
.customer-detail-hero--light p {
    color: #3F4955;
}
.customer-detail-hero--light .hero-stat__value {
    color: #3F4955;
}
.customer-detail-hero--light .hero-stat__desc {
    color: #666;
    opacity: 1;
}
.customer-detail-hero--light .customer-detail-hero__wave svg path {
    fill: #ffffff;
}
.customer-detail-hero .page-title,
.customer-detail-hero h1 {
    color: #fff;
    margin-bottom: 33px;
    margin-top: 30px;
}

.customer-detail-hero__logo {
    margin: 0 auto 50px;
    max-width: 360px;
}
.customer-detail-hero__logo img {
    
    width: auto;
}
.customer-detail-hero__content {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0;
}
.customer-detail-hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.92;
}
.customer-detail-hero__subtitle p {
    margin-bottom: 0;
}
.customer-detail-hero__stats {
    display: flex;
    justify-content: center;
    gap: 90px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 0 20px;
}
.customer-detail-hero__stat {
    flex: 0 0 auto;
    min-width: 140px;
}
.hero-stat__value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #00C895 0%, #093B5F 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-stat__desc {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.88;
    max-width: 210px;
    margin: 0 auto;
}
.customer-detail-hero__video {
    
    position: relative;
    z-index: 2;
    width: 90%;
    max-width:770px;
    margin: 40px auto;
}

.customer-detail-hero__video .vidyard-player-container, .customer-detail-hero__video .pltfm-images {
    max-width: 770px
}

.customer-detail-hero__video .container-fluid {
    padding: 0;
}
.customer-detail-hero__video-inner {
    position: relative;
    overflow: hidden;
}
.customer-detail-hero__video-inner iframe,
.customer-detail-hero__video-inner video,
.customer-detail-hero__video-inner object,
.customer-detail-hero__video-inner img,
.customer-detail-hero__video-inner embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Image variant — let the image define the container height naturally */
.customer-detail-hero__video-inner--image {
    overflow: visible;
}
.customer-detail-hero__video-inner--image img {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
}
.customer-detail-hero__video-inner--image p {
    margin: 0;
    line-height: 0;
}

.customer-detail-hero__wave {
    position: relative;
    z-index: 3;
    line-height: 0;
    margin-top: -1px;
}
.customer-detail-hero__wave svg {
    width: 100%;
    display: block;
}

@media (max-width: 767px) {
    .customer-detail-hero__stats {
        gap: 24px;
    }
    .hero-stat__value {
        font-size: 36px;
    }
    .customer-detail-hero__stat {
        min-width: 120px;
    }
}

.customer-detail-hero--Dark.customer-detail-hero h1 {
    color: var(--sblue);
}


/* ============================================================
   Two-Column Hero (hero_layout = two_column)
   Text left, artwork right; the video card overlaps the hero's bottom edge.
   ============================================================ */
.customer-detail-hero--two-col,
.customer-detail-hero__video--overlap {
    --hero-overlap: clamp(60px, 14vw, 216px);
}
.customer-detail-hero--two-col {
    text-align: left;
    padding: 80px 0;
}
.customer-detail-hero--two-col.customer-detail-hero--has-video {
    padding-bottom: calc(80px + var(--hero-overlap));
}
/* Navy fallback from the campaign design; an uploaded header image (inline style) still wins. */
.customer-detail-hero--two-col.customer-detail-hero--dark {
    background-color: #093b5f;
    background-image: none;
}
.customer-detail-hero--two-col.customer-detail-hero--has-bg {
    background-position: center;
}
/* Desktop: size the hero to the background image (--hero-bg-ratio is set inline by the template)
   so artwork in the image isn't cropped, and centre the text vertically. */
@media (min-width: 992px) {
    .customer-detail-hero--two-col.customer-detail-hero--has-bg {
        min-height: min(calc(100vw * var(--hero-bg-ratio, 0.5)), 1300px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.customer-detail-hero__cols {
    display: flex;
    align-items: center;
    gap: 60px;
}
.customer-detail-hero__text,
.customer-detail-hero__art {
    flex: 1 1 0;
    min-width: 0;
}
.customer-detail-hero__cols--no-art .customer-detail-hero__text {
    flex: 0 1 760px;
}
.customer-detail-hero__art img {
    display: block;
    width: 100%;
    height: auto;
}

.customer-detail-hero--two-col .customer-detail-hero__logo {
    margin: 0 0 30px;
    max-width: 240px;
}
.customer-detail-hero--two-col .customer-detail-hero__content {
    max-width: none;
    margin: 0 0 32px;
}
.customer-detail-hero--two-col .customer-detail-hero__content > :last-child {
    margin-bottom: 0;
}
.customer-detail-hero--two-col .page-title,
.customer-detail-hero--two-col h1 {
    margin-top: 0;
    margin-bottom: 24px;
}
.customer-detail-hero--two-col .customer-detail-hero__stats {
    justify-content: flex-start;
    gap: 48px;
    margin-bottom: 0;
    padding: 0;
}
.customer-detail-hero--two-col .hero-stat__desc {
    margin: 0;
}
/* The default green-to-navy stat gradient disappears into the navy background. */
.customer-detail-hero--two-col.customer-detail-hero--dark .hero-stat__value {
    background: linear-gradient(180deg, #ffffff 0%, #00C895 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.customer-detail-hero__video--overlap {
    margin: calc(-1 * var(--hero-overlap)) auto 40px;
}
.customer-detail-hero__video--overlap .customer-detail-hero__video-inner {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(9, 59, 95, 0.25);
}
.customer-detail-hero__video--overlap .customer-detail-hero__video-inner--image img {
    border-radius: 15px;
    margin: 0; /* WP alignment classes add margins that show as a strip inside the card. */
}

@media (max-width: 991px) {
    .customer-detail-hero--two-col {
        padding: 48px 0;
    }
    .customer-detail-hero--two-col.customer-detail-hero--has-video {
        padding-bottom: calc(48px + var(--hero-overlap));
    }
    .customer-detail-hero__cols {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }
    .customer-detail-hero__text,
    .customer-detail-hero__art,
    .customer-detail-hero__cols--no-art .customer-detail-hero__text {
        flex: none;
    }
    .customer-detail-hero__art {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    /* Stacked, the text sits over the background artwork; tint it so the text stays readable. */
    .customer-detail-hero--two-col.customer-detail-hero--has-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(9, 59, 95, 0.8);
    }
    .customer-detail-hero--two-col.customer-detail-hero--has-bg.customer-detail-hero--light::before {
        background: rgba(255, 255, 255, 0.8);
    }
    .customer-detail-hero--two-col.customer-detail-hero--has-bg > .container-fluid {
        position: relative;
    }
}
@media (max-width: 767px) {
    .customer-detail-hero--two-col .customer-detail-hero__stats {
        gap: 24px;
    }
}
