/* ═══════════════════════════════════════════════════════════
   HERO VIDEO CAROUSEL
   ═══════════════════════════════════════════════════════════ */

/* Carousel inherits the hero-video-inline slot */
.hero-carousel {
    flex: 0 0 auto;
    width: clamp(280px, 35vw, 480px);
    position: relative;
    align-self: flex-end;
    margin-left: var(--space-lg);
}

/* Track: stacked slides, only .active is visible */
.hero-carousel-track {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Individual slides */
.hero-slide {
    display: none;
    width: 100%;
}
.hero-slide.active {
    display: block;
}

/* Slide 0: team video link (same behavior as original) */
.hero-slide-link {
    display: block;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s var(--ease-out);
}
.hero-slide-link video {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 1.5s ease-in-out;
}
.hero-slide-link video.fading { opacity: 0; }

/* Tooltip on team video */
.hero-slide-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #3A6B3A;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 1.6rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2;
}
.hero-slide-link:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Poster cards for video slides */
.hero-slide-poster {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    position: relative;
    transition: filter 0.3s;
}
.hero-slide-poster:hover {
    filter: brightness(1.15);
}
.hero-poster-overline {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
}
.hero-poster-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.25;
    padding: 0 1.5rem;
}
.hero-poster-play {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    margin-top: 0.3rem;
    transition: all 0.3s var(--ease-out);
}
.hero-slide-poster:hover .hero-poster-play {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
    transform: scale(1.1);
}

/* ─── Arrows ─── */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.25);
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.3rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    border-radius: 2px;
}
.hero-carousel:hover .hero-carousel-arrow { opacity: 1; }
.hero-carousel-arrow:hover { background: rgba(0,0,0,0.5); color: #fff; }
.hero-carousel-prev { left: 8px; }
.hero-carousel-next { right: 8px; }

/* ─── Dots ─── */
.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-dot:hover { background: rgba(255,255,255,0.5); }
.hero-dot.active {
    background: rgba(255,255,255,0.8);
    transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════════
   VIDEO OVERLAY (fullscreen playback)
   ═══════════════════════════════════════════════════════════ */
.video-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}
.video-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.video-overlay-close {
    position: fixed;
    top: 20px;
    right: 28px;
    z-index: 2001;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.04em;
}
.video-overlay-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.video-overlay-inner {
    width: 90vw;
    max-width: 1200px;
}
.video-overlay-inner video {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-carousel {
        width: 100%;
        max-width: 400px;
        margin-left: 0;
    }
    .video-overlay-inner {
        width: 96vw;
    }
}
