/* ═══════════════════════════════════════════════════════════════
   erazen — template-hero-slider.css
   Hero Video Slider — Premium Redesign v16.0
   "Expedition Grade" — Wilderness-Luxury Aesthetic

   ALL colour, font, shadow & spacing values reference main.css
   CSS custom properties. DO NOT hardcode brand values here.
   DO NOT inline this file in any HTML template.
═══════════════════════════════════════════════════════════════ */


/* ── 1. CONTAINER ──────────────────────────────────────────── */
.hero-video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    max-height: 1080px;
    overflow: hidden;
    background-color: var(--color-navy-deep);
    cursor: default;
}


/* ── 2. POSTER IMAGE ───────────────────────────────────────── */
.hero-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 1;
    transition: opacity 1.8s ease;
}

.hero-poster.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transform: scale(1.04);
    animation: hero-ken-burns 22s ease-in-out infinite alternate;
}

@keyframes hero-ken-burns {
    from { transform: scale(1.04) translate(0, 0); }
    to   { transform: scale(1.12) translate(-1.5%, -1%); }
}


/* ── 3. BACKGROUND VIDEO ───────────────────────────────────── */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 1;
}


/* ── 4. LAYERED CINEMATIC OVERLAY ──────────────────────────── */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        /* Heavy left vignette for content legibility */
        linear-gradient(
            105deg,
            rgba(var(--color-navy-rgb), 0.96) 0%,
            rgba(var(--color-navy-rgb), 0.82) 28%,
            rgba(var(--color-navy-rgb), 0.45) 54%,
            rgba(var(--color-navy-rgb), 0.15) 75%,
            transparent 100%
        ),
        /* Bottom fade */
        linear-gradient(
            to top,
            rgba(var(--color-navy-rgb), 0.80) 0%,
            rgba(var(--color-navy-rgb), 0.30) 25%,
            transparent 55%
        ),
        /* Subtle top scrim */
        linear-gradient(
            to bottom,
            rgba(var(--color-navy-rgb), 0.55) 0%,
            transparent 20%
        );
}


/* ── 5. VERTICAL SIDE RAIL (left decorative accent) ───────── */
.hero-accent-border {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

/* Thin vertical ember line */
.hero-accent-border::before {
    content: '';
    position: absolute;
    left: clamp(56px, 5.5vw, 88px);
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(var(--color-gold-rgb), 0.08) 8%,
        rgba(var(--color-gold-rgb), 0.55) 30%,
        rgba(var(--color-gold-rgb), 0.70) 50%,
        rgba(var(--color-gold-rgb), 0.55) 70%,
        rgba(var(--color-gold-rgb), 0.08) 92%,
        transparent 100%
    );
}

/* Bottom border line */
.hero-accent-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(var(--color-gold-rgb), 0.60) 0%,
        rgba(var(--color-gold-rgb), 0.85) 30%,
        rgba(var(--color-gold-rgb), 0.95) 50%,
        rgba(var(--color-gold-rgb), 0.85) 70%,
        rgba(var(--color-gold-rgb), 0.60) 100%
    );
}


/* ── 6. SLIDE NUMBER RAIL ──────────────────────────────────── */
.hero-slide-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: clamp(52px, 5.2vw, 84px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.hero-slide-current {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    font-weight: 700;
    font-style: italic;
    color: var(--color-gold-light);
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(var(--color-gold-rgb), 0.45);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-slide-divider {
    width: 1px;
    height: clamp(24px, 3vw, 40px);
    background: linear-gradient(180deg, var(--color-gold), rgba(var(--color-gold-rgb), 0.2));
    margin: 8px 0;
}

.hero-slide-total {
    font-family: var(--font-primary);
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-white-40);
    line-height: 1;
}


/* ── 7. HERO CONTENT PANEL ─────────────────────────────────── */
@keyframes panel-entrance {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-left: clamp(80px, 9vw, 140px);
    padding-right: clamp(20px, 4vw, 60px);
    padding-bottom: clamp(60px, 8vh, 110px);
    animation: panel-entrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.35s;

    /* Transition for slide change */
    transition: opacity 0.50s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.50s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content-panel.is-out {
    opacity: 0;
    transform: translateY(22px);
    pointer-events: none;
}

.hero-content-panel.is-in {
    opacity: 1;
    transform: translateY(0);
}


/* ── 8. EYEBROW ────────────────────────────────────────────── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: clamp(0.6rem, 0.85vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin: 0 0 clamp(10px, 1.5vh, 18px) 0;
    line-height: 1;
    opacity: 0.95;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: clamp(24px, 2.5vw, 38px);
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-gold), rgba(var(--color-gold-rgb), 0.3));
    flex-shrink: 0;
}

.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    margin-left: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(var(--color-gold-rgb), 0.8);
}


/* ── 9. TITLE ──────────────────────────────────────────────── */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.0rem, 4.8vw, 5.0rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--color-white);
    margin: 0 0 clamp(12px, 1.8vh, 24px) 0;
    max-width: clamp(300px, 50vw, 680px);
    text-shadow:
        0 2px 8px rgba(var(--color-navy-rgb), 0.60),
        0 8px 32px rgba(var(--color-navy-rgb), 0.40);
}

/* Highlight last word with ember colour */
.hero-title-em {
    color: var(--color-gold-light);
    font-style: normal;
}


/* ── 10. DESCRIPTION ───────────────────────────────────────── */
.hero-description {
    font-family: var(--font-secondary);
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-white-75);
    margin: 0 0 clamp(18px, 2.5vh, 32px) 0;
    max-width: clamp(280px, 38vw, 520px);
    letter-spacing: 0.01em;
}


/* ── 11. STAT PILLS ────────────────────────────────────────── */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 0.8vw, 12px);
    margin: 0 0 clamp(20px, 3vh, 40px) 0;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 10px;
    font-family: var(--font-primary);
    font-size: clamp(0.6rem, 0.78vw, 0.70rem);
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-white-80);
    background: rgba(var(--color-navy-rgb), 0.55);
    border: 1px solid rgba(var(--color-gold-rgb), 0.28);
    border-radius: 2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-stat-pill:hover {
    background: rgba(var(--color-gold-rgb), 0.18);
    border-color: rgba(var(--color-gold-rgb), 0.55);
    color: var(--color-white-95);
}

.hero-stat-pill i {
    color: var(--color-gold);
    font-size: 0.72em;
    flex-shrink: 0;
}


/* ── 12. CTA BUTTON ────────────────────────────────────────── */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: clamp(13px, 1.5vh, 18px) clamp(24px, 2.5vw, 36px);
    font-family: var(--font-primary);
    font-size: clamp(0.72rem, 0.95vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-navy-deep);
    background: var(--color-gold);
    border: none;
    border-radius: 1px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(var(--color-gold-rgb), 0.50),
        0 2px 8px rgba(var(--color-navy-rgb), 0.40);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s ease,
                color 0.22s ease;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    pointer-events: none;
}

/* Animated shimmer */
.hero-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.30) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.65s ease;
}

.hero-cta:hover::after {
    left: 160%;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 36px rgba(var(--color-gold-rgb), 0.65),
        0 4px 16px rgba(var(--color-navy-rgb), 0.50);
    color: var(--color-navy-deep);
    text-decoration: none;
}

.hero-cta:active {
    transform: translateY(0) scale(0.99);
}

.hero-cta-icon {
    font-size: 0.9em;
    flex-shrink: 0;
}

.hero-cta-arrow {
    font-size: 0.72em;
    flex-shrink: 0;
    transition: transform 0.28s ease;
}

.hero-cta:hover .hero-cta-arrow {
    transform: translateX(4px);
}


/* ── 13. SLIDE INDICATOR DOTS ──────────────────────────────── */
.hero-indicators {
    position: absolute;
    right: clamp(20px, 3vw, 48px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-dot {
    display: block;
    width: 3px;
    height: clamp(20px, 2.5vh, 32px);
    background: rgba(255, 255, 255, 0.22);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: background 0.35s ease, height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Progress fill for active dot */
.hero-dot.is-active {
    background: rgba(255, 255, 255, 0.30);
    height: clamp(36px, 4.5vh, 56px);
    transform: scaleX(1.5);
}

.hero-dot.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--color-gold);
    border-radius: 2px;
    animation: dot-progress var(--slide-interval, 6000ms) linear forwards;
}

@keyframes dot-progress {
    from { height: 0%; }
    to   { height: 100%; }
}

.hero-dot:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.hero-dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.45);
    height: clamp(24px, 3vh, 40px);
}


/* ── 14. VIDEO CONTROLS ────────────────────────────────────── */
.hero-video-controls {
    position: absolute;
    bottom: clamp(20px, 3vh, 36px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    pointer-events: all;
}

.hero-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(var(--color-navy-rgb), 0.60);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--color-white-70);
    cursor: pointer;
    font-size: 0.78rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    pointer-events: all;
    position: relative;
    z-index: 21;
}

.hero-ctrl-btn:hover {
    background: rgba(var(--color-gold-rgb), 0.28);
    border-color: rgba(var(--color-gold-rgb), 0.50);
    color: var(--color-gold-light);
    transform: scale(1.08);
}

.hero-ctrl-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}


/* ── 15. TRUST BADGE ───────────────────────────────────────── */
.hero-trust-badge {
    position: absolute;
    top: clamp(20px, 4vh, 40px);
    right: clamp(20px, 3vw, 48px);
    z-index: 15;
    animation: badge-entrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.8s;
}

@keyframes badge-entrance {
    from { opacity: 0; transform: translateY(-16px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.trust-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: clamp(68px, 7vw, 90px);
    height: clamp(68px, 7vw, 90px);
    background: rgba(var(--color-navy-rgb), 0.70);
    border: 1.5px solid rgba(var(--color-gold-rgb), 0.55);
    border-radius: 50%;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 4px 24px rgba(var(--color-navy-rgb), 0.50),
        0 0 0 4px rgba(var(--color-gold-rgb), 0.08),
        inset 0 1px 0 rgba(var(--color-gold-rgb), 0.15);
    text-align: center;
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-badge-inner:hover {
    transform: scale(1.06);
    box-shadow:
        0 6px 32px rgba(var(--color-navy-rgb), 0.60),
        0 0 0 6px rgba(var(--color-gold-rgb), 0.12),
        inset 0 1px 0 rgba(var(--color-gold-rgb), 0.20);
}

.trust-badge-icon {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    color: var(--color-gold);
    display: block;
    margin-bottom: 2px;
    filter: drop-shadow(0 0 6px rgba(var(--color-gold-rgb), 0.60));
}

.trust-badge-line1 {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.4vw, 1.2rem);
    font-weight: 700;
    font-style: italic;
    color: var(--color-white-95);
    line-height: 1;
    letter-spacing: -0.02em;
}

.trust-badge-line2 {
    font-family: var(--font-primary);
    font-size: clamp(0.45rem, 0.62vw, 0.55rem);
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-gold-pale);
    line-height: 1.3;
    text-align: center;
}


/* ── 16. SCROLL HINT ───────────────────────────────────────── */
.hero-scroll-hint {
    position: absolute;
    bottom: clamp(16px, 2.5vh, 28px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: opacity 0.5s ease;
}

.hero-scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-line {
    display: block;
    width: 1px;
    height: clamp(28px, 3.5vh, 44px);
    background: linear-gradient(
        180deg,
        rgba(var(--color-gold-rgb), 0.80) 0%,
        rgba(var(--color-gold-rgb), 0.10) 100%
    );
    animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.5; transform: scaleY(0.7); transform-origin: top; }
    50%       { opacity: 1.0; transform: scaleY(1.0); transform-origin: top; }
}

.scroll-hint-label {
    font-family: var(--font-primary);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--color-gold-rgb), 0.65);
}


/* ── 17. GRAIN TEXTURE OVERLAY ─────────────────────────────── */
.hero-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}


/* ── 18. RESPONSIVE — TABLET ───────────────────────────────── */
@media (max-width: 1024px) {
    .hero-title {
        max-width: 70vw;
    }
    .hero-description {
        max-width: 60vw;
    }
    .hero-content-panel {
        padding-left: clamp(72px, 8vw, 100px);
    }
}


/* ── 19. RESPONSIVE — MOBILE ───────────────────────────────── */
@media (max-width: 768px) {
    .hero-video-container {
        height: 100svh;
        min-height: 520px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(var(--color-navy-rgb), 0.60) 0%,
                rgba(var(--color-navy-rgb), 0.40) 30%,
                rgba(var(--color-navy-rgb), 0.72) 65%,
                rgba(var(--color-navy-rgb), 0.94) 100%
            );
    }

    .hero-content-panel {
        left: 0;
        right: 0;
        padding-left: clamp(20px, 5vw, 32px);
        padding-right: clamp(20px, 5vw, 32px);
        padding-bottom: clamp(72px, 10vh, 100px);
        text-align: left;
    }

    .hero-title {
        max-width: 100%;
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-description {
        max-width: 100%;
        font-size: 0.88rem;
    }

    .hero-stats {
        gap: 6px;
    }

    .hero-stat-pill {
        font-size: 0.58rem;
        padding: 5px 10px 5px 8px;
    }

    /* Hide slide rail on mobile */
    .hero-slide-rail {
        display: none;
    }

    /* Move accent border off screen */
    .hero-accent-border::before {
        left: -10px;
    }

    /* Indicators → bottom row on mobile */
    .hero-indicators {
        flex-direction: row;
        inset: auto auto clamp(20px, 3vh, 32px) 50%;
        transform: translateX(-50%);
        gap: 8px;
    }

    .hero-dot {
        width: clamp(18px, 4vw, 28px);
        height: 3px;
    }

    .hero-dot.is-active {
        width: clamp(32px, 7vw, 48px);
        height: 3px;
        transform: scaleY(1.5);
    }

    .hero-dot.is-active::after {
        height: 100%;
        width: 0%;
        animation: dot-progress-h var(--slide-interval, 6000ms) linear forwards;
    }

    /* @keyframes dot-progress-h is defined below the @media block */

    /* Trust badge — smaller */
    .trust-badge-inner {
        width: 60px;
        height: 60px;
    }

    /* Video controls → center bottom on mobile */
    .hero-video-controls {
        bottom: clamp(16px, 2.5vh, 24px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero-ctrl-btn {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
}


/* ── 19b. MOBILE PROGRESS ANIMATION (referenced in @media above) ─ */
@keyframes dot-progress-h {
    from { width: 0%; }
    to   { width: 100%; }
}


/* ── 20. REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-poster-img,
    .hero-content-panel,
    .hero-trust-badge,
    .scroll-hint-line {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    .hero-dot.is-active::after {
        animation: none !important;
    }
}