/* ==========================================================================
   InfoBlue — BASE: identidade visual (tokens), reset e tipografia
   ========================================================================== */

:root {
  /* Paleta oficial */
  --navy: #102A50;
  --blue: #2377CF;
  --sky: #57B9E9;
  --white: #FFFFFF;
  --ice: #F0F6FC;

  /* Tons derivados da paleta (apoio) */
  --blue-escuro: #1B62AE;   /* hover do azul principal */
  --navy-suave: #1A3A69;    /* superfícies sobre o azul-marinho */
  --texto: #102A50;
  --texto-suave: #4A5F7E;
  --linha: #D5E3F2;
  --erro: #B3261E;
  --whatsapp: #128C4B;

  /* Tipografia */
  --fonte-titulo: "Sora", "Manrope", "Segoe UI", system-ui, sans-serif;
  --fonte-texto: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Forma */
  --raio-p: 10px;
  --raio-m: 18px;
  --raio-g: 28px;
  --sombra-1: 0 1px 2px rgba(16, 42, 80, .06), 0 6px 18px rgba(16, 42, 80, .07);
  --sombra-2: 0 2px 4px rgba(16, 42, 80, .06), 0 22px 48px rgba(16, 42, 80, .14);

  /* Layout */
  --largura: 1140px;
  --margem: clamp(1.25rem, 4vw, 2.5rem);
  --altura-header: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-header) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--texto-suave); }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-escuro); }

ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.container {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--margem));
  margin-inline: auto;
  padding-inline: var(--margem);
}

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; border-radius: var(--raio-p);
  background: var(--navy); color: var(--white); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

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