/* hero.css – Hero sections */

/* ══════════════════════════════════════════════
   HERO SECTIONS
   ══════════════════════════════════════════════ */

/* Full-Width Hero */
.hero {
    position: relative;
    width: 100%;
    height: var(--hero-height-desktop);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg img,
.hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    color: var(--color-text-on-dark);
    max-width: 800px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.hero__content .overline {
    margin-bottom: var(--space-3);
}

.hero__content h1 {
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-4);
}

.hero__content p {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Half-height hero variant */
.hero--half {
    height: 50vh;
    min-height: 360px;
}

@media (max-width: 1199px) {
    .hero {
        height: var(--hero-height-tablet);
    }
}

@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: var(--hero-height-mobile);
        align-items: flex-start;
        padding-top: calc(var(--nav-height) + 1.5rem);
        padding-bottom: 1.5rem;
    }

    .hero__content {
        padding: 1.5rem;
        border-radius: var(--radius-md);
        width: calc(100% - 2rem);
        max-width: 100%;
    }

    .hero__content p {
        font-size: var(--text-body);
    }
}

/* Split Hero */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.hero-split__image {
    overflow: hidden;
}

.hero-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-8);
    background: var(--color-bg);
}

.hero-split__content h1 {
    margin-bottom: var(--space-4);
}

.hero-split__content p {
    margin-bottom: var(--space-5);
    color: var(--color-text-secondary);
}

@media (max-width: 767px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-split__image {
        height: 300px;
    }

    .hero-split__content {
        padding: var(--space-6) var(--container-padding);
    }
}

/* Simple Hero (inner pages) */
.hero-simple {
    padding: calc(var(--nav-height) + var(--space-8)) 0 var(--space-8);
    text-align: center;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
}

.hero-simple .overline {
    margin-bottom: var(--space-2);
}

.hero-simple h1 {
    margin-bottom: var(--space-3);
}

.hero-simple p {
    color: var(--color-text-secondary);
    margin: 0 auto;
    max-width: 560px;
}
