/* ============================================================
   HOME.CSS — landing page do RecycleWays
   Usa as variáveis e componentes globais do style.css
   (--color-*, .btn, .btn-primary, .progress-bar, .progress-fill).
   Remova do home.css antigo: .hero-*, .stats-grid, .stat-box,
   .projects-grid, .project-card.
   ============================================================ */

:root {
    --lp-largura: 1100px;
    /* Paleta da landing — ajuste aqui para mudar a página toda */
    --lp-escuro: #0b4a37;   /* hero, rodapé de chamada, botões escuros */
    --lp-medio:  #0d7a5f;   /* hover dos botões escuros */
    --lp-acao:   #34d399;   /* botão principal */
    --lp-realce: #6ee7b7;   /* detalhes claros sobre fundo escuro */
    --lp-menta:  #e8f7ef;   /* faixas e ícones de fundo suave */
}

.lp-secao__miolo, .lp-cta__miolo, .lp-hero__inner { max-width: var(--lp-largura); margin: 0 auto; }

/* ---------- Hero ---------- */
.lp-hero {
    background: var(--lp-escuro);
    color: #fff;
    padding: 4rem 1.5rem 6rem;
}
.lp-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}
.lp-hero__selo {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: .3rem .8rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--lp-realce);
}
.lp-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin-bottom: 1.2rem;
}
.lp-hero__lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255,255,255,.82);
    max-width: 52ch;
    margin-bottom: 2rem;
}
.lp-hero__botoes { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.lp-link-claro { color: var(--lp-realce); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.lp-link-claro:hover { color: #fff; }

/* Carrossel de métricas do histórico dos projetos */
.lp-carrossel { min-width: 0; }
.lp-carrossel__trilho {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    border-radius: 18px;
    outline-offset: 4px;
}
.lp-carrossel__trilho::-webkit-scrollbar { display: none; }
.lp-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: 300px;
    padding: 1.75rem;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    display: flex;
    flex-direction: column;
}
.lp-slide__selo { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-realce); margin: 0 0 .4rem; }
.lp-slide__titulo { color: #fff; font-size: 1.45rem; line-height: 1.2; margin: 0 0 1.4rem; overflow-wrap: anywhere; }
.lp-slide__titulo a { color: inherit; text-decoration: none; }
.lp-slide__titulo a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lp-slide__numeros { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: auto 0 0; }
.lp-slide__numeros--1 { grid-template-columns: 1fr; }
.lp-slide__numeros--3 .lp-slide__numero:first-child { grid-column: 1 / -1; }
.lp-slide__numero {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(0,0,0,.18);
    display: flex;
    flex-direction: column-reverse;
    gap: .2rem;
    min-width: 0;
}
.lp-slide__numero dd {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.lp-slide__numero dd small { font-size: .55em; font-weight: 700; margin-left: .15em; color: var(--lp-realce); }
.lp-slide__numero dt { font-size: .85rem; color: rgba(255,255,255,.75); }
.lp-carrossel__controles { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; }
.lp-carrossel__seta {
    width: 40px; height: 40px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: transparent; color: #fff; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.lp-carrossel__seta:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.lp-carrossel__seta:active { transform: scale(.96); }
.lp-carrossel__pontos { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem; }
.lp-carrossel__ponto {
    width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.lp-carrossel__ponto::before {
    content: ""; width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255,255,255,.35);
    transition: width .2s ease, background-color .2s ease;
}
.lp-carrossel__ponto[aria-current="true"]::before { width: 20px; background: var(--lp-realce); }

/* ---------- Números ---------- */
.lp-numeros {
    width: calc(100% - 3rem);
    max-width: var(--lp-largura);
    margin: -3rem auto 0;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--color-slate-200);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(6,44,33,.12);
    overflow: hidden;
}
.lp-numero { flex: 1 1 180px; padding: 1.4rem 1.6rem; border-right: 1px solid var(--color-slate-200); }
.lp-numero:last-child { border-right: 0; }
.lp-numero strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--lp-escuro);
}
.lp-numero span { font-size: .9rem; color: #64748b; }

/* ---------- Seções ---------- */
.lp-secao { max-width: var(--lp-largura); margin: 0 auto; padding: 4.5rem 1.5rem 0; }
.lp-secao--faixa { max-width: none; margin-top: 4.5rem; padding: 3.5rem 1.5rem; background: var(--lp-menta); }
.lp-secao__cab {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.lp-secao__cab h2 { margin-bottom: .3rem; font-size: 1.9rem; letter-spacing: -.01em; }
.lp-secao__cab h2::before { display: none; }
.lp-secao__cab p { color: #64748b; max-width: 60ch; }
.lp-link { font-weight: 700; color: var(--lp-medio); }
.lp-link:hover { text-decoration: underline; }
.lp-vazio { color: #64748b; padding: 1rem 0; }

/* ---------- Acesso rápido ---------- */
.lp-aviso {
    padding: .45rem .9rem; border-radius: 999px;
    background: #fffbeb; border: 1px solid var(--color-impact-amber);
    color: #92400e; font-size: .85rem; font-weight: 600;
}
.lp-grupo { margin-bottom: 2rem; }
.lp-grupo__titulo {
    display: flex; align-items: center; gap: .7rem;
    margin-bottom: 1rem; font-size: 1.05rem;
}
.lp-grupo__titulo::before {
    content: ''; width: 5px; height: 20px; border-radius: 10px;
    background: var(--color-impact-green); flex-shrink: 0;
}
.lp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr)); gap: 1rem; }
.lp-tile {
    position: relative; display: flex; align-items: center; gap: .9rem;
    padding: 1rem 1.1rem; background: #fff;
    border: 1px solid var(--color-slate-200); border-radius: 14px;
    color: var(--color-text-main);
    transition: border-color .2s, box-shadow .2s;
}
.lp-tile:hover { border-color: var(--color-impact-green); box-shadow: 0 8px 22px rgba(6,44,33,.08); color: var(--color-text-main); }
.lp-tile__icone {
    display: grid; place-items: center; flex: 0 0 44px; height: 44px;
    border-radius: 12px; background: var(--lp-menta); color: var(--lp-medio);
}
.lp-tile__texto { min-width: 0; }
.lp-tile__texto strong { display: block; font-size: .95rem; color: var(--color-text-headings); line-height: 1.25; }
.lp-tile__texto small { display: block; margin-top: .15rem; font-size: .8rem; color: #64748b; line-height: 1.3; }

/* Ação principal, no mesmo verde escuro dos botões do site */
.lp-tile--destaque { background: var(--lp-escuro); border-color: var(--lp-escuro); }
.lp-tile--destaque .lp-tile__icone { background: rgba(255,255,255,.12); color: var(--lp-realce); }
.lp-tile--destaque .lp-tile__texto strong { color: #fff; }
.lp-tile--destaque .lp-tile__texto small { color: rgba(255,255,255,.75); }
.lp-tile--destaque:hover { background: var(--lp-medio); border-color: var(--lp-medio); color: #fff; }

/* Pendências: contador no canto do card */
.lp-tile__contador {
    margin-left: auto; min-width: 30px; padding: .15rem .55rem; text-align: center;
    border-radius: 999px; background: var(--color-slate-200); color: #475569;
    font-family: 'Montserrat', sans-serif; font-size: .85rem; font-weight: 800;
}
.lp-tile--pendente { border-color: #fcd34d; background: #fffdf5; }
.lp-tile--pendente .lp-tile__icone { background: #fef3c7; color: #b45309; }
.lp-tile--pendente .lp-tile__contador { background: var(--color-impact-amber); color: #fff; }

/* ---------- Como funciona ---------- */
.lp-passos {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: passo;
}
.lp-passos li { position: relative; padding-top: .2rem; }
.lp-passos li:not(:last-child)::after {
    content: ''; position: absolute; top: 20px; left: 52px; right: -12px;
    border-top: 2px dashed var(--lp-realce);
}
.lp-passos__num {
    display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem;
    border-radius: 50%; background: var(--lp-escuro); color: #fff;
    font-family: 'Montserrat', sans-serif; font-weight: 800; position: relative; z-index: 1;
}
.lp-passos h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.lp-passos p { font-size: .92rem; color: #64748b; }

/* ---------- Mosaico de fotos ---------- */
.lp-mosaico {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
    gap: .8rem;
}
.lp-mosaico__item { position: relative; overflow: hidden; border-radius: 12px; background: var(--color-slate-200); }
.lp-mosaico__item:first-child { grid-column: span 2; grid-row: span 2; }
.lp-mosaico__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.lp-mosaico__item:hover img { transform: scale(1.04); }
.lp-mosaico__item span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .6rem;
    font-size: .82rem; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
}

/* ---------- Projetos ---------- */
.lp-projetos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.6rem; }
.lp-projeto {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--color-slate-200); border-radius: 14px; color: inherit;
}
.lp-projeto:hover { border-color: var(--color-impact-green); box-shadow: 0 10px 28px rgba(6,44,33,.1); color: inherit; }
.lp-projeto__img { height: 190px; background-size: cover; background-position: center; background-color: var(--color-slate-200); }
.lp-projeto__corpo { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.lp-projeto__corpo h3 { font-size: 1.1rem; }
.lp-projeto__corpo p {
    font-size: .9rem; color: #64748b;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-projeto__meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; color: #64748b; }
.lp-projeto__meta strong { color: var(--lp-medio); }

/* ---------- Chamada final ---------- */
.lp-cta { margin-top: 5rem; padding: 3.5rem 1.5rem; background: var(--lp-escuro); color: #fff; }
.lp-cta__miolo { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.lp-cta h2 { color: #fff; font-size: 1.8rem; margin-bottom: .4rem; }
.lp-cta h2::before { display: none; }
.lp-cta p { color: rgba(255,255,255,.8); max-width: 55ch; }
.lp-cta__botoes { display: flex; gap: .8rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Botões da landing ---------- */
.lp-hero .btn-primary, .lp-secao .btn-primary, .lp-cta .btn-primary, .lp-modal .btn-primary {
    background: var(--lp-acao); color: var(--lp-escuro) !important;
}
.lp-hero .btn-primary:hover, .lp-secao .btn-primary:hover, .lp-cta .btn-primary:hover, .lp-modal .btn-primary:hover {
    background: var(--lp-realce); color: var(--lp-escuro) !important;
}
.lp-secao .btn:not(.btn-primary) { background: var(--lp-escuro); }
.lp-secao .btn:not(.btn-primary):hover { background: var(--lp-medio); }
.lp-projeto .progress-fill { background: linear-gradient(90deg, var(--lp-medio), var(--lp-acao)); }

/* ---------- Acesso rápido: mantém o verde padrão do site ---------- */
#painel {
    --lp-escuro: #062c21;
    --lp-medio:  #059669;
    --lp-acao:   #10b981;
    --lp-realce: #a7f3d0;
    --lp-menta:  #ecfdf5;
}


/* ============================================================
   RESPONSIVO — fica por último de propósito, para prevalecer
   Pontos de quebra: 1024 (tablet largo) · 900 (tablet) · 600 (celular) · 380 (celular pequeno)
   ============================================================ */
.lp-tile__texto, .lp-projeto__corpo h3, .lp-projeto__corpo p, .lp-hero h1 { overflow-wrap: anywhere; }
.lp-mosaico__item img { max-width: 100%; }

@media (max-width: 1024px) {
    .lp-hero { padding: 3rem 1.5rem 5.5rem; }
    .lp-hero__inner { gap: 2rem; }
    .lp-passos { gap: 1.25rem; }
}

@media (max-width: 900px) {
    .lp-hero__inner { grid-template-columns: 1fr; }
    .lp-hero__lead { max-width: 60ch; }
    .lp-slide { min-height: 0; }

    .lp-secao { padding-top: 3.5rem; }
    .lp-secao--faixa { margin-top: 3.5rem; padding: 3rem 1.5rem; }
    .lp-cta { margin-top: 3.5rem; }

    .lp-passos { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
    .lp-passos li::after { display: none; }
    .lp-mosaico { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}

@media (max-width: 600px) {
    /* Hero */
    .lp-hero { padding: 2rem 1rem 4.5rem; }
    .lp-hero__selo { margin-bottom: .9rem; }
    .lp-hero__lead { font-size: 1rem; margin-bottom: 1.5rem; }
    .lp-hero__botoes { flex-direction: column; align-items: stretch; }
    .lp-hero__botoes .btn { width: 100%; justify-content: center; }
    .lp-hero__botoes .lp-link-claro { text-align: center; padding: .4rem 0; }
    .lp-slide { padding: 1.25rem; }
    .lp-slide__titulo { font-size: 1.25rem; margin-bottom: 1rem; }
    .lp-slide__numero { padding: .8rem .9rem; }

    /* Números: uma linha por item */
    .lp-numeros { width: calc(100% - 2rem); margin-top: -2.5rem; }
    .lp-numero {
        flex-basis: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
        padding: 1rem 1.2rem; border-right: 0; border-bottom: 1px solid var(--color-slate-200);
    }
    .lp-numero:last-child { border-bottom: 0; }
    .lp-numero strong { font-size: 1.45rem; }
    .lp-numero span { text-align: right; }

    /* Seções */
    .lp-secao { padding: 3rem 1rem 0; }
    .lp-secao--faixa { padding: 2.5rem 1rem; margin-top: 3rem; }
    .lp-secao__cab { margin-bottom: 1.5rem; }
    .lp-secao__cab h2, .lp-cta h2 { font-size: 1.5rem; }
    .lp-secao__cab .btn { width: 100%; justify-content: center; }

    /* Acesso rápido */
    .lp-grupo { margin-bottom: 1.5rem; }
    .lp-tiles { grid-template-columns: 1fr; gap: .7rem; }
    .lp-tile { padding: .85rem .9rem; }

    /* Como funciona: vira linha do tempo vertical */
    .lp-passos { grid-template-columns: 1fr; gap: 1.6rem; }
    .lp-passos li { padding-left: 60px; min-height: 42px; }
    .lp-passos__num { position: absolute; left: 0; top: 0; margin: 0; }
    .lp-passos li:not(:last-child)::after {
        display: block; top: 48px; bottom: -1.5rem; left: 20px; right: auto;
        border-top: 0; border-left: 2px dashed var(--lp-realce);
    }

    /* Fotos e projetos */
    .lp-mosaico { grid-auto-rows: 115px; gap: .6rem; }
    .lp-mosaico__item span { font-size: .74rem; padding: 1.2rem .6rem .45rem; }
    .lp-projetos { grid-template-columns: 1fr; gap: 1.2rem; }
    .lp-projeto__img { height: 170px; }

    /* Chamada final */
    .lp-cta { padding: 2.5rem 1rem; margin-top: 3rem; }
    .lp-cta__miolo { flex-direction: column; align-items: stretch; }
    .lp-cta__botoes { flex-direction: column; }
    .lp-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
    .lp-hero h1 { font-size: 1.9rem; }
    .lp-slide__numeros { gap: .5rem; }
    .lp-mosaico { grid-auto-rows: 95px; }
    .lp-tile__icone { flex-basis: 38px; height: 38px; }
}

/* Telas de toque não têm "hover": evita cards que ficam levantados depois do toque */
@media (hover: none) {
    .lp-tile:hover, .lp-projeto:hover { box-shadow: none; }
    .lp-mosaico__item:hover img { transform: none; }
}