/* Lefit — folha de estilo do site institucional
   A marcação das páginas carrega estilos inline vindos do protótipo aprovado.
   Este arquivo cuida do que o inline não alcança: tipografia base, estados de
   foco, o menu Personalize, o acordeão e os ajustes para telas pequenas. */

:root {
  --preto: #000000;
  --branco: #FFFFFF;
  --texto: #3A3A3A;
  --borda: #C8C9D3;
  --cinza: #555555;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--preto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* Link de acessibilidade: só aparece ao receber foco pelo teclado */
.pular {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--preto);
  color: var(--branco);
  padding: 14px 20px;
  font-size: 15px;
  text-decoration: none;
}
.pular:focus { left: 0; }

/* Foco visível e consistente em tudo que é operável */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--preto);
  outline-offset: 3px;
}

input:focus,
textarea:focus { border-color: var(--preto); }

/* ---------- Menu Personalize ---------- */

.menu-gatilho { font-family: inherit; }
.menu-painel[hidden] { display: none; }
.menu-painel a:hover,
.menu-painel a:focus { background: #F2F2F2; }

/* ---------- Acordeão do FAQ ---------- */

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-sinal::before {
  content: "+";
  font-family: Inter, sans-serif;
  font-size: 24px;
  line-height: 1;
  color: var(--preto);
}
.faq-item[open] .faq-sinal::before { content: "\2013"; }
.faq-item summary:hover { background: #FAFAFA; }

/* ---------- Menu principal ---------- */

header nav { align-items: center; }

header nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Telas pequenas ----------
   As seções já refluem sozinhas (flex-wrap). Aqui ajustamos o que vem fixo
   do protótipo: tipografia de display, grades de colunas e respiração lateral. */

@media (max-width: 760px) {
  h1.display { font-size: clamp(28px, 8vw, 44px) !important; line-height: 1.15 !important; }
  h2.display { font-size: clamp(22px, 6vw, 32px) !important; line-height: 1.2 !important; }
  h3.display { font-size: 19px !important; }

  [style*="repeat(4,"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="repeat(3,"],
  [style*="repeat(2,"] { grid-template-columns: 1fr !important; }

  section > div,
  header > div,
  footer > div { padding-left: 20px !important; padding-right: 20px !important; }

  .menu-painel { position: static !important; min-width: 0 !important; margin-top: 8px; }
}

@media (max-width: 520px) {
  header nav { gap: 4px 16px !important; font-size: 15px !important; }
}

/* ---------- Impressão ---------- */

@media print {
  header, footer, .pular { display: none; }
  body { color: #000; }
}
