/* =========================================================
   SHARED PAGE HERO
   ========================================================= */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: clamp(2.25rem, 6vw, 4.75rem) clamp(1.25rem, 5vw, 4rem);
    text-align: center;
    color: var(--text-on-dark);
    background:
        linear-gradient(120deg, transparent 0 16%, rgba(255, 255, 255, 0.035) 16% 18%, transparent 18% 34%, rgba(255, 255, 255, 0.03) 34% 36%, transparent 36%),
        linear-gradient(135deg, var(--shirt-primary-deep), var(--shirt-primary-dark));
    border: 4px solid var(--energy-yellow);
    box-shadow: var(--shadow-strong);
    clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}

.page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.18;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent 0 22px,
            rgba(247, 210, 62, 0.22) 22px 24px,
            transparent 24px 44px
        );
    transform: scale(1.12);
}

.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -8%;
    bottom: -52px;
    width: 42%;
    min-width: 260px;
    height: 120px;
    background: rgba(235, 123, 42, 0.13);
    clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
    transform: rotate(-5deg);
}

.page-hero h1,
.page-hero h2,
.page-hero p {
    position: relative;
    z-index: 1;
    color: var(--text-on-dark);
}

.page-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4.35rem);
    line-height: 0.98;
    text-wrap: balance;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.36);
}

.page-hero p,
.page-hero__subtitle {
    max-width: 780px;
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 650;
    line-height: 1.5;
    text-wrap: balance;
}

.page-hero a {
    color: var(--energy-yellow);
}

.page-hero > img:not(.header-logo) {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

.page-home .page-hero > img:not(.header-logo) {
    max-height: 190px;
}
