/* ═══════════════════════════════════════════════════════════════
   SUVESTA — template-hero-slider.css
   Hero Video Slider — Component Styles v15.1
   
   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: 92vh;
    min-height: 560px;
    max-height: 980px;
    overflow: hidden;
    background-color: var(--color-navy-deep);
}


/* ── 2. POSTER IMAGE (single static frame while video buffers) ── */
.hero-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 1;
    transition: opacity 1.4s ease;
}

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

.hero-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}


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


/* ── 4. CINEMATIC OVERLAY ──────────────────────────────────── */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 75% 85% at 0% 100%,
            rgba(var(--color-navy-rgb), 0.88) 0%,
            rgba(var(--color-navy-rgb), 0.38) 55%,
            transparent 100%
        ),
        linear-gradient(
            160deg,
            rgba(var(--color-navy-rgb), 0.22) 0%,
            rgba(var(--color-navy-rgb), 0.65) 100%
        );
}


/* ── 5. DECORATIVE GOLD BORDER ACCENTS ─────────────────────── */
.hero-accent-border {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.hero-accent-border::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6%;
    bottom: 6%;
    width: 3px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--color-gold) 20%,
        var(--color-gold-light) 50%,
        var(--color-gold) 80%,
        transparent 100%
    );
    opacity: 0.60;
}

.hero-accent-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4%;
    right: 4%;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-gold) 25%,
        var(--color-gold-light) 50%,
        var(--color-gold) 75%,
        transparent 100%
    );
    opacity: 0.35;
}


/* ── 6. HERO CONTENT PANEL ─────────────────────────────────── */
.hero-content-panel {
    position: absolute;
    bottom: clamp(52px, 8vh, 80px);
    left: clamp(20px, 4vw, 72px);
    z-index: 10;
    max-width: clamp(300px, 42vw, 540px);
    padding: clamp(22px, 2.8vw, 40px) clamp(22px, 3.2vw, 48px);

    /* Navy glass — not white-tinted, far more legible over dark video */
    background: rgba(var(--color-navy-rgb), 0.60);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border: 1px solid rgba(var(--color-gold-rgb), 0.25);
    border-left: 3px solid rgba(var(--color-gold-rgb), 0.55);
    border-radius: 0 16px 16px 0;
    box-shadow:
        0 20px 60px rgba(var(--color-navy-rgb), 0.50),
        0 4px 16px rgba(var(--color-gold-rgb), 0.08),
        inset 0 1px 0 rgba(var(--color-gold-rgb), 0.10);

    /* Entrance animation */
    animation: panelEntrance 1.0s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.2s;

    /* Slide-change transition */
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

@keyframes panelEntrance {
    from { opacity: 0; transform: translateX(-36px) translateY(16px); }
    to   { opacity: 1; transform: translateX(0) translateY(0); }
}


/* Eyebrow */
.hero-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.92;
    line-height: 1;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--color-gold);
    flex-shrink: 0;
}


/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.0vw, 2.85rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--color-white);
    margin: 0 0 12px 0;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 20px rgba(var(--color-navy-rgb), 0.70);
}


/* Description */
.hero-description {
    font-family: var(--font-primary);
    font-size: clamp(0.85rem, 1.05vw, 0.98rem);
    font-weight: var(--font-weight-light);
    line-height: 1.68;
    color: var(--color-white-80);
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Stat Pills */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: rgba(var(--color-gold-rgb), 0.10);
    border: 1px solid rgba(var(--color-gold-rgb), 0.28);
    border-radius: 999px;
    font-family: var(--font-primary);
    font-size: 0.70rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-gold-pale);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.hero-stat-pill i {
    font-size: 0.62rem;
    color: var(--color-gold);
    opacity: 0.90;
}


/* CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    background: var(--gradient-gold);
    color: var(--color-navy-deep);
    font-family: var(--font-primary);
    font-size: 0.90rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.035em;
    text-decoration: none;
    border-radius: 4px;
    box-shadow:
        0 6px 24px rgba(var(--color-gold-rgb), 0.35),
        0 2px 8px rgba(var(--color-navy-rgb), 0.30);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
    transition: left 0.50s ease;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 12px 36px rgba(var(--color-gold-rgb), 0.45),
        0 6px 20px rgba(var(--color-navy-rgb), 0.38);
    color: var(--color-navy-deep);
}

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

.hero-cta-arrow {
    font-size: 0.75rem;
    transition: transform 0.22s ease;
}

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


/* ── 7. SLIDE INDICATOR DOTS ───────────────────────────────── */
.hero-indicators {
    position: absolute;
    bottom: clamp(16px, 2.5vh, 30px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    background: rgba(var(--color-navy-rgb), 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(var(--color-gold-rgb), 0.22);
    border-radius: 999px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(var(--color-gold-rgb), 0.30);
    border: none;
    cursor: pointer;
    padding: 0;
    transition:
        width 0.40s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.30s ease,
        opacity 0.30s ease;
    outline: none;
}

.hero-dot:hover {
    background: rgba(var(--color-gold-rgb), 0.60);
}

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

.hero-dot.is-active {
    width: 28px;
    background: var(--gradient-gold);
}

/* Progress indicator on active dot */
.hero-dot.is-active::after {
    content: '';
    display: block;
    height: 100%;
    border-radius: 999px;
    background: rgba(255,255,255,0.40);
    animation: dotProgress var(--slide-interval, 6s) linear forwards;
}

@keyframes dotProgress {
    from { width: 0%; }
    to   { width: 100%; }
}


/* ── 8. VIDEO CONTROLS ─────────────────────────────────────── */
.hero-video-controls {
    position: absolute;
    bottom: clamp(16px, 2.5vh, 30px);
    right: clamp(16px, 2.5vw, 36px);
    z-index: 20;
    display: flex;
    gap: 8px;
}

.hero-ctrl-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(var(--color-navy-rgb), 0.60);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(var(--color-gold-rgb), 0.22);
    color: var(--color-white-70);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.20s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.hero-ctrl-btn:hover {
    background: rgba(var(--color-gold-rgb), 0.20);
    border-color: rgba(var(--color-gold-rgb), 0.55);
    color: var(--color-gold-light);
    transform: scale(1.12);
}

.hero-ctrl-btn:active { transform: scale(0.94); }

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

.hero-ctrl-btn:disabled {
    opacity: 0.30;
    cursor: not-allowed;
    pointer-events: none;
}


/* ── 9. TRUST BADGE ────────────────────────────────────────── */
.hero-trust-badge {
    position: absolute;
    top: clamp(14px, 2.2vh, 26px);
    right: clamp(14px, 2.2vw, 28px);
    z-index: 20;
    width: 82px;
    height: 82px;
}

.trust-badge-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-navy-deep);
    font-family: var(--font-primary);
    padding: 8px;
    gap: 1px;
    box-shadow:
        0 0 0 3px rgba(var(--color-gold-rgb), 0.28),
        0 8px 32px rgba(var(--color-gold-rgb), 0.40);
    animation: badgePulse 3.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(var(--color-gold-rgb), 0.28),
            0 8px 32px rgba(var(--color-gold-rgb), 0.40);
    }
    50% {
        box-shadow:
            0 0 0 7px rgba(var(--color-gold-rgb), 0.14),
            0 8px 40px rgba(var(--color-gold-rgb), 0.55);
    }
}

.trust-badge-icon {
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-navy-deep);
}

.trust-badge-line1 {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-navy-deep);
}

.trust-badge-line2 {
    font-size: 0.50rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(var(--color-navy-rgb), 0.72);
}


/* ── 10. SCROLL HINT ───────────────────────────────────────── */
.hero-scroll-hint {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.50;
    transition: opacity 0.40s ease;
    pointer-events: none;
    padding-bottom: 2px;
}

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

.scroll-hint-line {
    display: block;
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

.scroll-hint-label {
    font-family: var(--font-primary);
    font-size: 0.58rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold-pale);
    margin-bottom: 4px;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.50; transform: scaleY(1); }
    50%       { opacity: 1.00; transform: scaleY(1.25); }
}


/* ── 11. RESPONSIVE — Tablet ───────────────────────────────── */
@media (max-width: 1024px) {
    .hero-video-container { height: 88vh; }
    .hero-description { -webkit-line-clamp: 3; }
    .hero-trust-badge { width: 70px; height: 70px; }
    .trust-badge-icon  { font-size: 1.05rem; }
    .trust-badge-line1 { font-size: 0.80rem; }
}


/* ── 12. RESPONSIVE — Mobile ───────────────────────────────── */
@media (max-width: 767px) {
    .hero-video-container {
        height: 88svh;
        min-height: 480px;
    }

    .hero-content-panel {
        bottom: 52px;
        left: 12px;
        right: 12px;
        max-width: 100%;
        border-radius: 10px;
        border-left: 3px solid rgba(var(--color-gold-rgb), 0.55);
    }

    .hero-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
    .hero-description {
        -webkit-line-clamp: 3;
        font-size: 0.83rem;
    }

    .hero-stats { gap: 5px; }
    .hero-stat-pill { font-size: 0.65rem; padding: 4px 9px; }

    .hero-cta { padding: 11px 20px; font-size: 0.86rem; }

    .hero-trust-badge { width: 58px; height: 58px; top: 10px; right: 10px; }
    .trust-badge-icon  { font-size: 0.90rem; }
    .trust-badge-line1 { font-size: 0.68rem; }
    .trust-badge-line2 { font-size: 0.44rem; }

    .hero-ctrl-btn { width: 36px; height: 36px; font-size: 0.75rem; }
    .hero-accent-border::before { display: none; }
    .hero-scroll-hint { display: none; }
}


/* ── 13. REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-content-panel,
    .hero-poster,
    .hero-cta,
    .hero-ctrl-btn,
    .trust-badge-inner,
    .scroll-hint-line,
    .hero-dot.is-active::after {
        animation: none !important;
        transition: opacity 0.25s ease !important;
    }
    .hero-cta:hover,
    .hero-ctrl-btn:hover { transform: none !important; }
}


/* ── 14. HIGH CONTRAST ─────────────────────────────────────── */
@media (prefers-contrast: high) {
    .hero-content-panel {
        background: rgba(var(--color-navy-rgb), 0.92);
        border-width: 2px;
        border-color: var(--color-gold);
    }
    .hero-ctrl-btn { border: 2px solid var(--color-white); }
}


/* ── 15. PRINT ─────────────────────────────────────────────── */
@media print {
    .hero-video,
    .hero-video-controls,
    .hero-indicators,
    .hero-trust-badge,
    .hero-scroll-hint,
    .hero-overlay,
    .hero-accent-border { display: none !important; }

    .hero-video-container { height: auto; background: var(--color-white); }

    .hero-content-panel {
        position: static;
        max-width: 100%;
        background: transparent;
        border: none;
        color: var(--color-navy);
    }

    .hero-title,
    .hero-description,
    .hero-eyebrow { color: var(--color-navy) !important; }
}


/* ── 16. PERFORMANCE HINTS ─────────────────────────────────── */
.hero-video,
.hero-poster-img,
.hero-content-panel,
.trust-badge-inner {
    will-change: transform, opacity;
    transform: translateZ(0);
}