/* base.css — reset, tipografia e utilitarios estruturais. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--txt);
  font-family: var(--f-texto);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--e-4);
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: var(--t-5xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { margin: 0 0 var(--e-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

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

ul, ol { margin: 0 0 var(--e-4); padding-left: 1.25rem; }
li { margin-bottom: var(--e-2); }

strong { font-weight: 650; color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--gold-fraco); color: var(--navy); }

/* ---------- Estrutura ---------- */

.wrap {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: var(--e-5);
}

.secao { padding-block: var(--e-9); }
.secao--curta { padding-block: var(--e-7); }
.secao--offwhite { background: var(--offwhite); }
.secao--navy { background: var(--navy); color: rgba(255,255,255,.82); }
.secao--navy h2, .secao--navy h3 { color: var(--white); }

.pular-para-conteudo {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--e-3) var(--e-4);
  z-index: 999;
}
.pular-para-conteudo:focus { left: 0; }

/* ---------- Eyebrow: rotulo com filete dourado ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--e-3);
  font-family: var(--f-texto);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-fraco);
  margin-bottom: var(--e-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.secao--navy .eyebrow { color: var(--gold-hover); }

/* ---------- Cabecalho de secao ---------- */

.cab { max-width: 62ch; margin-bottom: var(--e-7); }
.cab--centro { margin-inline: auto; text-align: center; }
.cab--centro .eyebrow::before { display: none; }
.cab p {
  font-size: var(--t-lg);
  color: var(--txt-suave);
  margin-top: var(--e-4);
}
.secao--navy .cab p { color: rgba(255,255,255,.78); }

/* ---------- Utilitarios ---------- */

.grid { display: grid; gap: var(--e-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.centro { text-align: center; }
.medida { max-width: var(--largura-texto); }
.mt-5 { margin-top: var(--e-5); }
.mt-6 { margin-top: var(--e-6); }
.mt-7 { margin-top: var(--e-7); }
.esconder { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
