/**
 * Hero Banner Layout Styles
 */

.hero-banner {
    position: relative;
    padding: var(--section-padding-large) 0;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-banner--small {
    padding-top: var(--section-padding-desktop);
    padding-bottom: var(--section-padding-desktop);
}

/* Video background */
.hero-banner__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* YouTube background */
.hero-banner__youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-banner__youtube iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Overlay met gradient */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(122, 96, 71, 0.40) 0%, rgba(122, 96, 71, 0.40) 100%);
    z-index: 1;
}

/* Geen overlay als er geen media is */
.hero-banner--no-overlay::before {
    background: none;
}

/* Gecentreerde content */
.hero-banner--centered .hero-banner__inner {
    align-items: center;
    text-align: center;
}

.hero-banner--centered .hero-banner__content {
    align-items: center;
}

.hero-banner--centered .hero-banner__button {
    align-self: center;
}

.hero-banner__overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-banner__inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    width: min(calc(100% - (var(--section-padding-x) * 2)), var(--container-narrow));
    margin-left: auto;
    margin-right: auto;
}

.hero-banner__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hero-banner__subtitle {
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    line-height: var(--line-height-normal);
    letter-spacing: 1.28px;
    margin: 0;
}

.hero-banner__main-content {
    color: var(--color-white);
}

.hero-banner__main-content h1,
.hero-banner__main-content h2,
.hero-banner__main-content h3 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.15;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--color-white);
}

.hero-banner__main-content h1 {
    font-size: clamp(40px, 5vw, 65px);
}

.hero-banner__main-content h2 {
    font-size: clamp(32px, 4vw, 48px);
}

.hero-banner__main-content p {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin: 0 0 var(--spacing-md) 0;
}

.hero-banner__main-content p:last-child {
    margin-bottom: 0;
}

.hero-banner__button {
    align-self: flex-start;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .hero-banner {
        padding-top: var(--section-padding-mobile);
        padding-bottom: var(--section-padding-mobile);
    }
    
    .hero-banner--small {
        padding-top: calc(var(--section-padding-mobile) * 0.75);
        padding-bottom: calc(var(--section-padding-mobile) * 0.75);
    }
}
