/* ==========================================================================
   BASE — variáveis (cores, medidas), reset e peças reutilizáveis
   Tudo que aparece em mais de uma seção mora aqui: container, botões,
   ícones e cabeçalho de seção. Assim nenhum estilo é repetido.
   ========================================================================== */

:root {
  /* Cores da marca */
  --vermelho-500: #ef4444;
  --vermelho-600: #dc2626;
  --vermelho-700: #b91c1c;
  --vermelho-100: #fee2e2;
  --azul-400: #60a5fa;
  --azul-500: #3b82f6;
  --azul-600: #2563eb;
  --amarelo-300: #fde047;
  --amarelo-500: #eab308;
  --ambar-400: #fbbf24;
  --verde-500: #22c55e;
  --verde-600: #16a34a;
  --verde-700: #15803d;

  /* Neutros */
  --azul-950: #020617;
  --azul-900: #0f172a;
  --azul-800: #1e293b;
  --azul-700: #334155;
  --azul-600-neutro: #475569;
  --azul-500-neutro: #64748b;
  --azul-400-neutro: #94a3b8;
  --azul-300-neutro: #cbd5e1;
  --cinza-50: #f9fafb;
  --cinza-100: #f3f4f6;
  --cinza-200: #e5e7eb;
  --cinza-300: #d1d5db;
  --cinza-400: #9ca3af;
  --cinza-500: #6b7280;
  --cinza-600: #4b5563;
  --cinza-800: #1f2937;

  /* Medidas */
  --altura-header: 5rem;
  --largura-max: 80rem;
  --raio-md: .75rem;
  --raio-lg: 1rem;
  --raio-xl: 1.5rem;
  --sombra-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --sombra-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --sombra-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --sombra-2xl: 0 25px 50px -12px rgba(0,0,0,.25);

  /* Fonte do sistema: carrega instantâneo e não depende de nenhum site externo */
  --fonte: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; width: 100%; overflow-x: hidden;
  font-family: var(--fonte); line-height: 1.5;
  color: var(--cinza-800); background: var(--cinza-50);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
section { min-width: 0; }
[hidden] { display: none !important; }

/* O header é fixo: sem isso ele taparia os títulos ao clicar no menu */
section[id] { scroll-margin-top: var(--altura-header); }

:focus-visible { outline: 3px solid var(--azul-400); outline-offset: 2px; }

/* ---------- Container centralizado ---------- */
.container {
  width: 100%; max-width: var(--largura-max); margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* ---------- Ícones (SVG inline, preenchidos por js/utils/icones.js) ----------
   O tamanho segue o font-size do elemento pai. */
.icone { display: inline-flex; flex-shrink: 0; width: 1em; height: 1em; }
.icone svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Botões: base + variações ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border: 1px solid transparent; border-radius: var(--raio-md);
  font-size: .875rem; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer;
  transition: background-color .3s, transform .3s, box-shadow .3s;
}
.btn .icone { font-size: 1.25em; }
.btn--grande { padding: 1rem 2rem; font-size: 1.125rem; }
.btn--bloco  { display: flex; width: 100%; }
.btn--elevar:hover { transform: translateY(-.25rem); }

.btn--verde    { background: var(--verde-600); color: #fff; box-shadow: var(--sombra-lg); }
.btn--verde:hover { background: var(--verde-700); }
.btn--vermelho { background: var(--vermelho-600); color: #fff; box-shadow: var(--sombra-md); }
.btn--vermelho:hover { background: var(--vermelho-700); }
.btn--escuro   { background: var(--azul-900); color: #fff; }
.btn--escuro:hover { background: var(--azul-800); }
.btn--vidro {
  background: rgba(30,41,59,.8); color: #fff; font-weight: 600;
  border-color: var(--azul-600-neutro); backdrop-filter: blur(4px);
}
.btn--vidro:hover { background: var(--azul-700); }

/* ---------- Cabeçalho de seção (etiqueta + título + texto) ---------- */
.secao { padding-block: 5rem; }
.secao__cabecalho { max-width: 48rem; margin: 0 auto 3rem; text-align: center; }
.secao__etiqueta {
  margin-bottom: .5rem; color: var(--vermelho-600);
  font-size: .875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.secao__titulo {
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 800; line-height: 1.2; color: var(--azul-900);
}
.secao__descricao { margin-top: 1rem; color: var(--cinza-600); font-size: 1.0625rem; }

/* Texto com sombra "3D" (nome da oficina).
   Uso: <span class="texto-3d" data-texto="Mesmo texto">Mesmo texto</span> */
.texto-3d { position: relative; display: inline-block; isolation: isolate; }
.texto-3d::before {
  content: attr(data-texto);
  content: attr(data-texto) / "";   /* esconde a cópia dos leitores de tela */
  position: absolute; inset: 0; z-index: -1;
  transform: translateY(3px); color: rgba(0,0,0,.7); filter: blur(3px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
