/**
 * Video Hero Section
 * Full-width cinematic autoplay video with text overlay
 */

.video-hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    display: block;
}

.video-hero-wrap {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 600px;
    max-height: 900px;
}

/* ---- Video ---- */

.video-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---- Overlay: transparent top → dark bottom ---- */

.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.05) 35%,
        rgba(0, 0, 0, 0.45) 70%,
        rgba(0, 0, 0, 0.80) 100%
    );
    pointer-events: none;
}

/* ---- Content ---- */

.video-hero-content {
    position: absolute;
    bottom: clamp(2.5rem, 6vh, 5rem);
    left: clamp(1.25rem, 5vw, 5rem);
    right: clamp(1.25rem, 5vw, 5rem);
    max-width: 680px;
    z-index: 2;
}

.video-hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.video-hero-sub {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.6;
    margin-bottom: clamp(1.25rem, 3vh, 2rem);
    max-width: 420px;
}

.video-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.90);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.video-hero-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--color-white);
}

/* ---- Sound toggle button ---- */

.video-sound-btn {
    position: absolute;
    bottom: clamp(1.25rem, 3vh, 2rem);
    right: clamp(1.25rem, 3vw, 2.5rem);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.video-sound-btn:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.65);
    transform: scale(1.08);
}

.sound-icon {
    width: 18px;
    height: 18px;
    display: none;
    flex-shrink: 0;
}

/* Default: muted → show muted icon */
.video-sound-btn .sound-icon--off { display: block; }
.video-sound-btn .sound-icon--on  { display: none;  }

/* When section has sound on */
.video-hero-section.sound-on .video-sound-btn .sound-icon--off { display: none;  }
.video-hero-section.sound-on .video-sound-btn .sound-icon--on  { display: block; }

/* =============================================
   MOBILE — portrait priority
   ============================================= */

@media (max-width: 768px) {
    .video-hero-wrap {
        height: 88svh;
        min-height: 520px;
        max-height: none;
    }

    /* On portrait mobile shift focal point upward slightly
       so the video subject stays visible above the text */
    .video-hero-bg {
        object-position: center 30%;
    }

    .video-hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.05) 30%,
            rgba(0, 0, 0, 0.55) 65%,
            rgba(0, 0, 0, 0.88) 100%
        );
    }

    .video-hero-content {
        right: clamp(1.25rem, 5vw, 2.5rem);
    }

    .video-hero-sub br {
        display: none;
    }
}

@media (max-width: 480px) {
    .video-hero-wrap {
        height: 90svh;
    }

    .video-hero-title {
        font-size: 2.2rem;
    }
}
