/* =========================================================
   Nova Vita — 03. Como trabalhamos (Venda seu imóvel)
   Prefixo: .nv-processo
   Grid editorial 3×2 conforme prompt aprovado.
   ========================================================= */

.nv-processo {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f6f3ec;
    color: #25291f;
}

.nv-processo *,
.nv-processo *::before,
.nv-processo *::after {
    box-sizing: border-box;
}

.nv-processo__inner {
    position: relative;
    width: min(1500px, calc(100% - 100px));
    margin: 0 auto;
    padding: 45px 0 35px;
}

/* ========================================================
   MICROTEXTOS LATERAIS
======================================================== */

.nv-processo__micro {
    position: absolute;
    top: 120px;
    z-index: 2;
    font-family: "Inter", sans-serif;
    font-size: 8px;
    line-height: 1.8;
    letter-spacing: 4px;
    color: #7b7c70;
}

.nv-processo__micro p {
    margin: 0;
}

.nv-processo__micro span {
    display: block;
    width: 32px;
    height: 1px;
    margin-top: 17px;
    background: #898a7e;
}

.nv-processo__micro--left {
    left: 0;
}

.nv-processo__micro--right {
    right: 0;
}

/* ========================================================
   CABEÇALHO
======================================================== */

.nv-processo__header {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.nv-processo__brand-top {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #63684f;
}

.nv-processo__brand-line {
    display: block;
    width: 38px;
    height: 1px;
    margin: 22px auto 45px;
    background: #727664;
}

.nv-processo__title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(66px, 6vw, 96px);
    line-height: .95;
    font-weight: 400;
    letter-spacing: -1.5px;
    color: #272b22;
}

.nv-processo__title span {
    color: #59613f;
}

.nv-processo__intro {
    margin: 18px 0 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 400;
    color: #55574f;
}

/* ========================================================
   GRID 3×2
======================================================== */

.nv-processo__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 62px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.nv-processo__item {
    position: relative;
    min-height: 270px;
    margin: 0;
    padding: 0 55px 45px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition:
        background .3s ease,
        transform .3s ease;
}

/* Divisórias verticais — sem borda externa */
.nv-processo__item:nth-child(3n + 2),
.nv-processo__item:nth-child(3n + 3) {
    border-left: 1px solid rgba(78, 82, 64, .22);
}

/* Divisória horizontal entre as fileiras */
.nv-processo__item:nth-child(n + 4) {
    padding-top: 42px;
    border-top: 1px solid rgba(78, 82, 64, .22);
}

.nv-processo__item:nth-child(5),
.nv-processo__item:nth-child(6) {
    border-left: 1px solid rgba(78, 82, 64, .22);
}

/* ========================================================
   NÚMERO → linha → título → texto
======================================================== */

.nv-processo__number {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 62px;
    line-height: 1;
    font-weight: 400;
    color: #5b623f;
    transition: transform .3s ease;
}

.nv-processo__number-line {
    display: block;
    width: 38px;
    height: 1px;
    margin: 18px 0 22px;
    background: #707561;
}

.nv-processo__item-title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #303329;
}

.nv-processo__item-text {
    max-width: 340px;
    margin: 24px 0 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    line-height: 1.28;
    font-weight: 400;
    color: #54554e;
}

/* ========================================================
   FOOTER
======================================================== */

.nv-processo__footer {
    margin-top: 38px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 35px;
}

.nv-processo__footer-left,
.nv-processo__footer-right {
    font-family: "Inter", sans-serif;
    font-size: 8px;
    line-height: 1.6;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #797a6e;
}

.nv-processo__footer-left p,
.nv-processo__footer-right p {
    margin: 0;
}

.nv-processo__footer-left span,
.nv-processo__footer-right span {
    display: block;
    width: 30px;
    height: 1px;
    margin-top: 15px;
    background: #85867a;
}

.nv-processo__footer-right {
    justify-self: end;
    text-align: left;
}

.nv-processo__footer-brand {
    min-width: 550px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.nv-processo__footer-brand span {
    height: 1px;
    background: rgba(78, 82, 64, .38);
}

.nv-processo__footer-brand strong {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    color: #5a5e4b;
}

/* ========================================================
   HOVER SUTIL
======================================================== */

.nv-processo__item:hover {
    background: rgba(96, 103, 77, .025);
}

.nv-processo__item:hover .nv-processo__number {
    transform: translateY(-3px);
}

/* ========================================================
   ANIMAÇÕES (só com JS)
======================================================== */

.js .nv-processo:not(.nv-processo--visible) .nv-processo__brand-top,
.js .nv-processo:not(.nv-processo--visible) .nv-processo__brand-line,
.js .nv-processo:not(.nv-processo--visible) .nv-processo__title,
.js .nv-processo:not(.nv-processo--visible) .nv-processo__intro,
.js .nv-processo:not(.nv-processo--visible) .nv-processo__item,
.js .nv-processo:not(.nv-processo--visible) .nv-processo__footer,
.js .nv-processo:not(.nv-processo--visible) .nv-processo__micro {
    opacity: 0;
    transform: translateY(18px);
}

.nv-processo__brand-top,
.nv-processo__brand-line,
.nv-processo__title,
.nv-processo__intro,
.nv-processo__item,
.nv-processo__footer,
.nv-processo__micro {
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.nv-processo--visible .nv-processo__brand-top,
.nv-processo--visible .nv-processo__brand-line,
.nv-processo--visible .nv-processo__title,
.nv-processo--visible .nv-processo__intro,
.nv-processo--visible .nv-processo__item,
.nv-processo--visible .nv-processo__footer,
.nv-processo--visible .nv-processo__micro {
    opacity: 1;
    transform: none;
}

.nv-processo--visible .nv-processo__title { transition-delay: .08s; }
.nv-processo--visible .nv-processo__intro { transition-delay: .13s; }
.nv-processo--visible .nv-processo__item:nth-child(1) { transition-delay: .12s; }
.nv-processo--visible .nv-processo__item:nth-child(2) { transition-delay: .18s; }
.nv-processo--visible .nv-processo__item:nth-child(3) { transition-delay: .24s; }
.nv-processo--visible .nv-processo__item:nth-child(4) { transition-delay: .30s; }
.nv-processo--visible .nv-processo__item:nth-child(5) { transition-delay: .36s; }
.nv-processo--visible .nv-processo__item:nth-child(6) { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
    .js .nv-processo:not(.nv-processo--visible) .nv-processo__brand-top,
    .js .nv-processo:not(.nv-processo--visible) .nv-processo__brand-line,
    .js .nv-processo:not(.nv-processo--visible) .nv-processo__title,
    .js .nv-processo:not(.nv-processo--visible) .nv-processo__intro,
    .js .nv-processo:not(.nv-processo--visible) .nv-processo__item,
    .js .nv-processo:not(.nv-processo--visible) .nv-processo__footer,
    .js .nv-processo:not(.nv-processo--visible) .nv-processo__micro,
    .nv-processo__brand-top,
    .nv-processo__brand-line,
    .nv-processo__title,
    .nv-processo__intro,
    .nv-processo__item,
    .nv-processo__footer,
    .nv-processo__micro {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nv-processo__item:hover .nv-processo__number {
        transform: none;
    }
}

/* ========================================================
   TABLET — 2 colunas
======================================================== */

@media (max-width: 1100px) {
    .nv-processo__inner {
        width: calc(100% - 60px);
    }

    .nv-processo__micro {
        display: none;
    }

    .nv-processo__title {
        font-size: 70px;
    }

    .nv-processo__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nv-processo__item {
        border: none !important;
        padding: 35px 45px;
        border-bottom: 1px solid rgba(78, 82, 64, .22) !important;
    }

    .nv-processo__item:nth-child(even) {
        border-left: 1px solid rgba(78, 82, 64, .22) !important;
    }

    .nv-processo__footer-brand {
        min-width: 390px;
    }
}

/* ========================================================
   MOBILE — 1 coluna
======================================================== */

@media (max-width: 700px) {
    .nv-processo__inner {
        width: 100%;
        padding: 45px 20px 30px;
    }

    .nv-processo__brand-top {
        font-size: 11px;
        letter-spacing: 5px;
    }

    .nv-processo__brand-line {
        margin-bottom: 32px;
    }

    .nv-processo__title {
        font-size: 50px;
        line-height: .98;
    }

    .nv-processo__intro {
        font-size: 21px;
    }

    .nv-processo__grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .nv-processo__item {
        min-height: auto;
        padding: 30px 0 34px !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(78, 82, 64, .22) !important;
    }

    .nv-processo__item:last-child {
        border-bottom: none !important;
    }

    .nv-processo__number {
        font-size: 52px;
    }

    .nv-processo__item-title {
        font-size: 30px;
    }

    .nv-processo__item-text {
        max-width: 100%;
        margin-top: 18px;
        font-size: 21px;
    }

    .nv-processo__footer {
        margin-top: 25px;
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .nv-processo__footer-left,
    .nv-processo__footer-right {
        justify-self: center;
        text-align: center;
    }

    .nv-processo__footer-left span,
    .nv-processo__footer-right span {
        margin-left: auto;
        margin-right: auto;
    }

    .nv-processo__footer-brand {
        min-width: 0;
        width: 100%;
        grid-row: 1;
        gap: 15px;
    }

    .nv-processo__footer-brand strong {
        font-size: 15px;
        letter-spacing: 5px;
    }
}

@media (max-width: 420px) {
    .nv-processo__title {
        font-size: 43px;
    }

    .nv-processo__item-text {
        font-size: 19px;
    }
}
