/* ============================================================
   HERO.CSS — Hero-sectie stijlen
   ============================================================ */

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg);
}

/* Fallback-patroon als er geen achtergrondafbeelding is */
.hero--no-image {
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255, 90, 31, 0.03) 40px,
            rgba(255, 90, 31, 0.03) 80px
        );
}

/* Gradient overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.65) 55%,
        rgba(10, 10, 10, 0.25) 100%
    );
    z-index: 0;
}

/* Oranje glow-streep linksonder */
.hero__overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* Inhoud */
.hero__content {
    position: relative;
    z-index: 1;
    padding-block: var(--space-2xl);
    max-width: 800px;
}

/* Eyebrow */
.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: hero-fade-up 0.8s var(--ease-out-expo) 0.1s forwards;
}

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

/* Titel */
.hero__title {
    font-family: var(--font-primary);
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: hero-fade-up 0.8s var(--ease-out-expo) 0.25s forwards;
}

/* Accentwoord via <em> */
.hero__title em {
    font-style: normal;
    color: var(--color-accent);
}

/* Subtitel */
.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 520px;
    line-height: 1.5;
    opacity: 0;
    animation: hero-fade-up 0.8s var(--ease-out-expo) 0.4s forwards;
}

/* CTA-knop */
.hero__cta {
    opacity: 0;
    animation: hero-fade-up 0.8s var(--ease-out-expo) 0.55s forwards;
}

/* Scroll-indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: hero-fade-up 0.8s var(--ease-out-expo) 1s forwards;
}

.scroll-arrow {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
    animation: scroll-bounce 1.4s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   Subpagina-hero (kleiner)
---------------------------------------------------------------- */
.hero--page {
    min-height: 45vh;
}

.hero--page .hero__title {
    font-size: clamp(2.5rem, 7vw, 6rem);
}

/* ----------------------------------------------------------------
   Hero voor 404
---------------------------------------------------------------- */
.hero--404 .hero__title {
    font-size: clamp(5rem, 20vw, 16rem);
    color: var(--color-surface-2);
    line-height: 1;
}

.hero--404 .hero__subtitle {
    font-size: 1.5rem;
    color: var(--color-text);
}

/* ----------------------------------------------------------------
   Animaties
---------------------------------------------------------------- */
@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-bounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50%       { transform: rotate(45deg) translate(4px, 4px); }
}

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        align-items: flex-end;
        padding-bottom: var(--space-xl);
    }

    .hero__content {
        padding-block: var(--space-xl) var(--space-md);
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__scroll-indicator {
        display: none;
    }
}
