/* ============================================================
   Slider interativo — "Como levamos você ao topo"
   Efeito drag/parallax (convertido de SCSS para CSS puro, sem jQuery)
   Fundos: imagens de Public/imagens/processo-N.jpg
           (fallback gradiente da marca se a imagem não existir)
   ============================================================ */

.ms-process {
    padding: 0;
    background:
        radial-gradient(120% 90% at 85% 50%, rgba(131, 229, 9, 0.10) 0%, rgba(131, 229, 9, 0) 55%),
        linear-gradient(118deg,
            #000000 0%,
            #05140b 12%,
            #0a2415 26%,
            #0f3d22 42%,
            #156b35 56%,
            #0c3a20 72%,
            #06160c 86%,
            #000000 100%);
    overflow: hidden;
}

.ms-process .cont {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.ms-process .ms-process-figure {
    position: absolute;
    top: 0;
    right: 0;
    width: 46%;
    height: 100%;
    background: url('../Public/imagem/lucca.png') right bottom / cover no-repeat;
    z-index: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}

.ms-process .ms-process-head {
    position: absolute;
    top: clamp(28px, 6vh, 56px);
    left: clamp(20px, 6vw, 80px);
    right: auto;
    z-index: 25;
    text-align: left;
    pointer-events: none;
    max-width: 60%;
}
.ms-process .ms-process-head .ms-lead {
    color: rgba(255, 255, 255, 0.82);
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
}

/* Slider */
.ms-process .slider {
    position: relative;
    height: 100%;
    z-index: 2;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}
.ms-process .slider:active { cursor: grabbing; }

.ms-process .slider.animation { transition: transform 750ms ease-in-out; }
.ms-process .slider.animation .slide__darkbg  { transition: transform 750ms ease-in-out; }
.ms-process .slider.animation .slide__text    { transition: transform 750ms ease-in-out; }
.ms-process .slider.animation .slide__letter  { transition: transform 750ms ease-in-out; }

/* Slide */
.ms-process .slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.ms-process .slide--1 { left: 0%; }
.ms-process .slide--2 { left: 100%; }
.ms-process .slide--3 { left: 200%; }
.ms-process .slide--4 { left: 300%; }
.ms-process .slide--5 { left: 400%; }

.ms-process .slide__darkbg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    z-index: 10;
    background: none;
}
.ms-process .slide__darkbg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: transparent;
}

.ms-process .slide__text-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
    height: 100%;
    z-index: 15;
    padding-left: clamp(20px, 6vw, 80px);
    text-align: left;
}

.ms-process .slide__letter {
    display: none;
}

.ms-process .slide__text {
    position: relative;
    z-index: 16;
    font-family: var(--ms-font), 'Space Grotesk', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    transform: translate3d(0, 0, 0);
    color: #fff;
    will-change: transform;
    -webkit-user-select: none;
    user-select: none;
    text-align: left;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    letter-spacing: 8px;
    max-width: 60%;
    border-bottom: 2px solid rgba(131, 229, 9, 0.45);
    padding-bottom: 14px;
}

.ms-process .slide__index {
    font-family: var(--ms-font), 'Space Grotesk', sans-serif;
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 700;
    letter-spacing: 3px;
    color: #83e509;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.ms-process .slide__desc {
    position: static;
    transform: none;
    max-width: 500px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(14px, 1.5vw, 19px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.3px;
    z-index: 16;
}

/* Fundos agora vêm da própria seção (.ms-process): gradiente verde + lucca.png à direita */

/* Nav bullets */
.ms-process .nav {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    z-index: 20;
}
.ms-process .nav__slide {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #fff;
    margin-left: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.ms-process .nav__slide:first-child { margin-left: 0; }
.ms-process .nav__slide:hover::after { transform: translate(-50%, -50%) scale(1, 1); opacity: 1; }
.ms-process .nav__slide::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0, 0);
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0;
    transition: 300ms;
}
.ms-process .nav-active::after {
    transform: translate(-50%, -50%) scale(1, 1);
    opacity: 1;
}

@media (max-width: 400px) {
    .ms-process .nav__slide { width: 10px; height: 10px; }
    .ms-process .slide__text { font-size: 12vw; letter-spacing: 6px; }
}

/* Side nav */
.ms-process .side-nav {
    position: absolute;
    width: 10%;
    height: 100%;
    top: 0;
    z-index: 20;
    cursor: pointer;
    opacity: 0;
    transition: opacity 300ms;
}
.ms-process .side-nav:hover { opacity: 0.18; }
.ms-process .side-nav--right {
    right: 0;
    background-image: linear-gradient(to right, rgba(131, 229, 9, 0) 0%, rgb(131, 229, 9) 100%);
}
.ms-process .side-nav--left {
    left: 0;
    background-image: linear-gradient(to left, rgba(131, 229, 9, 0) 0%, rgb(131, 229, 9) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .ms-process .slider,
    .ms-process .slider.animation .slide__darkbg,
    .ms-process .slider.animation .slide__text,
    .ms-process .slider.animation .slide__letter { transition: none !important; }
}
