/**
 * Net Strategy Hero Slider styles
 */

.ns-hero-slider {
    position: relative;
    width: 100%;
    height: var(--ns-height, 100vh);
    min-height: 600px;
    overflow: hidden;
    font-family: 'Jost', system-ui, sans-serif;
}

.ns-hero-slider .swiper {
    width: 100%;
    height: 100%;
}

.ns-hero-slider .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ns-hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ns-overlay, rgba(0, 0, 0, 0.42));
    z-index: 1;
    pointer-events: none;
}

/* Slide content */
.ns-hero-slider .ns-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8vw;
    color: #ffffff;
}

.ns-hero-slider .ns-pretitle {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 0 32px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.ns-hero-slider .ns-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(42px, 7vw, 110px);
    font-weight: 300;
    line-height: 1.02;
    margin: 0 0 40px 0;
    max-width: 900px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease 0.4s, transform 0.9s ease 0.4s;
}

.ns-hero-slider .ns-title em {
    font-style: italic;
    color: var(--ns-accent, #d6a77a);
}

.ns-hero-slider .ns-cta {
    display: inline-block;
    width: fit-content;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #ffffff;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease 0.6s,
        transform 0.8s ease 0.6s,
        color 0.3s ease,
        border-color 0.3s ease;
}

.ns-hero-slider .ns-cta:hover,
.ns-hero-slider .ns-cta:focus {
    color: var(--ns-accent, #d6a77a);
    border-color: var(--ns-accent, #d6a77a);
}

/* Animations on active slide */
.ns-hero-slider .swiper-slide-active .ns-pretitle,
.ns-hero-slider .swiper-slide-active .ns-title,
.ns-hero-slider .swiper-slide-active .ns-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Counter top-left */
.ns-hero-slider .ns-counter {
    position: absolute;
    top: 40px;
    left: 8vw;
    z-index: 10;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ns-hero-slider .ns-counter-current {
    font-size: 18px;
}

.ns-hero-slider .ns-counter-separator {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.ns-hero-slider .ns-counter-total {
    color: rgba(255, 255, 255, 0.6);
}

/* Navigation arrows bottom-right */
.ns-hero-slider .ns-nav {
    position: absolute;
    bottom: 50px;
    right: 8vw;
    z-index: 10;
    display: flex;
    gap: 16px;
}

.ns-hero-slider .ns-nav-btn {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    padding: 0;
}

.ns-hero-slider .ns-nav-btn:hover,
.ns-hero-slider .ns-nav-btn:focus {
    background: var(--ns-accent, #d6a77a);
    border-color: var(--ns-accent, #d6a77a);
    outline: none;
}

.ns-hero-slider .ns-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* Scroll indicator bottom-left */
.ns-hero-slider .ns-scroll {
    position: absolute;
    bottom: 50px;
    left: 8vw;
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ns-hero-slider .ns-scroll-line {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.ns-hero-slider .ns-scroll-line::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    background: #ffffff;
    animation: ns-scroll-anim 2s infinite;
}

@keyframes ns-scroll-anim {
    0%   { left: -20px; }
    100% { left: 40px; }
}

/* Mobile */
@media (max-width: 768px) {
    .ns-hero-slider .ns-counter,
    .ns-hero-slider .ns-nav,
    .ns-hero-slider .ns-scroll {
        display: none;
    }
    .ns-hero-slider .ns-slide-content {
        padding: 0 6vw;
    }
    .ns-hero-slider .ns-pretitle {
        margin-bottom: 20px;
    }
    .ns-hero-slider .ns-title {
        margin-bottom: 28px;
    }
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .ns-hero-slider .ns-pretitle,
    .ns-hero-slider .ns-title,
    .ns-hero-slider .ns-cta {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .ns-hero-slider .ns-scroll-line::after {
        animation: none;
    }
}
