/* ==========================================================================
   Block: Hero Header
   ========================================================================== */

.hero-header {
    position: relative;
}

/* Override global shaper padding — this hero is full-bleed */
.hero-header.shaper {
    padding-top: 0;
    padding-bottom: 0;
}

.hh-wrapper {
    position: relative;
	padding-bottom: 45px;
}

@media (min-width: 1024px) {
    .hh-wrapper {
		padding-bottom: 75px;
	}
}

/* Text overlay */
.hh-overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.hh-overlay-inner {
    align-items: flex-start;
    height: 100%;
    padding-top: calc(var(--sticky-top, 80px) + 26px);
    max-width: var(--max-w-wrapper);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 1024px) {
    .hh-overlay-inner {
        padding-left: 80px;
        padding-right: 80px;
		padding-top: calc(var(--sticky-top, 80px) + 56px);
		display: flex;
    }
}

/* Tile — black box with clip-path corner */
.hh-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 40px 32px 48px;
    margin-left: -16px;
    color: var(--color-white);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
    pointer-events: all;
}

@media (min-width: 1024px) {
    .hh-tile {
        margin-left: 0;
		max-width: 540px;
    }
}

/* Eyebrow */
.hh-eyebrow {
    font-size: var(--font-h5-size);
    font-weight: var(--font-h5-weight);
    line-height: var(--font-h5-line);
    text-transform: uppercase;
    margin: 0;
}

/* Title */
.hh-title {
    font-size: var(--font-h2-size);
    font-weight: var(--font-h2-weight);
    letter-spacing: var(--font-h2-letter);
    line-height: var(--font-h2-line);
    margin: 0;
}

/* Background image */
.hh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Vidyard video */
.hh-video-wrapper {
    position: relative;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    transform: translate(-25px, -50px);
}

.hh-vidyard {
    width: 100%;
    height: 100%;
}

.hh-vidyard .vidyard-player-container {
    width: auto !important;
    height: 100% !important;
}

.hh-vidyard .vidyard-player-container > div {
    height: 100% !important;
    max-width: none !important;
    aspect-ratio: 16/9;
    transform: translateX(-30%);
}

@media (min-width: 768px) {
    .hh-vidyard .vidyard-player-container > div {
        transform: translateX(0);
    }
}

/* Full-bleed scrim: the tile goes transparent and a gradient across the whole
   hero does the contrast work instead. */
.hero-header--scrim .hh-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.84) 0%,
        rgba(0, 0, 0, 0.74) 40%,
        rgba(0, 0, 0, 0.43) 70%,
        rgba(0, 0, 0, 0.17) 100%
    );
}

/* No box, so no corner cut and no negative margin pulling it off-grid. */
.hero-header--scrim .hh-tile {
    clip-path: none;
    margin-left: 0;
    padding: 0;
}

/* The tile's own padding was setting the hero's height; without a visible box
   that padding reads as drift, so the section carries the height instead. */
.hero-header--scrim .hh-wrapper {
    padding-top: var(--sticky-top, 80px);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (min-width: 1024px) {
    .hero-header--scrim .hh-wrapper {
        min-height: 520px;
        padding-bottom: 50px;
    }
	.single-landing_page .hero-header--scrim .hh-wrapper{
		min-height: 320px;
	}
}

.hero-header--scrim .hh-overlay {
    height: auto;
}

.hero-header--scrim .hh-overlay-inner {
    padding-top: 40px;
    padding-bottom: 24px;
	height: auto;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .hero-header--scrim .hh-tile {
        max-width: 620px;
    }
	.hero-header--scrim .hh-overlay-inner{
		padding-top: 0;
	}
}

@media (max-width: 567px) {
    .hero-header--scrim .hh-tile {
        padding: 0 0 40px;
    }
}

@media (max-width: 1023px) {
    .hero-header--scrim .hh-scrim {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.84) 0%,
            rgba(0, 0, 0, 0.67) 65%,
            rgba(0, 0, 0, 0.29) 100%
        );
    }
}

.hero-header--scrim .hh-eyebrow{
	color: var(--color-coral);
}

/* Actions row — coral button plus underlined secondary link */
.hh-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-top: 16px;
}

.hh-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease-out;
}

.hh-link:hover,
.hh-link:focus {
    color: var(--color-teal);
}

.hh-link-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hh-link-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    transform: translateY(-1px);
}

.hh-link-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Scrim version: lede paragraph between title and actions */
.hero-header--scrim .hh-text {
    font-size: var(--font-p1-size);
    font-weight: var(--font-p1-weight);
    line-height: var(--font-p1-line);
    letter-spacing: var(--font-p1-letter);
    margin: 0;
    max-width: 52ch;
    text-wrap: pretty;
}

@media (min-width: 1024px) {
	.hero-header--scrim .hh-text {
		font-size: var(--font-scrim-size);
		line-height: var(--font-scrim-line);
	}
}

/* The 8px tile gap is tuned for eyebrow + title only. With a lede and an
   actions row the stack needs real separation between roles. */
.hero-header--scrim .hh-tile {
    gap: 20px;
}

/* A lede and two actions need more width than the 620px title measure. */
@media (min-width: 1024px) {
    .hero-header--scrim:has(.hh-text) .hh-tile {
        max-width: 720px;
    }

    .hero-header--scrim:has(.hh-text) .hh-wrapper {
        min-height: 620px;
    }
}

@media (max-width: 567px) {
    .hh-actions {
        gap: 20px;
    }
}

.hh-img-flip {
    transform: scaleX(-1);
}