/* Menu mobile do cabeçalho — compartilhado entre index.html e work.html.

   Motivo de existir: abaixo de 600px o #vty-hdr-nav é ocultado por CSS, e
   antes não havia substituto — "Fale Conosco" e "Serviços" ficavam
   inalcançáveis pelo celular. Este arquivo é único de propósito: as duas
   páginas montam o header por conta própria, e duplicar o CSS garantiria
   que um dia só uma delas fosse corrigida. */

#vty-hdr-burger {
  display: none;              /* aparece só na media query de mobile */
  width: 40px;
  height: 40px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
#vty-hdr-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--vty-c, #1a1a18);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .2s;
}
#vty-hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#vty-hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#vty-hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#vty-mobnav {
  position: fixed;
  top: 52px;                  /* altura do header */
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--vty-bg, #f4f1ea);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding: 8px max(20px, 5vw) 20px;
  display: flex;
  flex-direction: column;
  /* Fechado: recolhido E inerte. visibility (não só opacity) evita que os
     links sigam focáveis por teclado com o menu fechado. */
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.2, .7, .2, 1), opacity .25s, visibility .25s;
}
#vty-mobnav.on {
  max-height: 70vh;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
}
#vty-mobnav a {
  font-family: var(--vty-f, inherit);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--vty-c, #1a1a18);
  text-decoration: none;
  padding: 15px 2px;          /* ~51px de alvo de toque */
  border-bottom: 1px solid rgba(26, 26, 24, .08);
}
#vty-mobnav a:last-child { border-bottom: 0; }
#vty-mobnav .vty-mobnav-cta {
  margin-top: 14px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--vty-c, #1a1a18);
  color: var(--vty-bg, #f4f1ea);
  text-align: center;
  border-bottom: 0;
}

@media (max-width: 600px) {
  #vty-hdr-burger { display: flex; }
  /* O CTA migra para dentro do menu, senão o header fica apertado */
  #vty-hdr-cta { display: none !important; }
}
@media (min-width: 601px) {
  /* Se a janela for redimensionada com o menu aberto, ele não pode sobrar */
  #vty-mobnav { display: none; }
}
