/* ==========================================================================
   Careers Hero ([careers_hero])
   ========================================================================== */

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

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

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

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

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

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

.et_pb_row:has(.careers-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(.careers-hero--fullbleed),
.et_pb_module:has(.careers-hero--fullbleed),
.et_pb_code:has(.careers-hero--fullbleed),
.et_pb_code_inner:has(> .careers-hero--fullbleed) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* ---------- Background image + overlay ---------- */

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

.careers-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);
}

.careers-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 ---------- */

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

.careers-hero__container {
    padding: 64px 0 88px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    min-height: 456px;
}

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

.careers-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);
}

.careers-hero p.careers-hero__big-label,
.careers-hero .careers-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 ---------- */

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

.careers-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;
}

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

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

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

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

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

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

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

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

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