/* ═══════════════════════════════════════════════
   BAIC HERO SLIDER
   Clean, confident automotive slider
   ═══════════════════════════════════════════════ */

/* ─── Base ─── */
.baic-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.baic-hero *,
.baic-hero *::before,
.baic-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Track & Slides ─── */
.baic-hero__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.baic-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.baic-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ─── Overlay ─── */
.baic-hero__overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 2;
    pointer-events: none;
}

/* ─── Media ─── */
.baic-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.baic-hero__media--desktop {
    display: block;
}

.baic-hero__media--mobile {
    display: none;
}

div.baic-hero__media {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

video.baic-hero__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Ken Burns: subtle slow zoom on active slide ─── */
.baic-hero__slide.is-active .baic-hero__media {
    animation: baic-ken-burns 8s ease-out forwards;
}

@keyframes baic-ken-burns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* ─── Slide Transitions ─── */
.baic-hero__slide.is-entering {
    visibility: visible;
    opacity: 0;
    z-index: 4;
    animation: baic-fade-in 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.baic-hero__slide.is-entering .baic-hero__media {
    animation: baic-enter-zoom 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.baic-hero__slide.is-leaving {
    visibility: visible;
    opacity: 1;
    z-index: 3;
    animation: baic-fade-out 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.baic-hero__slide.is-leaving .baic-hero__media {
    animation: baic-leave-zoom 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes baic-fade-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes baic-fade-out {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes baic-enter-zoom {
    0%   { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes baic-leave-zoom {
    0%   { transform: scale(1); }
    100% { transform: scale(0.95); }
}

/* ─── Content ─── */
.baic-hero__content {
    position: absolute;
    z-index: 5;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 6% 120px;
    max-width: 680px;
}

.baic-hero__content[style*="text-align:center"] {
    max-width: 800px;
}

/* Stagger animation for content elements */
.baic-hero__slide.is-active .baic-hero__title,
.baic-hero__slide.is-entering .baic-hero__title {
    animation: baic-content-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.baic-hero__slide.is-active .baic-hero__desc,
.baic-hero__slide.is-entering .baic-hero__desc {
    animation: baic-content-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.baic-hero__slide.is-active .baic-hero__buttons,
.baic-hero__slide.is-entering .baic-hero__buttons {
    animation: baic-content-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes baic-content-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Title ─── */
.baic-hero__title {
    display: block;
    font-family: var(--et_global_heading_font), sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    opacity: 0;
}

/* ─── Description ─── */
.baic-hero__desc {
    font-family: var(--et_global_body_font), sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 28px;
    opacity: 0.9;
    max-width: 520px;
    opacity: 0;
}

.baic-hero__content[style*="text-align:center"] .baic-hero__desc {
    margin-left: auto;
    margin-right: auto;
}

/* ─── Buttons ─── */
.baic-hero__buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
}

.baic-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    font-family: var(--et_global_body_font), sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 99px;
    border: 0 solid #333;
    transition: background-color 300ms ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Solid red */
.baic-hero__btn--solid {
    background-color: var(--gcid-primary-color);
    color: #ffffff !important;
}

.baic-hero__btn--solid:hover {
    background-color: #b80517;
    color: #ffffff !important;
}

/* Outline */
.baic-hero__btn--outline {
    background-color: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.baic-hero__btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff !important;
}

/* Solid white */
.baic-hero__btn--white {
    background-color: #ffffff;
    color: #1e1e1e !important;
}

.baic-hero__btn--white:hover {
    background-color: #e8e8e8;
    color: #1e1e1e !important;
}

/* ─── Navigation Arrows ─── */
.baic-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.baic-hero__arrow--prev {
    left: 28px;
}

.baic-hero__arrow--next {
    right: 28px;
}

.baic-hero__arrow:hover {
    background: #df071c;
    border-color: #df071c;
    transform: translateY(-50%) scale(1.08);
}

.baic-hero__arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.baic-hero__arrow svg {
    transition: transform 0.3s ease;
}

.baic-hero__arrow--prev:hover svg {
    transform: translateX(-2px);
}

.baic-hero__arrow--next:hover svg {
    transform: translateX(2px);
}

/* ─── Dot Navigation ─── */
.baic-hero__nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.baic-hero__dot {
    width: 40px;
    height: 3px;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    border-radius: 2px;
    transition: background 0.3s ease, width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.baic-hero__dot.is-active {
    width: 60px;
    background: #df071c;
}

.baic-hero__dot:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .baic-hero {
        height: auto;
        aspect-ratio: 500 / 800;
    }

    .baic-hero__media--desktop {
        display: none;
    }

    .baic-hero__media--mobile {
        display: block;
    }

    .baic-hero__content {
        padding: 0 24px 90px;
        max-width: 100%;
    }

    .baic-hero__title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .baic-hero__desc {
        font-size: 0.9rem;
        max-width: 100%;
    }

    /* Arrows: smaller and tighter */
    .baic-hero__arrow {
        width: 40px;
        height: 40px;
    }

    .baic-hero__arrow--prev {
        left: 14px;
    }

    .baic-hero__arrow--next {
        right: 14px;
    }

    .baic-hero__arrow svg {
        width: 16px;
        height: 16px;
    }

    /* Dots */
    .baic-hero__nav {
        bottom: 24px;
    }

    .baic-hero__dot {
        width: 28px;
    }

    .baic-hero__dot.is-active {
        width: 44px;
    }

    .baic-hero__btn {
        padding: 11px 28px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .baic-hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .baic-hero__btn {
        width: 100%;
        text-align: center;
    }
}
