/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    background: #0a0a0a;
}

/* ── Slides ── */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.06);
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    animation: hero-ken-burns 6s ease-out forwards;
}

@keyframes hero-ken-burns {
    0%   { transform: scale(1.06); }
    100% { transform: scale(1.00); }
}

/* ── Overlay ── */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.20) 50%,
        rgba(0,0,0,0.05) 100%
    );
    z-index: 2;
}

.hero-slider .hero-overlay {
    padding-left: 100px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
}

.hero-slider .hero-content {
    padding: 0 20px 60px;
    max-width: 1700px;
    width: 100%;
}

.hero-slider .search-filter {
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(28px) saturate(160%) brightness(1.08);
    -webkit-backdrop-filter: blur(28px) saturate(160%) brightness(1.08);
    padding: 36px;
    border-radius: 24px;
    max-width: 420px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.22),
        inset 0 1.5px 0 rgba(255,255,255,0.55),
        inset 0 -1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.45);
}

/* Eyebrow badge */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 999px;
    padding: 4px 12px 4px 10px;
    margin-bottom: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

.hero-slider .search-filter h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-slider .search-filter > p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 26px;
}

/* CTA buttons */
.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-cta-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.30);
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.22s ease;
    border-radius: 12px;
}

.hero-cta-btn--parts::before { background: linear-gradient(135deg, rgba(19,97,140,0.04) 0%, rgba(19,97,140,0.08) 100%); }
.hero-cta-btn--cars::before  { background: linear-gradient(135deg, rgba(41,123,53,0.04) 0%, rgba(41,123,53,0.08) 100%); }

.hero-cta-btn:hover { transform: translateY(-2px); }
.hero-cta-btn:hover::before { opacity: 1; }

.hero-cta-btn--parts:hover {
    border-color: rgba(75,168,212,0.7);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 6px 20px rgba(19, 97, 140, 0.25);
}
.hero-cta-btn--cars:hover {
    border-color: rgba(74,222,128,0.7);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 6px 20px rgba(41, 123, 53, 0.25);
}

.hcb-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    position: relative;
    z-index: 1;
}
.hero-cta-btn--parts .hcb-icon { background: linear-gradient(135deg, #13618C 0%, #1a80b8 100%); }
.hero-cta-btn--cars .hcb-icon  { background: linear-gradient(135deg, #297B35 0%, #34a84a 100%); }

.hcb-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}
.hcb-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}
.hcb-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}

.hcb-arrow {
    color: rgba(255,255,255,0.40);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
    position: relative;
    z-index: 1;
}
.hero-cta-btn:hover .hcb-arrow { transform: translateX(3px); }
.hero-cta-btn--parts:hover .hcb-arrow { color: rgba(75,168,212,0.9); }
.hero-cta-btn--cars:hover  .hcb-arrow { color: rgba(74,222,128,0.9); }

.hcb-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 4px;
}
.hcb-divider::before,
.hcb-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.20);
}
.hcb-divider span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Slider Dots ── */
.hero-slider .slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-slider .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s ease;
}

.hero-slider .dot.active {
    width: 28px;
    background: #ffffff;
}

.hero-slider .dot:hover:not(.active) {
    background: rgba(255,255,255,0.75);
}

/* ── Responsive ── */

/*
 * Mobile: stack banner image above the CTA card so both are fully visible.
 * The image section (.hero-slides) becomes a regular flow block at the top,
 * and the card (.hero-overlay) sits below it on a solid background.
 */
@media (max-width: 768px) {
    /* Switch to a column flow so image + card stack */
    .hero-slider {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Image block: flow (not absolute), fixed height */
    .hero-slides {
        position: relative;
        height: 260px;
        flex-shrink: 0;
        width: 100%;
    }

    /* Gradient overlay — constrain to image height only */
    .hero-slide-overlay {
        height: 260px;
        bottom: auto;
    }

    /* CTA card — below the image, on white */
    .hero-slider .hero-overlay {
        position: relative;
        height: auto;
        padding: 24px 16px 28px;
        background: #ffffff;
        align-items: flex-start;
    }

    .hero-slider .hero-content {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    /* Remove glass effect — no longer sitting on an image */
    .hero-slider .search-filter {
        max-width: 100%;
        padding: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
    }

    .hero-slider .search-filter h2 {
        font-size: 22px;
        color: #1D2939;
    }

    .hero-slider .search-filter > p {
        font-size: 13px;
        color: #475467;
        margin-bottom: 18px;
    }

    /* Eyebrow badge — light-bg variant */
    .hero-eyebrow {
        background: rgba(19, 97, 140, 0.08);
        border-color: rgba(19, 97, 140, 0.25);
        color: #13618C;
    }

    /* CTA buttons — light-bg variant */
    .hero-cta-btn {
        border-color: rgba(0, 0, 0, 0.10);
        background: #F8FAFC;
    }
    .hero-cta-btn--parts:hover { background: #EFF6FF; }
    .hero-cta-btn--cars:hover  { background: #F0FFF4; }

    .hcb-title { color: #1D2939; }
    .hcb-sub   { color: #64748B; }
    .hcb-arrow { color: rgba(0, 0, 0, 0.30); }

    .hcb-divider::before,
    .hcb-divider::after { background: rgba(0, 0, 0, 0.10); }
    .hcb-divider span   { color: #94A3B8; }

    /* Dots — absolute, pinned to bottom of the image area */
    .hero-slider .slider-dots {
        top: 236px;
        bottom: auto;
    }
}

@media (max-width: 480px) {
    .hero-slides        { height: 220px; }
    .hero-slide-overlay { height: 220px; }

    .hero-slider .hero-overlay { padding: 20px 14px 24px; }

    .hero-slider .search-filter h2 {
        font-size: 19px;
        margin-bottom: 5px;
    }

    .hero-slider .search-filter > p {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .hcb-icon  { width: 38px; height: 38px; }
    .hcb-title { font-size: 13px; }
    .hcb-sub   { font-size: 11.5px; }

    .hero-slider .slider-dots { top: 196px; }

    .hero-slider .dot        { width: 7px; height: 7px; }
    .hero-slider .dot.active { width: 22px; }
}
