/* ═══════════════════════════════════════════════════════════════
   COMPONENTES COMPARTILHADOS — Miguel Santos Advocacia
   Menu do celular e perguntas frequentes (usados em todas as páginas)
   ═══════════════════════════════════════════════════════════════ */

/* ─── LOGOTIPO (imagens em /assets/img; originais em "01 Logotipo") ─── */
.logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-img  { display: block; height: 46px; width: auto; }
.foot-logo { display: block; width: 220px; max-width: 70%; height: auto; margin: 0 auto; }
@media (max-width: 600px) {
  .logo-img { height: 38px; }
}

/* ─── BOTÃO DO MENU (☰) ─── */
.menu-btn {
  display: none; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid rgba(212,175,55,.35); background: rgba(212,175,55,.06);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: #d4af37; transition: transform .25s, opacity .2s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid #e8c96a; outline-offset: 2px; }

/* ─── PAINEL DO MENU ─── */
.m-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  background: #081a33; border-bottom: 1px solid rgba(212,175,55,.30);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  padding: .25rem 1.25rem 1.25rem;
  max-height: calc(100vh - 64px); max-height: calc(100svh - 64px); overflow-y: auto;
}
.m-menu[hidden] { display: none; }
.m-menu .m-link {
  display: block; padding: .95rem .25rem;
  color: rgba(255,255,255,.85); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.m-menu .m-link:hover, .m-menu .m-link:focus-visible { color: #e8c96a; }
.m-menu .m-link[aria-current="page"] { color: #d4af37; font-weight: 600; }
.m-menu-cta { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.1rem; }
.m-menu .m-wpp, .m-menu .m-tel {
  display: flex; align-items: center; justify-content: center;
  padding: .85rem 1rem; border-radius: 8px; text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 700;
}
.m-menu .m-wpp { background: #22c55e; color: #fff; }
.m-menu .m-tel { border: 1.5px solid rgba(255,255,255,.3); color: #fff; font-weight: 600; }

@media (max-width: 1100px) {
  .menu-btn { display: flex; }
  /* no celular, o menu substitui os links e o botão do topo
     (o botão flutuante de WhatsApp continua visível) */
  header nav:not(.m-menu), header .h-nav, header .h-tel, header .h-cta > .b-wpp { display: none !important; }
}

/* ─── PERGUNTAS FREQUENTES ─── */
.faq { display: flex; flex-direction: column; gap: .65rem; margin-top: 2rem; }
.fi  { border: 1px solid #dde6f0; border-radius: 10px; overflow: hidden; background: #fff; }
.fq  {
  width: 100%; text-align: left; background: #fff;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; border: none;
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600; line-height: 1.45;
  color: #16233a; -webkit-tap-highlight-color: transparent;
  transition: background .2s; min-height: 52px;
}
.fq:hover { background: #eaf1f9; }
.fq:focus-visible { background: #eaf1f9; outline: 2px solid #2176d2; outline-offset: -2px; }
.fi-ic {
  color: #2176d2; font-size: 1.25rem; flex-shrink: 0;
  font-weight: 400; transition: transform .3s; line-height: 1;
}
.fi.open .fi-ic { transform: rotate(45deg); }
.fa {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  font-size: .87rem; color: #4a5a70; line-height: 1.75;
  padding: 0 1.25rem; border-top: 0 solid #dde6f0;
}
.fa a { color: #2176d2; }
.fi.open .fa { max-height: 60rem; padding: 1rem 1.25rem 1.2rem; border-top-width: 1px; }

@media (prefers-reduced-motion: reduce) {
  .menu-btn span, .fi-ic, .fa { transition: none; }
}
