/* ============================================
   OPEN DOORS - HERO & DOOR ANIMATION
   Site content, scroll indicator, doors,
   mobile swipe indicator, scroll spacer
   ============================================ */

/* --- HERO SECTION (DOOR ANIMATION) --- */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.site-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-hero);
    /* GSAP fades this in, but it starts visible if reduced motion is on */
    opacity: 0;
    transform: scale(0.95);
    padding: var(--space-md);
}

.site-content h1 {
    margin-bottom: var(--space-sm);
}

.site-content .tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0 var(--space-sm);
    }

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.scroll-indicator .arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* --- MOBILE SWIPE INDICATOR --- */
.mobile-swipe-indicator {
    display: none;
}

/* --- DOOR OVERLAY --- */
.overlay-container {
    position: absolute;
    /* No longer fixed, it lives inside the pinned wrapper */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}

@media (max-width: 768px) {

    /* Hide the doors completely on mobile for a simpler layout */
    .overlay-container {
        display: none;
    }

    .hero-wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
    }

    .site-content {
        position: relative;
        opacity: 1;
        /* Make sure hero text is visible immediately since doors are gone */
        transform: scale(1);
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: var(--space-xl);
        /* Add extra padding at the bottom so CTA doesn't overlap scroll indicator if screen is tiny */
    }
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 5px solid var(--accent);
}

.door.left {
    left: 0;
    justify-content: flex-end;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset -10px 0 30px rgba(0, 0, 0, 0.4);
}

.door.right {
    right: 0;
    justify-content: flex-start;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 10px 0 30px rgba(0, 0, 0, 0.4);
}

.door-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 10rem);
    color: var(--accent);
    white-space: nowrap;
    line-height: 1;
    padding: 0 10px;
    text-shadow: 0 0 40px rgba(255, 195, 0, 0.3);
}

.door.right .door-text {
    color: var(--white);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

/* Removed .scroll-spacer because GSAP pinSpacing handles it automatically now */