/* ASAAP Premium Hero Slider (vanilla CSS, CLS-0, reduced-motion aware) */
.asaap-hp-hero {
    position: relative;
    width: 100%;
    --asaap-header-h: 72px;
    height: clamp(560px, calc(100svh - var(--asaap-header-h)), 820px);
    overflow: hidden;
    background: #0a1914;
    color: #fff;
}

.asaap-hp-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.asaap-hp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease, visibility 0s linear 900ms;
    z-index: 1;
}

.asaap-hp-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 900ms ease, visibility 0s linear 0s;
    z-index: 2;
}

.asaap-hp-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.asaap-hp-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    will-change: transform;
}

@keyframes asaapHeroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.asaap-hp-slide.is-active .asaap-hp-bg img {
    animation: asaapHeroZoom 7000ms ease-out forwards;
}

.asaap-hp-hero.is-paused .asaap-hp-slide.is-active .asaap-hp-bg img {
    animation-play-state: paused;
}

.asaap-hp-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(75deg, rgba(10, 25, 20, 0.94) 0%, rgba(10, 25, 20, 0.62) 38%, transparent 68%);
}

.asaap-hp-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px clamp(128px, 15vh, 148px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    box-sizing: border-box;
}

.asaap-hp-content {
    max-width: 620px;
    width: 100%;
}

.asaap-hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #F15A24;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    margin: 0 0 14px;
}

.asaap-hp-kicker::before {
    content: "";
    width: 32px;
    height: 2px;
    background: #F15A24;
    flex-shrink: 0;
}

.asaap-hp-title {
    font-family: 'Oswald', Impact, sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.5px;
    text-wrap: balance;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 16px;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}

.asaap-hp-sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.5;
    margin: 0 0 26px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.asaap-hp-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.asaap-hp-btn {
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.asaap-hp-btn--primary {
    background: #F15A24;
    color: #ffffff;
    border: 1.5px solid #F15A24;
    box-shadow: 0 8px 24px rgba(241, 90, 36, 0.35);
}

.asaap-hp-btn--primary:hover {
    background: #d94b19;
    transform: translateY(-1px);
}

.asaap-hp-btn--secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid #ffffff;
    color: #ffffff;
}

.asaap-hp-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

/* Staggered entrance */
.asaap-hp-kicker,
.asaap-hp-title,
.asaap-hp-sub,
.asaap-hp-actions {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1), transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.asaap-hp-slide.is-active .asaap-hp-kicker { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.asaap-hp-slide.is-active .asaap-hp-title { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.asaap-hp-slide.is-active .asaap-hp-sub { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.asaap-hp-slide.is-active .asaap-hp-actions { opacity: 1; transform: translateY(0); transition-delay: 360ms; }

/* Bottom controls bar */
.asaap-hp-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    z-index: 5;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

.asaap-hp-progress-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    max-width: 440px;
}

.asaap-hp-counter {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    white-space: nowrap;
}

.asaap-hp-bars {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.asaap-hp-bar {
    position: relative;
    flex: 1;
    height: 24px;
    padding: 10px 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.asaap-hp-bar::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.asaap-hp-bar-fill {
    position: absolute;
    left: 0;
    top: 10px;
    height: 3px;
    width: 0%;
    background: #F15A24;
    border-radius: 2px;
}

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

.asaap-hp-bar.is-active .asaap-hp-bar-fill {
    animation: asaapHeroBar 7000ms linear forwards;
}

.asaap-hp-hero.is-paused .asaap-hp-bar.is-active .asaap-hp-bar-fill {
    animation-play-state: paused;
}

.asaap-hp-next {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(10, 25, 20, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asaap-hp-next:hover {
    background: rgba(241, 90, 36, 0.9);
    border-color: #F15A24;
}

@media (max-width: 1023px) and (min-width: 769px) {
    .asaap-hp-hero {
        height: clamp(520px, calc(100svh - var(--asaap-header-h, 94px)), 820px);
    }
}

@media (max-width: 768px) {
    .asaap-hp-hero {
        height: 88svh;
        max-height: none;
    }
    .asaap-hp-overlay {
        background: linear-gradient(to top, rgba(10, 25, 20, 0.88) 0%, rgba(10, 25, 20, 0.48) 52%, transparent 85%);
    }
    .asaap-hp-container {
        padding: 0 20px 88px;
    }
    .asaap-hp-controls {
        bottom: 16px;
        padding: 0 20px;
    }
    .asaap-hp-next {
        display: none;
    }
}

@media (max-width: 640px) {
    .asaap-hp-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .asaap-hp-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asaap-hp-slide,
    .asaap-hp-kicker,
    .asaap-hp-title,
    .asaap-hp-sub,
    .asaap-hp-actions {
        transition: none !important;
        transform: none !important;
    }
    .asaap-hp-slide.is-active .asaap-hp-bg img,
    .asaap-hp-bar.is-active .asaap-hp-bar-fill {
        animation: none !important;
    }
    .asaap-hp-bar.is-active .asaap-hp-bar-fill {
        width: 100%;
    }
}
