/*---*\
    Inner Page Masthead

    Title + breadcrumb hero strip for inner pages (not homepage).
    Green base with dark overlay; min-height and padding scale per breakpoint.

    KEY FEATURES:
    - ::before overlay (40% black) for text contrast over background photo.
    - padding uses var(--section-margins) offsets; 1200px+ adds header clearance.

    IMPLEMENTATION NOTES:
    - Deps: custom-properties.css, bootstrap .container-fluid.
    - Breadcrumb colour overrides only; markup/styles live in global.css.
    - Figma and field details: docs/specs/bedrockenvironmental-specs.md
\*---*/


.masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 220px;
    padding-top: calc(var(--section-margins) - 10px);
    padding-bottom: calc(var(--section-margins) - 10px);
    background-color: var(--bg-green);
    color: var(--color-white);
}

.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.masthead__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masthead .container-fluid {
    position: relative;
    z-index: 2;
}


.masthead__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.masthead__inner h1,
.masthead__inner .h1 {
    color: var(--color-white);
    margin-bottom: 0;
}

.masthead__intro {
    margin: 0;
    max-width: 800px;
    color: inherit;
}


/* Breadcrumb colour overrides; base styles in global.css. */
.masthead .breadcrumbs {
    justify-content: center;
    color: var(--color-primary-inverse);
}

.masthead .breadcrumbs a:hover {
    color: inherit;
}

@media (min-width: 768px) {

    .masthead {
        min-height: 320px;
    }
}

@media (min-width: 1200px) {

    .masthead__inner h1,
    .masthead__inner .h1  {
        --font-size-h1: 60px;
        font-size: var(--font-size-h1);
    }

    .masthead {
        min-height: 430px;
        padding-top: calc(var(--section-margins) + 80px);
        padding-bottom: calc(var(--section-margins) - 30px);
    }

}


@media (prefers-reduced-motion: reduce) {

    .masthead,
    .masthead__bg,
    .masthead::before {
        transition: none;
        animation: none;
    }

}
