/* Responsive Media Queries - Mobile First & Tweaks */
@media screen and (max-width: 768px) {
    /* Base mobile: body verde para eliminar faixa branca no overscroll */
    body { background-color: var(--noce-green); }

    /* ── MANIFESTO ── */
    .manifesto {
        min-height: calc(var(--real-vh, 1dvh) * 100);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem 5vw;
    }
    .manifesto-wrap {
        flex-direction: column;
        text-align: center;
        gap: 0;
        margin-bottom: 1rem;
    }
    .manifesto-wrap h2 {
        white-space: normal;
        line-height: 1.2;
    }

    /* ── CTA MID (Cola embaixo do manifesto, sem tela própria) ── */
    .cta-mid {
        min-height: auto !important;
        padding: 0 5vw 4rem;
    }

    /* ── PROCESSO — Texto narrativo centralizado ── */
    .processo {
        min-height: calc(var(--real-vh, 1dvh) * 100);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 6vw;
    }
    .processo-content {
        text-align: center;
    }
    /* Ocultar estrutura antiga caso sobreviva */
    .proc-steps, .proc-linha-progresso { display: none; }

    /* ── PARCEIROS — Grid 3 colunas com clips circulares ── */
    .parceiros-sec {
        padding: 5rem 5vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .parceiros-title {
        position: static;
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2.5rem;
    }
    .parceiros-spotlight {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5vw;
        padding: 0;
        justify-items: center;
        width: 100%;
    }
    .parc-logo {
        width: 22vw;
        height: 22vw;
        max-width: none !important;
        border-radius: 50%;
        object-fit: cover;
        background: none;
        padding: 0;
        margin: 0;
        opacity: 0.85;
        filter: none;
    }
    .parc-logo.active {
        opacity: 1;
        transform: scale(1.08);
    }

    /* ── CONTATO CTA ── */
    /* Lightbox — mobile: padding menor, setas menores */
    .lb-slide { padding: 3.5rem 0.5rem 3rem; }
    .lb-arrow { width: 40px; height: 40px; }
    .lb-prev  { left: 0.75rem; }
    .lb-next  { right: 0.75rem; }

    .contato {
        min-height: calc(var(--real-vh, 1dvh) * 100);
    }
    .cta-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
        gap: 1rem;
    }

    /* ── AMBIENTE ENTRY FIX ── */
    .ambiente-entry h2 {
        font-size: clamp(3rem, 15vw, 6rem);
    }
    /* Setas só no desktop — ocultar no mobile */
    .amb-arrow { display: none !important; }
    /* Mobile track: sem overflow-x preso (o swipe é nativo) */
    .ambiente-track {
        overflow-x: auto;
        padding-left: 0;
    }

    .hero-logo {
        font-size: 25vw;
    }
    
    .hero-content .main-logo-img {
        height: var(--hero-logo-size-mobile, 25vw);
    }

    .section-entry-word {
        font-size: clamp(2rem, 10vw, 4rem);
        padding: 0 5vw;
    }

    /* Native Horizontal Scrolling para mobile */
    .ambiente-pin-wrap {
        height: auto;
        min-height: 65vh; /* Reduzido: mostra mais largura de cada foto */
        align-items: center;
    }
    .ambiente-track {
        height: 65vh; /* Menos corte vertical nas fotos paisagem */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-left: 0;
        width: 100vw;
        display: flex;
        -webkit-overflow-scrolling: touch;
    }
    .gallery-item {
        scroll-snap-align: start;
        height: 65vh;
        width: 100vw;
    }
    .gallery-item img {
        object-fit: var(--fit-mob, cover);
        object-position: var(--pos-mob, center center);
    }

    /* Ajuste para as novas legendas não sumirem */
    .gallery-item .micro-caption {
        bottom: 1.5rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        text-align: center;
    }

    /* ── MATERIALIDADE — Círculos dinâmicos mobile ── */
    .acabamentos-sec {
        min-height: auto;
        padding: 8vh 0 10vh;
    }
    .acabamentos-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 5vw;
        padding: 0 5vw 2rem;
        width: 100%;
        overflow: visible;
    }
    /* Reset do escalonamento vertical no mobile — grid 2 colunas já cria ritmo */
    .swatch:nth-child(n) { margin-top: 0; }
    /* Linhas pares levemente deslocadas para quebrar o grid simétrico */
    .swatch:nth-child(4n+3),
    .swatch:nth-child(4n+4) { margin-top: 4vw; }

    .swatch {
        width: 38vw;
        height: 38vw;
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        transition: transform 0.12s ease, box-shadow 0.12s ease;
    }
    .swatch:active { transform: scale(0.96); }
    .swatch .name {
        padding: 0.4rem 0.5rem;
        font-size: 8.5px;
        letter-spacing: 0.06em;
    }
}

/* Swipe Icon Animation */
.swipe-icon-container {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.swipe-icon-container.visible {
    opacity: 1;
}
.swipe-text {
    font-size: 10px;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--noce-white);
    margin-bottom: 5px;
}
.swipe-hand {
    width: 30px;
    height: 30px;
    fill: var(--noce-white);
    animation: swipeAnim 2s infinite ease-in-out;
}

@keyframes swipeAnim {
    0% { transform: translateX(10px) rotate(5deg); opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(-20px) rotate(-5deg); opacity: 0; }
}

/* ── TABLET (769px–1024px) ───────────────────────────────────── */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* Swatches — tablet: manter layout flex com tamanho reduzido */
    .swatch { width: clamp(100px, 13vw, 160px); height: clamp(100px, 13vw, 160px); }

    /* Botões do contato em coluna em tablet */
    .cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .btn-outline, .btn-cta-final { text-align: center; }

    /* Parceiros: logos um pouco menores */
    .parc-logo { width: 160px; margin: 5vh 0; }

    /* Processo: text centered on tablet too */
    .processo-content { max-width: 70vw; }
}
