/* ============================================
   Home Hero — clone Logistica Home 02
   Prime Slider “General” skin (adapted)
   Ref: themes.pixelwars.org/logistica/demo-01/home-02/
   ============================================ */

.ps-hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    background: #061a2e;
}

.ps-hero__viewport {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 630px;
}

.ps-hero__slides {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
}

.ps-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
    z-index: 0;
}

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

.ps-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ps-hero__img {
    position: absolute;
    inset: -6%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center left;
}

.ps-hero__slide.is-active .ps-hero__img {
    animation: psKenBurns 10s ease-out forwards;
}

@keyframes psKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.ps-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 26, 46, 0.55);
    z-index: 1;
}

.ps-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 clamp(30px, 5vw, 50px);
    text-align: center;
    color: #fff;
}

.ps-hero__title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(28px, 6.5vw, 90px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.ps-hero__excerpt {
    margin: clamp(20px, 5vw, 30px) auto 0;
    color: #ddd;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.6;
    max-width: min(550px, 90%);
}

.ps-hero__excerpt p { margin: 0; }

.ps-hero__cta {
    margin-top: 28px;
    display: inline-flex;
}

.ps-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 700;
    padding: 12px 72px 12px 28px;
    position: relative;
    border-radius: 80px;
    color: #fff;
    border: 2px solid var(--highlight);
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease;
}

.ps-hero__btn:hover {
    background: var(--highlight);
    color: #fff;
}

.ps-hero__btn-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 37px;
    height: 37px;
    border-radius: 40px;
    background: var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ps-hero__btn:hover .ps-hero__btn-icon {
    background: #fff;
}

.ps-hero__btn-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    transition: stroke 0.3s ease;
}

.ps-hero__btn:hover .ps-hero__btn-icon svg {
    stroke: var(--highlight);
}

/* Dots — bottom left */
.ps-hero__dots {
    position: absolute;
    left: 42px;
    bottom: 48px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-hero__dot {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.ps-hero__dot::before {
    content: '';
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 100%;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.35);
}

.ps-hero__dot.is-active::before {
    border-width: 6px;
    width: 22px;
    height: 22px;
    background: transparent;
}

/* Arrows — bottom right */
.ps-hero__nav {
    position: absolute;
    right: 40px;
    bottom: 48px;
    z-index: 5;
    display: flex;
    gap: 12px;
}

.ps-hero__arrow {
    position: relative;
    border-radius: 50%;
    height: 48px;
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.ps-hero__arrow svg {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
}

.ps-hero__arrow:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}

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

.ps-hero__arrow:active {
    transform: scale(0.96);
}

/* Scroll mouse — bottom center */
.ps-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease, opacity 0.3s ease;
}

.ps-hero__scroll:hover {
    color: #fff;
}

.ps-hero__mouse {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
}

.ps-hero__mouse-wheel {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: currentColor;
    animation: psMouseWheel 1.6s ease-in-out infinite;
}

@keyframes psMouseWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    60% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Slide text enter */
.ps-hero__slide.is-active .ps-hero__title {
    animation: psFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ps-hero__slide.is-active .ps-hero__excerpt {
    animation: psFadeUp 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ps-hero__slide.is-active .ps-hero__cta {
    animation: psFadeUp 0.85s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes psFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
    .ps-hero__viewport { min-height: 100svh; }

    .ps-hero__dots {
        left: 20px;
        bottom: 28px;
    }

    .ps-hero__nav {
        right: 20px;
        bottom: 28px;
    }

    .ps-hero__arrow {
        height: 40px;
        width: 40px;
    }

    .ps-hero__scroll {
        bottom: 20px;
    }

    .ps-hero__title {
        font-size: clamp(26px, 8vw, 42px);
    }

    .ps-hero__btn {
        padding: 10px 58px 10px 20px;
    }

    .ps-hero__btn-icon {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 1024px) {
    .ps-hero__scroll { bottom: 36px; }
    .ps-hero__nav { right: 100px; bottom: 60px; }
    .ps-hero__dots { left: 100px; bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
    .ps-hero__slide.is-active .ps-hero__img { animation: none; }
    .ps-hero__slide.is-active .ps-hero__title,
    .ps-hero__slide.is-active .ps-hero__excerpt,
    .ps-hero__slide.is-active .ps-hero__cta { animation: none; }
    .ps-hero__mouse-wheel { animation: none; }
}
