/* Gray Audio — paginahero */

.gx-phero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: clip;
    isolation: isolate;
    background: var(--gx-navy-900);
}

.gx-phero--tall {
    min-height: max(600px, calc(88svh - var(--gx-admin-bar)));
}

.gx-phero--medium {
    min-height: max(540px, calc(70svh - var(--gx-admin-bar)));
}

.gx-phero--compact {
    min-height: 460px;
}

/* ── Beeld & video ──────────────────────────────────────────────── */

.gx-phero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    transform-origin: 50% 35%;
    will-change: transform;
}

/* Dubbele klasse: Elementor zet .elementor img { height: auto }, dat mag hier niet winnen. */
.gx-phero .gx-phero__poster,
.gx-phero .gx-phero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--gx-hero-focus, 50% 50%);
}

.gx-phero__video {
    opacity: 0;
    transition: opacity 900ms var(--gx-ease);
}

.gx-phero__video.is-playing {
    opacity: 1;
}

.gx-motion .gx-phero__poster {
    animation: gx-phero-settle 1800ms var(--gx-ease) both;
}

@keyframes gx-phero-settle {
    from { transform: scale(1.06); filter: brightness(0.6); }
    to { transform: none; filter: none; }
}

.gx-phero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(14, 14, 15, 0.95) 0%, rgba(14, 14, 15, 0.7) 34%, rgba(14, 14, 15, 0.2) 68%, rgba(14, 14, 15, 0.5) 100%),
        linear-gradient(90deg, rgba(14, 14, 15, 0.7) 0%, rgba(14, 14, 15, 0) 64%);
    pointer-events: none;
}

/* ── Typografische variant ──────────────────────────────────────── */

.gx-phero__field {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(80% 60% at 85% 20%, rgba(106, 109, 114, 0.22), transparent 70%),
        linear-gradient(180deg, var(--gx-navy) 0%, var(--gx-navy-900) 100%);
    pointer-events: none;
}

/* Fijn raster als op meetpapier: technisch, niet decoratief druk. */
/* De golf staat rechts van de tekst en vervaagt naar links, zodat titel en
   inleiding altijd op een rustige ondergrond staan. */
.gx-phero__waves {
    position: absolute;
    left: 42%;
    top: 26%;
    width: 58%;
    height: 48%;
    overflow: visible;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.gx-phero__wave {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}

.gx-phero__wave--a {
    stroke: var(--gx-yellow);
    stroke-width: 1.5;
    opacity: 0.75;
}

.gx-phero__wave--b {
    stroke: var(--gx-slate-300);
    stroke-width: 1;
    opacity: 0.3;
}

.gx-motion .gx-phero__wave {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: gx-phero-draw 2600ms var(--gx-ease) 300ms forwards;
}

.gx-motion .gx-phero__wave--b {
    animation-delay: 600ms;
}

@keyframes gx-phero-draw {
    to { stroke-dashoffset: 0; }
}

/* ── Inhoud ─────────────────────────────────────────────────────── */

.gx-phero__inner {
    padding-top: calc(var(--gx-header-h) + var(--gx-admin-bar) + 96px);
    padding-bottom: clamp(48px, 6vw, 88px);
}

.gx-phero__content {
    display: grid;
    justify-items: start;
    max-width: 900px;
    will-change: transform, opacity;
}

.gx-phero__crumbs {
    margin-bottom: 26px;
}

.gx-phero__eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.gx-phero__title {
    font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5.5rem);
    line-height: 0.99;
    letter-spacing: -0.035em;
}

.gx-phero__title em {
    color: var(--gx-yellow);
}

.gx-phero__text {
    margin-top: 26px;
    max-width: 36em;
    color: rgba(255, 255, 255, 0.84);
}

.gx-phero__actions {
    margin-top: 34px;
}

/* ── Onderbalk met kerngegevens ─────────────────────────────────── */

.gx-phero__bar {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gx-phero__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.gx-phero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px clamp(28px, 5vw, 72px);
    margin: 0;
    padding-block: 18px;
}

.gx-phero__facts div {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
}

.gx-phero__facts dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gx-slate-300);
}

.gx-phero__facts dd {
    margin: 0;
    font-family: var(--gx-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gx-white);
}

.gx-phero__toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--gx-white);
    cursor: pointer;
    transition: border-color var(--gx-fast) var(--gx-ease), background-color var(--gx-fast) var(--gx-ease);
}

.gx-phero__toggle[hidden] {
    display: none;
}

.gx-phero__toggle:hover {
    border-color: var(--gx-white);
    background: rgba(255, 255, 255, 0.06);
}

.gx-phero__toggle .gx-icon {
    width: 16px;
    height: 16px;
}

.gx-phero__toggle-play,
.gx-phero__toggle[aria-pressed="true"] .gx-phero__toggle-pause {
    display: none;
}

.gx-phero__toggle[aria-pressed="true"] .gx-phero__toggle-play {
    display: inline-flex;
}

.gx-phero__toggle .gx-icon--play {
    fill: currentColor;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .gx-phero--tall,
    .gx-phero--medium {
        min-height: max(560px, calc(86svh - var(--gx-admin-bar)));
    }

    .gx-phero--compact {
        min-height: 440px;
    }

    .gx-phero__inner {
        padding-top: calc(var(--gx-header-h) + var(--gx-admin-bar) + 56px);
    }

    .gx-phero__shade {
        background: linear-gradient(0deg, rgba(14, 14, 15, 0.97) 0%, rgba(14, 14, 15, 0.82) 46%, rgba(14, 14, 15, 0.3) 76%, rgba(14, 14, 15, 0.55) 100%);
    }

    .gx-phero__text {
        margin-top: 20px;
        font-size: 1rem;
    }

    .gx-phero__actions {
        width: 100%;
        margin-top: 28px;
    }

    .gx-phero__actions .gx-btn {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .gx-phero__facts dd {
        font-size: 1.25rem;
    }

    .gx-phero__waves {
        left: 0;
        top: calc(var(--gx-header-h) + 12px);
        width: 100%;
        height: 72px;
        opacity: 0.55;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
    }
}

/* ── Hero met formulier ─────────────────────────────────────────── */

.gx-phero--with-form {
    min-height: 0;
}

.gx-phero--with-form .gx-phero__title {
    font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.5rem);
}

.gx-phero__form.gx-form__card {
    grid-column: auto;
    scroll-margin-top: calc(var(--gx-header-h) + var(--gx-admin-bar) + 16px);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}

.gx-phero__form .gx-form__title {
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem);
}

@media (min-width: 1024px) {
    .gx-phero--with-form .gx-phero__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
        gap: clamp(40px, 5vw, 88px);
        align-items: center;
        padding-top: calc(var(--gx-header-h) + var(--gx-admin-bar) + 104px);
    }

    .gx-phero--with-form .gx-phero__content {
        max-width: 620px;
    }
}

/* Mobiel en tablet: het formulier staat direct onder de titel. */
@media (max-width: 1023px) {
    .gx-phero--with-form .gx-phero__inner {
        display: flex;
        flex-direction: column;
    }

    .gx-phero--with-form .gx-phero__content {
        display: contents;
    }

    .gx-phero--with-form .gx-phero__crumbs,
    .gx-phero--with-form .gx-phero__eyebrow,
    .gx-phero--with-form .gx-phero__title {
        order: 1;
    }

    .gx-phero--with-form .gx-phero__crumbs,
    .gx-phero--with-form .gx-phero__eyebrow {
        align-self: flex-start;
    }

    .gx-phero--with-form .gx-phero__form {
        order: 2;
        margin-top: 28px;
    }

    .gx-phero--with-form .gx-phero__text {
        order: 3;
        margin-top: 32px;
    }

    .gx-phero--with-form .gx-phero__actions {
        order: 4;
    }
}

@media (max-width: 559px) {
    .gx-phero__form.gx-form__card {
        margin-inline: calc(-1 * var(--gx-gutter) + 8px);
        padding: 24px 20px;
    }
}
