/* Auto Glass World - Page Hero (modules/pages/page_hero.php): the Hero look, no form, text centred. */
.agw-page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    overflow: hidden;
    min-height: clamp(480px, 62svh, 720px);
    padding-top: 90px; /* the header sits over the top */
    background: var(--agw-color-navy);
    color: var(--agw-color-paper);
}

.agw-page-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.agw-page-hero-media picture {
    display: contents;
}

.agw-page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Centred text runs over the middle of the photo: an even navy shade, darker at the top for the header. */
.agw-page-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(11, 30, 61, 0.55) 0%, rgba(11, 30, 61, 0) 22%),
        rgba(11, 30, 61, 0.72);
}

.agw-page-hero-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--agw-space-head);
    padding-bottom: var(--agw-space-section);
    text-align: center;
}

.agw-page-hero-eyebrow {
    justify-content: center;
    margin-bottom: var(--agw-label-gap);
    color: var(--agw-color-paper); /* full paper: small text over a photo */
}

.agw-page-hero .agw-page-hero-title {
    max-width: 16ch;
    margin: 0;
    color: var(--agw-color-paper);
    line-height: 0.92;
    text-wrap: balance;
}

.agw-page-hero-title em {
    font-style: italic;
}

.agw-page-hero-text {
    max-width: 620px;
    margin: clamp(20px, 2.4vw, 32px) 0 0;
    color: var(--agw-film-muted);
    font-size: var(--agw-fs-lead);
    line-height: 1.53;
}

.agw-page-hero-note {
    margin: 24px 0 0;
    color: var(--agw-color-sky);
    font-family: var(--agw-font-mono);
    font-size: var(--agw-fs-label);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (max-width: 1199px) {
    .agw-page-hero {
        padding-top: 80px;
    }
}

@media (max-width: 991px) {
    .agw-page-hero {
        min-height: clamp(420px, 70svh, 560px);
    }

    .agw-page-hero-scrim {
        background: rgba(11, 30, 61, 0.78);
    }
}
