*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* O painel do menu mobile é position:fixed e fica empurrado para fora da tela
     quando fechado. Um elemento fixo fora da viewport ainda conta na largura de
     rolagem do documento, e o overflow-x do body NÃO o contém -- só o do html.
     Sem isto, a página inteira rola de lado no celular. */
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--background-color);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }

.section { padding: var(--section-padding); }

/*
 * Cabeçalho de seção -- mesmo padrão do site da NexTool.
 *
 * O acabamento vem do divisor: uma linha longa e fina em cinza translúcido com
 * uma barra curta e grossa na cor de destaque sobreposta ao centro. Os dois são
 * pseudo-elementos do próprio h2, que reserva o espaço com o padding inferior.
 */
.section-title {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2.75rem;
}
.section-title h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  position: relative;
}
.section-title h2::before {
  content: "";
  position: absolute; display: block;
  width: 160px; height: 1px;
  background: var(--rule-color);
  left: 0; right: 0; bottom: 1px; margin: auto;
}
.section-title h2::after {
  content: "";
  position: absolute; display: block;
  width: 60px; height: 3px;
  background: var(--accent-color);
  left: 0; right: 0; bottom: 0; margin: auto;
}
.section-title p { color: var(--muted-color); margin-bottom: 0; }

/* Variante alinhada à esquerda, para blocos de duas colunas */
.section-title--left { text-align: left; margin-inline: 0; }
.section-title--left h2::before,
.section-title--left h2::after { left: 0; right: auto; margin: 0; }

@media (max-width: 767.98px) {
  .section-title { margin-bottom: 2rem; }
  .section-title p { font-size: .95rem; }
}

/* Acessibilidade: foco visível e atalho para o conteúdo */
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--highlight-color); color: var(--brand-navy);
  padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Utilitárias mínimas -- só o que aparece de fato, sem framework de utilidades */
.mt-3 { margin-top: 1.5rem; }
.text-center { text-align: center; }
