/* ==========================================================================
   Homepage Hero ([homepage_hero])
   ========================================================================== */

.homepage-hero {
    position: relative;
    background: #1a1a1d;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
}

.homepage-hero *,
.homepage-hero *::before,
.homepage-hero *::after {
    box-sizing: border-box;
}

.homepage-hero h1,
.homepage-hero h2,
.homepage-hero h3,
.homepage-hero h4,
.homepage-hero h5,
.homepage-hero h6 {
    font-family: 'Montserrat', sans-serif !important;
}

.homepage-hero p,
.homepage-hero h1,
.homepage-hero ul,
.homepage-hero li {
    padding: 0;
    margin: 0;
}

/* Full-bleed: break out of any constrained parent (Divi row, etc.) so the
   video background spans 100vw, while .homepage-hero__inner centers content. */
.homepage-hero--fullbleed {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* When wrapped by Divi (et_pb_section > et_pb_row > et_pb_column > et_pb_code),
   each layer adds its own top padding and a constrained max-width. Strip those
   only for the wrappers that contain this hero so the video can sit flush
   against the header without touching unrelated sections. */
.et_pb_section:has(> .et_pb_row > .et_pb_column > .et_pb_module > .et_pb_code_inner > .homepage-hero--fullbleed),
.et_pb_section:has(.homepage-hero--fullbleed) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

.et_pb_row:has(.homepage-hero--fullbleed) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.et_pb_column:has(.homepage-hero--fullbleed),
.et_pb_module:has(.homepage-hero--fullbleed),
.et_pb_code:has(.homepage-hero--fullbleed),
.et_pb_code_inner:has(> .homepage-hero--fullbleed) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* ---------- Background video + overlay ---------- */

.homepage-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.homepage-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 100%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 14px);
}

.homepage-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../images/low-poly-orange-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* ---------- Layout ---------- */

.homepage-hero__inner {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1208px;
    margin: 0 auto;
    padding: 0;
}

.homepage-hero__container {
    padding: 64px 0 88px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---------- Top: big label ---------- */

.homepage-hero__top {
    padding-left: 0;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
    transform: translateX(8px);
}

.homepage-hero p.homepage-hero__big-label,
.homepage-hero .homepage-hero__big-label {
    font-size: clamp(18px, 2.6vw, 29px) !important;
    font-weight: 400 !important;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}

/* ---------- Middle: headline + lede ---------- */

.homepage-hero__middle {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: end;
}

.homepage-hero__headline {
    font-size: clamp(36px, 8.5vw, 84px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 24px 0;
}

.homepage-hero__headline-line {
    display: block;
}

.homepage-hero__headline-line--accent {
    color: #f26622;
}

.homepage-hero p.homepage-hero__lede {
    max-width: 360px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    border-left: 2px solid #f26622;
    padding: 6px 0 6px 20px !important;
    margin-left: 8px;
    text-indent: 0;
}

/* ---------- Stats row ---------- */

.homepage-hero__stats {
    list-style: none;
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 0;
    row-gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px !important;
}

.homepage-hero__stat::before,
.homepage-hero__stat::marker {
    content: none;
    display: none;
}

.homepage-hero__stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.homepage-hero__stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.homepage-hero__stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.homepage-hero__stat-unit {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin-left: 4px;
    text-transform: uppercase;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .homepage-hero {
        min-height: 600px;
    }

    .homepage-hero__container {
        padding: 56px 0;
        gap: 48px;
        min-height: 600px;
    }

    .homepage-hero__top {
        padding-left: 0;
    }

    .homepage-hero__middle {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }

    .homepage-hero__lede {
        max-width: 520px;
    }

    .homepage-hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }
}

@media (max-width: 480px) {
    .homepage-hero {
        min-height: 520px;
    }

    .homepage-hero__container {
        padding: 40px 0;
        gap: 32px;
        min-height: 520px;
    }

    .homepage-hero__stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-hero__video {
        display: none;
    }
}
