/* Reset enxuto + estilos de base compartilhados por todas as páginas. */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte-texto);
  font-weight: var(--peso-texto);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  color: var(--stml-grafite);
  margin: 0 0 var(--espaco-2);
  line-height: 1.25;
}

p {
  margin: 0 0 var(--espaco-3);
}

a {
  color: var(--stml-vinho);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--espaco-4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.texto-suave {
  color: var(--cor-texto-suave);
}

.centralizado {
  text-align: center;
}

.oculto {
  display: none !important;
}

/* Cabeçalho institucional reutilizado em todas as páginas */
.topo-stml {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--espaco-4);
  padding: var(--espaco-4) var(--espaco-4);
  background: var(--stml-grafite);
  color: var(--cor-texto-invertido);
}

.topo-stml__marca {
  display: flex;
  align-items: center;
  gap: var(--espaco-3);
}

.topo-stml__logo {
  display: block;
  height: 44px;
  width: auto;
}

@media (max-width: 480px) {
  .topo-stml__logo {
    height: 34px;
  }
}

.topo-stml__titulo {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--cor-texto-invertido);
  margin: 0;
}

.topo-stml__subtitulo {
  font-size: 0.75rem;
  color: #c7c8cc;
}

/* Spinner simples usado enquanto os dados carregam */
.carregando {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--espaco-7) 0;
  color: var(--cor-texto-suave);
}
