/* =========================================================================
   LANDING — RODAPÉ E BOTÕES FLUTUANTES — v2
   -------------------------------------------------------------------------
   Par de: footer-lp-sistema.php (landing, loja, produto, carrinho, checkout).

   O rodapé fecha a página em verde-noite (o verde da marca, escurecido) e
   tem um destaque só: o telefone do WhatsApp em tipo grande. O resto é um
   mapa de links, quieto.

   Ordem de carga: landing-base → landing-sistemas → ESTE → landing-polish.
   Importa que o polish venha depois: é ele que tem o hover correto do botão
   "voltar ao topo" e o sublinhado que cresce nos links do rodapé.
   ========================================================================= */

.lp-footer {
    --ft-fundo:   #0F2E24;
    --ft-texto:   #E4EEE8;
    --ft-suave:   #A3BDB0;   /* 6,9:1 sobre o fundo */
    --ft-linha:   rgba(228, 238, 232, .14);
    --ft-display: 'Schibsted Grotesk', 'Poppins', sans-serif;

    position: relative;
    background: var(--ft-fundo);
    color: var(--ft-texto);
    font-family: 'Poppins', sans-serif;
    padding: clamp(56px, 8vw, 104px) 24px 28px;
}

.lp-footer a { color: inherit; }
.lp-footer a:focus-visible {
    outline: 2px solid var(--ft-texto);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- o destaque: fale com a gente ---------- */
.lp-footer-talk {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: clamp(44px, 6vw, 72px);
    border-bottom: 1px solid var(--ft-linha);
}
.lp-footer-talk-q {
    margin: 0 0 10px;
    font-family: var(--ft-display);
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--ft-suave);
}
.lp-footer-talk-phone {
    display: inline-flex; align-items: center;
    gap: .3em;
    font-family: var(--ft-display);
    font-size: clamp(2.4rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    text-decoration: none;
    white-space: nowrap;
}
.lp-footer-talk-phone i {
    font-size: .62em;
    color: #25D366;
}
.lp-footer-talk-phone span {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: .06em;
    text-underline-offset: .12em;
    transition: text-decoration-color .2s ease;
}
.lp-footer-talk-phone:hover span { text-decoration-color: currentColor; }
.lp-footer-talk-note {
    margin: 16px 0 0;
    max-width: 46ch;
    font-size: 1rem; line-height: 1.6;
    color: var(--ft-suave);
}

/* ---------- mapa: marca + colunas ---------- */
.lp-footer-map {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: clamp(40px, 5vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 40px clamp(40px, 6vw, 96px);
}

.lp-footer-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--ft-display);
    font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em;
    text-decoration: none;
}
/* O logo.svg é laranja em gradiente; no fundo verde ele vira branco, que é
   como a marca aparece em negativo na nav (preta sobre o papel). */
.lp-footer-brand img {
    display: block;
    width: 28px; height: auto;
    filter: brightness(0) invert(1);
}
.lp-footer-tagline {
    margin: 14px 0 0;
    max-width: 34ch;
    font-size: .9375rem; line-height: 1.65;
    color: var(--ft-suave);
}

.lp-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 40px;
}
.lp-footer-col h3 {
    margin: 0 0 14px;
    font-family: var(--ft-display);
    font-size: 1rem; font-weight: 700; letter-spacing: -.005em;
    color: var(--ft-texto);
}
.lp-footer-col ul {
    margin: 0; padding: 0; list-style: none;
    display: grid; gap: 10px;
}
.lp-footer-col a {
    display: inline-block;
    font-size: .9375rem; line-height: 1.4;
    color: var(--ft-suave);
    text-decoration: none;
}
.lp-footer-col a:hover { color: var(--ft-texto); }

/* ---------- base ---------- */
.lp-footer-bottom {
    max-width: 1200px;
    margin: clamp(44px, 6vw, 72px) auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--ft-linha);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
    font-size: .8125rem;
    color: var(--ft-suave);
}
.lp-footer-bottom a { color: var(--ft-suave); text-underline-offset: 3px; }
.lp-footer-bottom a:hover { color: var(--ft-texto); }

@media (max-width: 900px) {
    .lp-footer-map { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .lp-footer { padding-inline: 16px; }
    .lp-footer-talk-phone { font-size: clamp(2rem, 10.5vw, 2.6rem); }
    /* Módulos ocupa a largura toda (é a lista longa); conta e ajuda dividem
       a linha de baixo. */
    .lp-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-footer-cols > .lp-footer-col:first-child:not(:only-child) { grid-column: 1 / -1; }
    .lp-footer-cols > .lp-footer-col:first-child:not(:only-child) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}

/* =========================================================================
   WhatsApp flutuante
   Sem o balanço infinito de antes: movimento que ninguém pediu, o tempo
   todo, disputando atenção com o botão de comprar.
   ========================================================================= */
.lp-whats-float {
    position: fixed;
    bottom: 82px; left: 32px;
    z-index: 999;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 28px rgba(15, 46, 36, .28);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    text-decoration: none;
}
.lp-whats-float i { color: #fff; font-size: 26px; }
.lp-whats-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 46, 36, .34);
}
.lp-whats-float:focus-visible { outline: 2px solid #0F2E24; outline-offset: 3px; }

/* Voltar ao topo — estado base.
   O :hover e o z-index NÃO ficam aqui: estão em landing-polish.css, que
   corrigiu dois defeitos deste bloco (a seta sumia no hover, porque pintava
   color:#fff sem trocar o fundo branco; e o z-index 999 deixava o botão atrás
   da barra fixa de conversão no mobile). Uma regra de hover só, num arquivo
   só, pra não voltarem a competir. */
.lp-back-to-top {
    position: fixed;
    bottom: 155px; right: 32px;
    width: 55px; height: 55px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,.08);
    color: var(--lp-dark, #1a1410);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}
.lp-back-to-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 640px) {
    .lp-whats-float { bottom: 82px; left: 20px; width: 52px; height: 52px; }
    .lp-whats-float i { font-size: 24px; }
    /* A posição mobile do "voltar ao topo" também vem do landing-polish.css
       (bottom: 158px), pra ele não brigar com o carrinho flutuante. */
}

@media (prefers-reduced-motion: reduce) {
    .lp-whats-float, .lp-footer-talk-phone span { transition: none; }
    .lp-whats-float:hover { transform: none; }
}
