/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 61vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    overflow: hidden;
}

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

.hero__background img,
.hero__fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1.08);
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ==========================================================================
   Video Hero Background
   ========================================================================== */
.hero--video .hero__background {
    background-color: var(--color-primary);
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
    background-color: var(--color-primary);
}

/* Hide video on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }
}

/* Mobile: Hide video for performance - solid background instead */
@media (max-width: 768px) {
    .hero__video {
        display: none;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.7) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 40px 0 var(--space-16);
    text-align: center;
    margin: 0 auto;
}

.hero__label {
    display: inline-block;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-secondary);
    margin-bottom: var(--space-6);
}

.hero__title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: var(--leading-none);
}

.hero__title span {
    color: var(--color-secondary);
}

.hero__description {
    font-size: var(--text-xl);
    color: var(--color-gray-300);
    margin-bottom: var(--space-10);
}

.hero__actions {
    /* Use: class="hero__actions flex flex-wrap gap-4 justify-center" in HTML */
    margin-bottom: var(--space-16);
}

/* Hero Stats */
.hero__stats {
    /* Use: class="hero__stats flex gap-12 justify-center" in HTML */
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
    /* Use: class="hero__stat flex flex-col" in HTML */
    text-align: left;
}

.hero__stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

@media (max-width: 768px) {
    .hero__stats {
        flex-wrap: wrap;
        gap: var(--space-8);
    }
    
    .hero__stat {
        flex: 1 1 40%;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 88svh;
        align-items: flex-end;
    }

    .hero__content {
        padding: 0 0 var(--space-10);
        text-align: center;
    }

    .hero__label {
        font-size: 10px;
        letter-spacing: 0.12em;
        margin-bottom: var(--space-3);
    }

    .hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.15;
        margin-bottom: var(--space-3);
    }

    .hero__description {
        font-size: var(--text-sm);
        color: rgba(255,255,255,0.65);
        margin-bottom: var(--space-6);
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        flex-wrap: nowrap;
        gap: var(--space-3);
        justify-content: center;
        margin-bottom: 0;
    }

    .hero__actions .btn--lg {
        padding: 12px 20px;
        font-size: 13px;
        flex: 1;
        max-width: 160px;
        text-align: center;
    }
}

/* Hero - Centered Variant */
.hero--centered {
    text-align: center;
}

.hero--centered .hero__content {
    margin: 0 auto;
}

.hero--centered .hero__description {
    margin-left: auto;
    margin-right: auto;
}

.hero--centered .hero__actions {
    justify-content: center;
}

.hero--centered .hero__stats {
    justify-content: center;
}

/* Hero - Split Layout */
.hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.hero--split .hero__content {
    padding: 180px 0 var(--space-16);
}

.hero--split .hero__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero--split .hero__image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

@media (max-width: 1024px) {
    .hero--split {
        grid-template-columns: 1fr;
    }
    
    .hero--split .hero__image {
        order: -1;
        padding-top: 140px;
    }
}

/* Hero - Small (for inner pages) */
.hero--small {
    min-height: auto;
    padding: 180px 0 var(--space-16);
}

.hero--small .hero__content {
    padding: 0;
}

/* Page Hero (simplified) */
.page-hero {
    position: relative;
    padding: 48px 0 var(--space-8);
    background-color: var(--color-primary);
    overflow: hidden;
}

.page-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.75) 0%, rgba(26, 26, 46, 0.60) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    direction: ltr;
    color: var(--color-white);
    padding: var(--space-8);
}

.page-hero__label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
    display: block;
}

.page-hero__title {
    font-size: var(--text-4xl);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.page-hero__description {
    font-size: var(--text-lg);
    color: var(--color-gray-300);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-400);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    animation: bounce 2s infinite;
}

.hero__scroll svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero__scroll {
        display: none;
    }
}
