/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
}

/* Hero Wrapper */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    left: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    z-index: 1;
    height: var(--hero-height-desktop, 100vh);
}

/* Hero positioning when announcement bar is present */
body.enable-top-bar .hero-section {
    height: var(--hero-height-desktop, 100vh);
}

/* Hero positioning when announcement bar is disabled */
body:not(.enable-top-bar) .hero-section {
    height: var(--hero-height-desktop, 100vh);
}

/* Video Container */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* Video Styles */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-text {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.hero-button:hover {
    background-color: transparent;
    color: #fff;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .hero-section {
        height: var(--hero-height-mobile, 100vh);
    }

    /* Mobile: Hero with top bar - starts below top bar */
    body.enable-top-bar .hero-section {
        height: var(--hero-height-mobile, 100vh);
        top: 36px; /* Top bar height on mobile */
    }
    
    /* Mobile home page: Hero with top bar - ensure no gap between top bar and hero */
    body.home.enable-top-bar .hero-section {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(var(--hero-height-mobile, 85vh) - 36px);
        margin-top: 0;
        padding-top: 0;
    }

    /* Mobile: Hero without top bar - starts from very top */
    body:not(.enable-top-bar) .hero-section {
        height: var(--hero-height-mobile, 100vh);
        top: 0;
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Mobile home page: Hero without top bar - ensure no space at top */
    body.home:not(.enable-top-bar) .hero-section {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--hero-height-mobile, 85vh);
        margin-top: 0;
        padding-top: 0;
    }

    .desktop-video {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
