/* ==========================================================================
   Conecta FAMO · base.css
   Tokens de design, reset, tipografia, grid e utilitários.
   Ordem de carregamento: base.css → components.css → pages.css
   ========================================================================== */

:root {
  /* Cores da marca */
  --indigo-950: #0f0e2a;
  --indigo-900: #16153a;   /* fundo principal escuro (próximo ao fundo do logo) */
  --indigo-800: #23225a;
  --indigo-700: #34337a;
  --laranja-500: #f6a30e;  /* laranja do logo */
  --laranja-400: #ffb732;
  --laranja-100: #fff2d6;
  --azul-700: #10557f;     /* azul do logo (digital) */
  --azul-600: #0a6a9b;
  --azul-100: #e3f0f7;

  /* Neutros */
  --tinta: #1b1a33;        /* texto principal */
  --tinta-suave: #4f5068;  /* texto secundário (7:1 sobre branco) */
  --linha: #dfe2ec;
  --nevoa: #f1f3f8;        /* fundo de seção alternada */
  --branco: #ffffff;

  /* Tipografia */
  --fonte-titulo: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --fonte-texto: "Figtree", "Segoe UI", system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.875rem, 1.45rem + 2vw, 2.875rem);
  --fs-3xl: clamp(2.375rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-hero: clamp(2.625rem, 1.5rem + 5.4vw, 5.5rem);

  /* Espaçamento (escala de 8px) */
  --e-1: 0.5rem;
  --e-2: 1rem;
  --e-3: 1.5rem;
  --e-4: 2rem;
  --e-5: 3rem;
  --e-6: 4rem;
  --e-secao: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Layout */
  --largura: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 72px;

  /* Forma */
  --raio-sm: 8px;
  --raio: 16px;
  --raio-lg: 28px;
  --sombra: 0 18px 40px -24px rgba(22, 21, 58, 0.45);

  --transicao: 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--tinta);
  background: var(--branco);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: var(--azul-700); text-underline-offset: 0.2em; }
a:hover { color: var(--indigo-900); }

:focus-visible {
  outline: 3px solid var(--laranja-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--laranja-500); color: var(--indigo-900); }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; }
h4 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }

p { text-wrap: pretty; }
.texto-lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--tinta-suave); }
.texto-suave { color: var(--tinta-suave); }
.prosa > * + * { margin-top: 1em; }
.prosa { max-width: 64ch; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--largura));
  margin-inline: auto;
}

.secao { padding-block: var(--e-secao); }
.secao--nevoa { background: var(--nevoa); }
.secao--sem-topo { padding-top: 0; }
.secao--escura { background: var(--indigo-900); color: var(--branco); }

/* Cabeçalho de seção: título + texto de apoio */
.secao-topo {
  display: grid;
  gap: var(--e-2);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  max-width: 46rem;
}
.secao-topo p { font-size: var(--fs-lg); color: var(--tinta-suave); }
.secao--escura .secao-topo p { color: rgba(255, 255, 255, 0.78); }

/* Linha de apoio curta acima do título (frase, não rótulo em caixa alta) */
.sobretitulo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--azul-700);
}
.sobretitulo::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--laranja-500);
  border-radius: 2px;
}
.secao--escura .sobretitulo,
.faixa-azul .sobretitulo { color: var(--laranja-400); }

/* Grid de 12 colunas (mobile = 1 coluna; tablet = 8; desktop = 12) */
.grid-12 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e-4);
}
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--e-3); }
}
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--e-4); }
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.botao {
  --b-bg: var(--laranja-500);
  --b-cor: var(--indigo-900);
  --b-borda: var(--laranja-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--b-borda);
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-cor);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background var(--transicao), border-color var(--transicao), color var(--transicao), transform var(--transicao);
}
.botao:hover { --b-bg: var(--laranja-400); --b-borda: var(--laranja-400); color: var(--indigo-900); }
.botao:active { transform: translateY(1px); }
.botao svg { width: 18px; height: 18px; flex: none; }

.botao--contorno-claro { --b-bg: transparent; --b-cor: var(--branco); --b-borda: rgba(255, 255, 255, 0.4); }
.botao--contorno-claro:hover { --b-bg: rgba(255, 255, 255, 0.08); --b-borda: var(--branco); color: var(--branco); }

.botao--contorno { --b-bg: transparent; --b-cor: var(--indigo-900); --b-borda: var(--indigo-900); }
.botao--contorno:hover { --b-bg: var(--indigo-900); --b-borda: var(--indigo-900); color: var(--branco); }

.botoes { display: flex; flex-wrap: wrap; gap: var(--e-2); }

/* Link de texto com seta */
.link-seta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}
.link-seta svg { width: 18px; height: 18px; transition: transform var(--transicao); }
.link-seta:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Utilitários
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.pular-conteudo {
  position: absolute;
  left: var(--e-2);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--laranja-500);
  color: var(--indigo-900);
  font-weight: 700;
  border-radius: var(--raio-sm);
}
.pular-conteudo:focus { top: var(--e-2); }

.icone { width: 24px; height: 24px; flex: 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;
  }
}
