/* ═══════════════════════════════════════════════════════════════════════════
   Menu do celular e do tablet (até 1024 px) — 26/10/2026

   O botão ☰ do cabeçalho abre o menu em TELA CHEIA, no mesmo jeito do chat e
   da candidatura passo a passo: logo em cima, "Fechar ✕" à direita.

     · Produtos, Tecnologias e Sobre abrem como sanfona (um toque abre, outro
       fecha); o grupo da página atual já vem aberto e o item marcado;
     · "Atendimento": Trabalhe Conosco, Consultar Lote, SAC e Denúncias, que no
       celular não apareciam em lugar nenhum (a barra cinza é só do computador);
     · embaixo, fixos: Solicitar orçamento e o telefone.

   Sem nada deslizando pela tela: o menu só aparece (esmaece), e o que se mexe
   é pequeno (a seta do grupo, a sanfona). No computador nada disto aparece.

   Marcação em includes/menu_celular.php; comportamento em js/vp-menu.js.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── O botão ☰ ── */
.vp-menu-botao { display: none; }
@media (max-width: 1024px) {
  .elementor-element-029ada9 .elementor-nav-menu--main { display: none !important; }
  .vp-menu-botao,
  .vp-menu-botao:hover,
  .vp-menu-botao:focus {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin: 0 -8px 0 0; padding: 0;
    border: 0; border-radius: 12px; background: transparent; color: #E37A36;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .vp-menu-botao:active { background: #fdf1e8; }
  .vp-menu-botao:focus { outline: none; }
  .vp-menu-botao:focus-visible { outline: 2px solid #E37A36; outline-offset: 2px; }
}

/* ── Cabeçalho fixo no celular ──
   Rolando a página, o logo e o ☰ continuam à mão. A sombra embaixo dele já é do
   próprio cabeçalho do site. */
@media (max-width: 767px) {
  .elementor-location-header {
    position: sticky; top: 0; z-index: 9990; background: #fff;
  }
  html { scroll-padding-top: 72px; }
}

/* ── A tela cheia ── */
.vp-menu[hidden] { display: none !important; }
.vp-menu {
  position: fixed; inset: 0; z-index: 2147482000;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: #fff; color: #2f3348;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: vp-menu-entra .18s ease;
}
@keyframes vp-menu-entra { from { opacity: 0; } to { opacity: 1; } }
.vp-menu *, .vp-menu *::before, .vp-menu *::after { box-sizing: border-box; }
.vp-menu ul { list-style: none; margin: 0; padding: 0; }
.vp-menu a { text-decoration: none; }
.vp-menu a:focus, .vp-menu button:focus { outline: none; }
.vp-menu a:focus-visible, .vp-menu button:focus-visible { outline: 2px solid #E37A36; outline-offset: -2px; border-radius: 10px; }

html.vp-menu-aberto, html.vp-menu-aberto body { overflow: hidden !important; }
html.vp-menu-aberto #edconversa-fab,
html.vp-menu-aberto #edconversa-widget,
html.vp-menu-aberto .vp-cookies { display: none !important; }

/* topo: logo + Fechar (o mesmo do chat em tela cheia) */
.vp-menu-topo {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 12px 0 20px;
  box-shadow: 0 6px 20px -12px rgba(20, 22, 40, .45); position: relative; z-index: 1;
}
.vp-menu-logo { display: block; line-height: 0; }
.vp-menu-logo img { display: block; height: 34px; width: auto; }
.vp-menu .vp-menu-fechar,
.vp-menu .vp-menu-fechar:hover,
.vp-menu .vp-menu-fechar:focus {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 10px 12px; min-height: 44px;
  border: 0; border-radius: 10px; background: none; color: #545971; cursor: pointer;
  font: 600 15px/1 Roboto, system-ui, sans-serif; -webkit-tap-highlight-color: transparent;
}
.vp-menu .vp-menu-fechar:active { background: #f1f2f6; }

/* corpo que rola */
.vp-menu-corpo {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 10px 12px 24px;
}

/* itens principais */
.vp-menu-lista > li { border-bottom: 1px solid #eef0f4; }
.vp-menu-lista > li:last-child { border-bottom: 0; }
.vp-menu .vp-menu-item,
.vp-menu .vp-menu-item:hover,
.vp-menu .vp-menu-item:focus {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 58px; margin: 0; padding: 0 10px;
  border: 0; border-radius: 10px; background: none; color: #2f3348; cursor: pointer; text-align: left;
  font: 600 19px/1.2 Roboto, system-ui, sans-serif; letter-spacing: -.005em; text-transform: none;
  -webkit-tap-highlight-color: transparent;
}
.vp-menu .vp-menu-item:active { background: #f6f7fa; }
.vp-menu .vp-menu-item svg { flex: none; color: #b3b7c6; transition: transform .22s ease, color .2s ease; }
.vp-menu .vp-menu-grupo.aberto > .vp-menu-item { color: #E37A36; }
.vp-menu .vp-menu-grupo.aberto > .vp-menu-item svg { transform: rotate(180deg); color: #E37A36; }
.vp-menu a.vp-menu-item[aria-current="page"] { color: #E37A36; }
.vp-menu a.vp-menu-item[aria-current="page"] svg { color: #E37A36; }

/* sanfona: a altura anima pela grade (0fr → 1fr), sem medir nada em JS */
.vp-menu-sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .24s ease, visibility .24s;
  visibility: hidden;
}
.vp-menu-grupo.aberto > .vp-menu-sub { grid-template-rows: 1fr; visibility: visible; }
.vp-menu-sub > ul { min-height: 0; overflow: hidden; }
.vp-menu-sub > ul > li:last-child { padding-bottom: 10px; }
.vp-menu-sub a {
  display: flex; align-items: center; gap: 8px;
  min-height: 46px; margin: 0 0 0 10px; padding: 8px 12px 8px 16px;
  border-left: 2px solid #eef0f4; border-radius: 0 10px 10px 0;
  color: #545971; font: 400 16px/1.3 Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.vp-menu-sub a:active { background: #f6f7fa; }
.vp-menu-sub a[aria-current="page"] {
  border-left-color: #E37A36; background: #fdf1e8; color: #c45f1f; font-weight: 600;
}
.vp-menu-sub a.vp-menu-todos { color: #E37A36; font-weight: 600; }
.vp-menu-sub a.vp-menu-todos svg { width: 16px; height: 16px; }

/* atendimento: grade 2 × 2 de atalhos */
.vp-menu-titulo {
  margin: 22px 10px 10px; color: #8a8fa3;
  font: 700 12px/1 Roboto, system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase;
}
.vp-menu-atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 2px !important; }
.vp-menu-atalhos a {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px;
  height: 100%; min-height: 88px; padding: 14px;
  border: 1px solid #eceef3; border-radius: 14px; background: #f8f9fb;
  color: #2f3348; font: 600 15px/1.25 Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, border-color .15s ease;
}
.vp-menu-atalhos a svg { color: #E37A36; }
.vp-menu-atalhos a:active { background: #fdf1e8; border-color: #f6d3bb; }
.vp-menu-atalhos a[aria-current="page"] { background: #fdf1e8; border-color: #E37A36; }

/* rodapé fixo: orçamento + telefone */
.vp-menu-rodape {
  flex: none; display: flex; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff; box-shadow: 0 -6px 20px -14px rgba(20, 22, 40, .45);
}
.vp-menu .vp-menu-orcamento,
.vp-menu .vp-menu-orcamento:hover,
.vp-menu .vp-menu-orcamento:focus {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 16px; border-radius: 12px;
  background: #E37A36; color: #fff; font: 700 16px/1 Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.vp-menu .vp-menu-orcamento:active { background: #c96526; }
.vp-menu .vp-menu-ligar,
.vp-menu .vp-menu-ligar:hover,
.vp-menu .vp-menu-ligar:focus {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 14px; border: 1.5px solid #e2e5ec; border-radius: 12px;
  background: #fff; color: #2f3348; font: 600 15px/1 Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.vp-menu .vp-menu-ligar svg { color: #E37A36; }
.vp-menu .vp-menu-ligar:active { background: #f6f7fa; }
/* tela estreita: o telefone vira só o ícone (o número continua lá para o leitor de tela) */
@media (max-width: 359px) {
  .vp-menu .vp-menu-ligar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vp-menu .vp-menu-ligar { width: 52px; padding: 0; }
}

/* tablet: o menu não precisa esticar o texto até a borda */
@media (min-width: 640px) {
  .vp-menu-corpo, .vp-menu-rodape { width: 100%; max-width: 560px; margin: 0 auto; }
  .vp-menu-rodape { box-shadow: none; border-top: 1px solid #eef0f4; }
  .vp-menu-topo { padding: 0 max(12px, calc((100% - 560px) / 2)) 0 max(20px, calc((100% - 560px) / 2 + 10px)); }
}
@media (min-width: 1025px) { .vp-menu { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .vp-menu, .vp-menu-sub, .vp-menu .vp-menu-item svg { animation: none !important; transition: none !important; }
}

/* ── Cabeçalho do celular mais leve (27/10/2026) ──
   Pedido do usuário: estava "muito grosso". Eram 94 px fixos no topo (12% da tela),
   logo de 205 × 54 e uma sombra forte. Agora: 60 px, logo de 34 px de altura (o mesmo
   do topo do menu em tela cheia e dos formulários), só um filete no topo da página e
   uma sombra suave depois que a página rola (html.vp-rolou, posto pelo js/vp-menu.js).
   Tablet e computador não mudam. */
@media (max-width: 767px) {
  .elementor-location-header .elementor-element-325dd07 {
    --padding-top: 0px !important; --padding-bottom: 0px !important; --padding-left: 16px !important; --padding-right: 8px !important;
    min-height: 60px; justify-content: center;
    box-shadow: 0 1px 0 rgba(20, 22, 40, .08) !important;
    transition: box-shadow .2s ease;
  }
  html.vp-rolou .elementor-location-header .elementor-element-325dd07 {
    box-shadow: 0 1px 0 rgba(20, 22, 40, .05), 0 8px 20px -14px rgba(20, 22, 40, .45) !important;
  }
  .elementor-location-header .elementor-element-325dd07 > .e-con-inner { align-items: center; min-height: 60px; padding: 0 8px 0 0 !important; }
  .elementor-location-header .elementor-element-e940a58 { justify-content: center; }
  .elementor-location-header .elementor-element-c7c9f4a img { display: block; height: 34px !important; width: auto !important; max-width: none; }
  .elementor-location-header .elementor-element-f2bc905 { --align-items: center; align-items: center; align-self: center; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .elementor-location-header .elementor-element-325dd07 { transition: none; }
}
