/**
 * hero.css — Homepage hero section
 *
 * Custom .am-hero styles matching the mockup design.
 * OceanWP page-header is suppressed via ocean_display_page_header filter.
 */

/* ── Hero wrapper ── */
.am-hero {
    background: linear-gradient(135deg, #0A0A0A 0%, #0F0D08 50%, #0A0A0A 100%);
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* ── YouTube video background ── */
.am-hero__video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.am-hero__video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover trick: always fill container regardless of aspect ratio */
    width: 100vw;
    height: 56.25vw; /* 100vw * 9/16 */
    min-height: 100%;
    min-width: 177.78vh; /* 100vh * 16/9 */
    transform: translate(-50%, -50%);
    border: 0;
}

/* Dark overlay on top of the video — opacity set via Customizer (wp_add_inline_style) */
.am-hero__video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55); /* fallback, overridden by inline style */
    z-index: 1;
}

/* ── Left-side vignette — tekst altijd leesbaar ongeacht video ── */
.am-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg,
        rgba(0, 0, 0, 0.60) 0%,
        rgba(0, 0, 0, 0.30) 42%,
        transparent 68%);
    z-index: 0;
    pointer-events: none;
}

/* Subtle grain noise texture */
.am-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

.am-hero .am-container {
    position: relative;
    z-index: 1;
}

/* ── Eyebrow — verborgen (dubbel met tagline eronder) ── */
.am-hero__eyebrow {
    display: none;
}

/* ── Eyebrow (hidden rule retained for reference) ── */
.am-hero__eyebrow--show {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.am-hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

/* ── Headline ── */
.am-hero__title {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 600;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
    max-width: 760px;
    margin-bottom: 28px;
    margin-top: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ── Sub ── */
.am-hero__sub {
    font-size: 16px;
    color: rgba(230, 226, 220, 1);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 48px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ── Buttons — subtler sizing in hero context ── */
.am-hero__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.am-hero__buttons .am-btn--gold {
    padding: 10px 22px;
    font-size: 10px;
}

.am-hero__buttons .am-btn--ghost {
    padding: 9px 22px;
    font-size: 10px;
}

/* ── Stats bar ── */
.am-hero__stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.am-stat__num {
    display: block;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}

.am-stat__label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Suppress OceanWP page header ── */
.page-header,
#page-header-wrap,
.page-header-bg,
#page-header {
    display: none !important;
}

/* ================================================================
   MOBILE — portrait phones (≤ 767px)
   ================================================================ */
@media (max-width: 767px) {

    /* Shorter hero — less empty space above/below content */
    .am-hero {
        min-height: 100svh;
        min-height: 100vh;
        padding: 0;
        align-items: center;
        padding-bottom: 10vh; /* licht naar beneden gewogen centrum */
    }

    /*
     * Fix letterboxing:
     * When min-width:177.78vh drives the iframe width, the corresponding
     * 16:9 height = 177.78 * 9/16 * vh = 100vh.
     * Overriding min-height to 100vh prevents YouTube from padding with black bars.
     */
    .am-hero__video-bg iframe {
        height: 100vh;
        min-height: 100vh;
    }

    /* Centered content */
    .am-hero .am-container {
        text-align: center;
    }

    .am-hero__title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 14px;
    }

    /* Subtler subtext */
    .am-hero__sub {
        color: rgba(200, 196, 190, 0.70) !important;
        font-size: 19px !important;
        margin-bottom: 28px;
        max-width: 100%;
    }

    /* Stack buttons full-width */
    .am-hero__buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 32px;
    }

    .am-hero__buttons .am-btn--gold,
    .am-hero__buttons .am-btn--ghost {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 11px;
        padding: 12px 20px;
    }

    /* Stats hidden on mobile */
    .am-hero__stats {
        display: none;
    }
}
