/*
 * Hero Section — Front-end stijlen
 * Wordt geladen op de front-end én in de editor (via style handle).
 */

.acf-block-hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 400px;
}

.acf-block-hero-section .hero-section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Donkere overlay via ::before pseudo-element op de wrapper.
   Wordt alleen getoond wanneer de ACF 'hero_overlay_actief' true is,
   wat de class 'has-overlay' op de wrapper toevoegt. */
.acf-block-hero-section.has-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

.acf-block-hero-section .hero-section__content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: #ffffff;
}

.acf-block-hero-section .hero-section__heading {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.acf-block-hero-section .hero-section__text {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.acf-block-hero-section .hero-section__cta {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1a1a1a;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.acf-block-hero-section .hero-section__cta:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Full-width variatie */
.acf-block-hero-section.is-full-width {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.hero-section__content {
    display: flex;
    flex-direction: column;
}
