/* Base: reset, tipografia global, container e acessibilidade. */

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

html {
  scroll-behavior: smooth;
  /* Firefox: thumb navy sobre trilho cream */
  scrollbar-color: rgba(2, 36, 67, 0.55) var(--cream);
}

/* Scrollbar da marca (WebKit) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #35516f, var(--navy));
  border: 3px solid var(--cream);
  border-radius: var(--raio-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-escuro);
}

body {
  font-family: var(--fonte-corpo);
  font-size: var(--texto-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  font-size: var(--titulo-xl);
}

h2 {
  font-size: var(--titulo-lg);
}

h3 {
  font-size: var(--titulo-sm);
}

p {
  max-width: 68ch;
}

a {
  color: var(--navy);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy-deep);
}

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

ul,
ol {
  padding-left: 1.25rem;
}

strong {
  font-weight: 800;
}

/* Âncoras param abaixo do header fixo */
[id] {
  scroll-margin-top: calc(var(--header-altura) + 1rem);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.secao {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.secao-cream {
  background: var(--cream);
}

.secao-navy {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: var(--branco);
}

.secao-navy h2,
.secao-navy h3 {
  color: var(--branco);
}

/* Cabeçalho padrão de seção */
.secao-intro {
  max-width: 720px;
  margin-bottom: var(--esp-6);
}

.kicker {
  display: block;
  font-size: var(--texto-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-escuro);
  margin-bottom: var(--esp-2);
}

.secao-navy .kicker {
  color: var(--gold);
}

.destaque-gold {
  color: var(--gold);
}

/* Acessibilidade */
.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pular-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--branco);
  border-radius: var(--raio-sm);
  text-decoration: none;
}

.pular-link:focus {
  top: 1rem;
  color: var(--branco);
}

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

.secao-navy :focus-visible {
  outline-color: var(--gold);
}

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

@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;
  }
}
