/**
 * Bondgenoot — components/hero.css
 * /assets/css/components/hero.css
 * Cluster D — Pakket D1 — Fase F067: Hero-section landschap
 *
 * Full-bleed hero (100vh) met 3-laags parallax + headline-overlay.
 * Tokens uit /assets/css/tokens.css.
 *
 * Reduced-motion + mobile (<= 720px) → parallax disabled (alle layers static).
 */

.lp-hero {
    position: relative;
    min-height: 100vh;
    /* iOS-safe: voorkom scroll-overshoot witvlak */
    background-color: var(--bg-deep);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ruimte voor de header bovenaan (outgame-header is sticky niet, maar
       we willen dat de headline niet direct onder de header begint) */
    padding: var(--space-9) var(--space-5) var(--space-7);
    isolation: isolate; /* eigen stacking context */
}

/* ============ Parallax layers ============ */

.lp-hero-parallax {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.lp-hero-layer {
    position: absolute;
    inset: -10% 0 -10% 0; /* iets extra ruimte voor parallax-shift */
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

.lp-hero-layer-1 { z-index: 1; opacity: 1.0; }
.lp-hero-layer-2 { z-index: 2; opacity: 0.95; }
.lp-hero-layer-3 { z-index: 3; opacity: 0.95; }

/* F205: perkament-texture-overlay (HANDBOEK 1.3 — donker hero met
   perkament-overlay). Token-gedreven gradient-laag (geen HTTP-asset),
   ligt ONDER de donkere contrast-overlay zodat AA-tekstcontrast intact
   blijft. multiply-blend geeft warme perkament-waas over de illustratie. */
.lp-hero-parchment {
    position: absolute;
    inset: 0;
    z-index: 3;
    mix-blend-mode: multiply;
    opacity: 0.45;
    background:
        radial-gradient(ellipse 45% 35% at 22% 28%, var(--parchment-stain-dark), transparent 70%),
        radial-gradient(ellipse 35% 25% at 78% 72%, var(--parchment-stain), transparent 70%),
        linear-gradient(135deg,
            rgba(140, 103, 34, 0.22) 0%,
            rgba(110, 75, 35, 0.10) 50%,
            rgba(140, 103, 34, 0.22) 100%);
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .lp-hero-parchment { opacity: 0.38; }
}

/* Dark overlay voor headline-contrast (WCAG AA 4.5:1) */
.lp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%,
            rgba(26, 14, 6, 0.20) 0%,
            rgba(26, 14, 6, 0.55) 70%,
            rgba(15, 7, 3, 0.75) 100%);
}

/* ============ Hero content ============ */

.lp-hero-inner {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 800px;
    width: 100%;
    color: var(--text-on-dark);
}

.lp-hero-headline {
    font-family: var(--font-display, 'Cinzel', Georgia, serif);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin: 0 0 var(--space-4);
    color: var(--text-on-dark);
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.6),
        0 4px 24px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.02em;
}

.lp-hero-headline-accent {
    color: var(--gold-bright);
    background: linear-gradient(180deg,
        var(--gold-pale) 0%,
        var(--gold-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* fallback for browsers that don't honor background-clip:text */
    text-shadow: none;
}

.lp-hero-subline {
    font-family: var(--font-content, 'Lora', Georgia, serif);
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.5;
    color: var(--text-on-dark-muted);
    margin: 0 0 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ============ CTAs ============ */

.lp-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-8);
}

.lp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--font-body, 'Manrope', system-ui);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.15s ease,
                box-shadow 0.2s ease,
                background 0.2s ease,
                filter 0.2s ease;
    position: relative;
    cursor: pointer;
}

.lp-hero-cta-primary {
    background: linear-gradient(180deg,
        var(--gold-bright) 0%,
        var(--gold) 100%);
    color: var(--bg-deepest);
    border: 1px solid var(--gold-deep);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 180, 0.55),
        inset 0 -1px 0 rgba(60, 35, 5, 0.4),
        0 4px 14px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 0 rgba(255, 230, 180, 0.5);
}

.lp-hero-cta-primary:hover {
    background: linear-gradient(180deg,
        var(--gold-pale) 0%,
        var(--gold-bright) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 180, 0.7),
        0 6px 20px rgba(212, 166, 86, 0.45);
    transform: translateY(-1px);
}

.lp-hero-cta-primary:active {
    transform: translateY(1px);
    filter: brightness(0.95);
}

.lp-hero-cta-arrow {
    transition: transform 0.2s ease;
}

.lp-hero-cta-primary:hover .lp-hero-cta-arrow {
    transform: translateX(4px);
}

.lp-hero-cta-secondary {
    background: rgba(26, 14, 6, 0.4);
    color: var(--gold-bright);
    border: 1px solid var(--gold);
    box-shadow:
        inset 0 0 0 1px rgba(255, 230, 180, 0.10),
        0 2px 8px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lp-hero-cta-secondary:hover {
    background: rgba(184, 137, 61, 0.18);
    color: var(--gold-pale);
    border-color: var(--gold-pale);
}

/* ============ Scroll-indicator ============ */

.lp-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-on-dark-muted);
    font-family: var(--font-body, 'Manrope');
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease, color 0.2s ease;
    animation: lp-hero-bob 2.4s ease-in-out infinite;
}

/* FIX-014: scroll-indicator alleen tonen op viewports die hoog genoeg zijn
   om 'm onder de CTA-row te plaatsen zonder visuele overlap. Op kortere
   schermen (laptops, landscape mobile, browsers met devtools open) viel
   "Lees verder" letterlijk over de "Bekijk werelden"-knop heen. */
/* FIX-015 D: vorige media-query (max-height:760px) was te krap — Stef
   zag op een 1080p-laptop met bookmark-bar de overlap nog steeds. We
   verhogen de drempel naar 880px en verbergen óók in landscape-orientatie
   waar viewport-height typisch <600px is. De hero-CTA's communiceren
   scroll-intent voldoende via "→" en "Bekijk werelden". */
@media (max-height: 880px), (orientation: landscape) and (max-height: 720px) {
    .lp-hero-scroll {
        display: none;
    }
}

.lp-hero-scroll:hover {
    color: var(--gold-bright);
}

.lp-hero-scroll-arrow {
    font-size: 1.25rem;
}

@keyframes lp-hero-bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, -6px); }
}

/* JS toggle: fade scroll-indicator weg na 100px scroll */
.lp-hero-scroll[data-faded="true"] {
    opacity: 0;
    pointer-events: none;
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
    .lp-hero-scroll {
        animation: none;
    }
    .lp-hero-cta,
    .lp-hero-cta-arrow {
        transition: none;
    }
    .lp-hero-layer {
        /* Geen wiggle, statische illustratie */
        transform: none !important;
    }
}

/* ============ Mobile ============ */

@media (max-width: 720px) {
    .lp-hero {
        padding: 80px var(--space-4) var(--space-6);
        min-height: 90vh;
    }
    .lp-hero-cta {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .lp-hero-cta-row {
        flex-direction: column;
        gap: var(--space-3);
        margin-bottom: 40px;
    }
    /* Op mobile: parallax-overhead niet waard, layers static */
    .lp-hero-layer {
        transform: none !important;
    }
}
