/**
 * Hero Component Styles
 */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero--page {
    min-height: 70vh;
}

.hero--short {
    min-height: 50vh;
}

.hero--minimal {
    min-height: 30vh;
}

.hero--minimal .hero-content {
    padding: var(--space-3xl) 0;
}

/* Hero Media (Video/Image Background) */
.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: var(--color-bg-primary, #0a0f0a);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

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

/* Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 10, 0.4) 0%,
        rgba(10, 15, 10, 0.6) 50%,
        rgba(10, 15, 10, 0.9) 100%
    );
}

.hero--page .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 15, 10, 0.5) 0%,
        rgba(10, 15, 10, 0.7) 50%,
        rgba(10, 15, 10, 0.85) 100%
    );
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-5xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    max-width: 100%;
}

/* Tagline */
.hero-tagline {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.1em;
}

/* Headline */
.hero-headline {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-headline em,
.hero-headline strong {
    color: var(--color-gold);
    font-style: normal;
}

/* Subheadline */
.hero-subheadline {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

/* CTAs */
.hero-ctas {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 0;
    right: 0;
    width: fit-content;
    margin: 0 auto;
    z-index: 2;
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: var(--space-sm) auto 0;
    border-right: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(10px);
    }
    60% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        min-height: 90vh;
    }

    .hero--page {
        min-height: 60vh;
    }

    .hero-content {
        padding: var(--space-4xl) var(--space-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh; /* For mobile browsers with dynamic viewport */
    }

    .hero--page {
        min-height: 50vh;
    }

    .hero--short {
        min-height: 40vh;
    }

    .hero--minimal {
        min-height: 25vh;
    }

    /* Hide video on mobile, show fallback */
    .hero--video .hero-video {
        display: none;
    }

    .hero--video .hero-media {
        background-image: var(--hero-fallback);
        background-size: cover;
        background-position: center;
    }

    .hero-headline {
        font-size: clamp(var(--text-3xl), 8vw, var(--text-5xl));
    }

    .hero-subheadline {
        font-size: var(--text-base);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-scroll-indicator {
        bottom: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: var(--space-3xl) var(--space-md);
    }

    .hero-tagline {
        font-size: var(--text-base);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        animation: none;
    }

    .scroll-arrow {
        animation: none;
    }
}
