/* ==========================================
   DUPLIC — Home sections after the showroom
   Same dark world: portfolio strip, process, 35+ anos, reviews, final CTA.
   ========================================== */

.xp-section {
    position: relative;
    padding: 16vh var(--xp-pad);
    background: var(--xp-bg);
    color: var(--xp-ink);
    border-top: 1px solid var(--xp-line);
}

.xp-section__head {
    max-width: 720px;
    margin-bottom: 56px;
}

.xp-section__title {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.6vw, 4.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--xp-ink);
}

.xp-section__lead {
    max-width: 46ch;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--xp-mute);
}

.xp-section__more {
    margin-top: 40px;
}

/* ---------- Trabalhos reais: horizontal strip, native scroll-snap ---------- */
.xp-work__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(240px, 26vw, 420px);
    gap: 24px;
    margin: 0 calc(var(--xp-pad) * -1);
    padding: 0 var(--xp-pad) 20px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--xp-pad);
    scrollbar-width: thin;
    scrollbar-color: var(--xp-line) transparent;
}

.xp-work__item {
    scroll-snap-align: start;
}

.xp-work__item figure {
    margin: 0;
}

.xp-work__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
    filter: saturate(0.92) brightness(0.92);
    transition: filter 0.5s var(--xp-ease), transform 0.8s var(--xp-ease);
}

.xp-work__item:hover img {
    filter: none;
    transform: scale(1.015);
}

.xp-work__item figcaption {
    display: flex;
    gap: 12px;
    padding-top: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--xp-mute);
}

.xp-work__item figcaption span {
    flex: none;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    line-height: 1.9;
    color: var(--xp-ink);
}

/* ---------- Processo ---------- */
.xp-steps__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.xp-steps__list li {
    padding-top: 24px;
    border-top: 1px solid var(--xp-line);
}

.xp-steps__n {
    display: block;
    margin-bottom: 28px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    color: var(--xp-mute);
}

.xp-steps__list li:nth-child(1) .xp-steps__n { color: #00A8E1; }
.xp-steps__list li:nth-child(2) .xp-steps__n { color: #E6007E; }
.xp-steps__list li:nth-child(3) .xp-steps__n { color: #FFD100; }

.xp-steps__list h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--xp-ink);
}

.xp-steps__list p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--xp-mute);
}

/* ---------- 35+ anos ---------- */
.xp-legacy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 6vw;
    align-items: center;
}

.xp-legacy__mark {
    font-size: clamp(8rem, 24vw, 22rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.07em;
    color: transparent;
    background: linear-gradient(90deg, #00A8E1, #E6007E 45%, #FFD100);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.9;
    user-select: none;
}

.xp-legacy__facts {
    margin: 32px 0 36px;
}

.xp-legacy__facts div {
    padding: 18px 0;
    border-top: 1px solid var(--xp-line);
}

.xp-legacy__facts div:last-child {
    border-bottom: 1px solid var(--xp-line);
}

.xp-legacy__facts dt {
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--xp-ink);
}

.xp-legacy__facts dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--xp-mute);
}

.xp-legacy__links,
.xp-reviews__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

/* ---------- Avaliações ---------- */
.xp-reviews__map {
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid var(--xp-line);
    border-radius: 2px;
}

.xp-reviews__map iframe {
    display: block;
    border: 0;
    filter: grayscale(0.4) contrast(1.05);
}

/* ---------- CTA final ---------- */
.xp-final {
    padding-top: 20vh;
    padding-bottom: 20vh;
    text-align: left;
}

.xp-final__title {
    margin: 0 0 24px;
    font-size: clamp(2.6rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.045em;
    color: var(--xp-ink);
}

.xp-final .xp-section__lead {
    margin-bottom: 40px;
}

/* Global hyphens:auto breaks display type ("me-rece"): headlines wrap on whole words only */
body.xp-home h1,
body.xp-home h2,
body.xp-home h3 {
    hyphens: manual;
    -webkit-hyphens: manual;
}

/* Legacy footer sits on the same dark world */
body.xp-home .footer {
    border-top: 1px solid var(--xp-line);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .xp-section {
        padding: 12vh 24px;
    }

    .xp-section__head {
        margin-bottom: 36px;
    }

    .xp-work__track {
        grid-auto-columns: 74vw;
        gap: 16px;
        margin: 0 -24px;
        padding: 0 24px 16px;
        scroll-padding-inline: 24px;
    }

    .xp-steps__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .xp-steps__list li {
        padding: 20px 0 28px;
    }

    .xp-steps__n {
        margin-bottom: 12px;
    }

    .xp-legacy {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .xp-legacy__mark {
        font-size: 42vw;
    }

    .xp-reviews__map iframe {
        height: 300px;
    }
}
