/* Page hero container */
.page-hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 3rem 1.5rem;
    height: auto;
}

@media (max-width: 767px) {
    
}

@media (min-width: 768px) {
    .page-hero {
        padding: 4rem 2rem;
    }
}

@media (min-width: 1024px) {
    .page-hero {
        padding: 5rem 2rem;
        min-height: 500px;
    }
}

@media (min-width: 1440px) {
    
}

/* Image container */
.page-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* overlay on image container */
.page-hero__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgb(from #09213f r g b / 30%); */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Video  */
.page-hero__video {
    width: 100%;
    height: 100%;
}

.page-hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image */
.page-hero__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.page-hero__content {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.page-hero__content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 0;
    text-align: center;
}

.page-hero__content .page-hero__heading-wrapper {
    position: relative;
    overflow: visible;
}

/* STACKED / LAYERED HEADING (DECORATIVE) */
.page-hero__content .stacked-heading {
    position: relative;
    display: inline-block;
    line-height: 1;
    padding-block: clamp(1rem, 3vw, 2rem);
}

/* Background layer (stencil h1) */
.page-hero__content .stacked-heading__back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 1; /* Behind foreground */
    font-size: clamp(4rem, 12vw, 9rem);  /* larger than h1 standard size */
    letter-spacing: .4rem;
    /* Stencil effect */
    /* color: rgba(0, 0, 0, 0); */
    /* text-shadow: -1px 0 0px #EC1C24, 0 1px 0px #EC1C24, 1px 0 0px #EC1C24, 0 -1px 0px #EC1C24, -1px 1px 0px #EC1C24, 1px -1px 0px #EC1C24, 1px 1px 0px #EC1C24, -1px -1px 0px #EC1C24; */
    /* Makes the text fill transparent */
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #EC1C24;
    text-shadow: 0 2px 2px rgba(0,0,0,0.25);
}

/* Firefox fallback */
@supports not (-webkit-text-stroke: 2px red) {
  .page-hero__content .stacked-heading__back {
    /* color: rgba(255,255,255,0.12);
    -webkit-text-fill-color: rgba(255,255,255,0.12); */
    color: ;
    color: #EC1C24;
    /* -webkit-text-fill-color: ; */
    -webkit-text-fill-color: #EC1C24;
    text-shadow: 0 2px 3px rgba(0,0,0,0.35); /* soft lift */
  }
}

/* Foreground layer (white h2) */
.page-hero__content .stacked-heading__front {
    position: relative;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45);
    white-space: nowrap;
    z-index: 2;
    text-transform: uppercase;
}

/* Standard heading (stencil h1) */
.page-hero__content .page-hero__heading {
    color: #fff;
    margin: 0;
}

.page-hero__body-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
}

.page-hero__content .body-text * {
    color: #fff;
    margin: 0;
}

.page-hero__content .body-text * + * {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .page-hero__content-wrapper {
        /* max-width: 70%; */
    }
}

@media (min-width: 1024px) {
    .page-hero__body-wrapper {
        gap: 2rem;
    }

    .page-hero__content-wrapper {
        max-width: 66%;
    }
}