/* ============================================
   VICTRON ENERGY MOLDOVA - Hero Slider
   ============================================ */

/* =========== HERO SLIDER =========== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: var(--color-primary);
}

.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 95, 190, 0.85) 0%, rgba(0, 74, 150, 0.7) 50%, rgba(13, 27, 62, 0.5) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

.hero-slide__tag {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-full);
    margin-bottom: var(--space-4);
}

.hero-slide__title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-bold);
    color: var(--color-white);
    max-width: 700px;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero-slide__subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

.hero-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.875rem 2rem;
    background: var(--color-white);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-bold);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.hero-slide__cta:hover {
    background: transparent;
    color: var(--color-white);
    outline: 2px solid var(--color-white);
    outline-offset: -2px;
}

.hero-slide__cta svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.hero-slide__cta:hover svg {
    transform: translateX(4px);
}

/* Slide with image on the right */
.hero-slide--split {
    display: flex;
}

.hero-slide--split .hero-slide__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.hero-slide__text {
    flex: 1;
    max-width: 550px;
}

.hero-slide__image {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide__image img {
    max-height: 400px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* =========== SLIDER CONTROLS =========== */
.hero-slider__dots {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: var(--space-3);
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-slider__dot.is-active {
    background: var(--color-white);
    transform: scale(1.2);
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Arrow Controls */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: background-color var(--transition);
}

.hero-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-slider__arrow svg {
    width: 24px;
    height: 24px;
}

.hero-slider__arrow--prev {
    left: var(--space-6);
}

.hero-slider__arrow--next {
    right: var(--space-6);
}

/* =========== SLIDER RESPONSIVE =========== */
@media (max-width: 1024px) {
    .hero-slider {
        height: 480px;
    }
    .hero-slide__title {
        font-size: var(--font-size-4xl);
    }
    .hero-slide__image {
        flex: 0 0 40%;
    }
    .hero-slide__image img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 440px;
    }
    .hero-slide__title {
        font-size: var(--font-size-3xl);
    }
    .hero-slide__subtitle {
        font-size: var(--font-size-base);
    }
    .hero-slide--split .hero-slide__content {
        flex-direction: column;
        text-align: center;
    }
    .hero-slide__text {
        max-width: 100%;
    }
    .hero-slide__image {
        display: none;
    }
    .hero-slider__arrow {
        width: 40px;
        height: 40px;
    }
    .hero-slider__arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }
    .hero-slide__title {
        font-size: var(--font-size-2xl);
    }
}

/* =========== MARKET SEGMENTS SLIDER =========== */
.segments-slider {
    position: relative;
    overflow: hidden;
}

.segments-slider__track {
    display: flex;
    transition: transform 0.5s ease;
}

.segments-slider__slide {
    min-width: 100%;
    position: relative;
}

.segments-slider__slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.segments-slider__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-8) var(--space-10);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--color-white);
}

.segments-slider__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
}

.segments-slider__desc {
    font-size: var(--font-size-base);
    opacity: 0.9;
    max-width: 500px;
}

.segments-slider__nav {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
    overflow-x: auto;
    padding: var(--space-4) 0;
}

.segments-slider__tab {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    background: var(--color-bg-gray);
    border: none;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.segments-slider__tab.is-active {
    background: var(--color-primary);
    color: var(--color-white);
}

.segments-slider__tab:hover:not(.is-active) {
    background: var(--color-border);
}

@media (max-width: 768px) {
    .segments-slider__slide img {
        height: 350px;
    }
    .segments-slider__title {
        font-size: var(--font-size-2xl);
    }
}
