/*
 * WWin Design System — Typography
 * Define fontes, escala de tamanhos, hierarquia e estilos de texto.
 * Depende de tokens.css.
 */

/* =========================================================
 * GIGA SANS — Fonte institucional primária (arquivos locais)
 * ========================================================= */

@font-face {
  font-family: 'Giga Sans';
  src: url('../fonts/GigaSans-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Giga Sans';
  src: url('../fonts/GigaSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Giga Sans';
  src: url('../fonts/GigaSans-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Giga Sans';
  src: url('../fonts/GigaSans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Giga Sans';
  src: url('../fonts/GigaSans-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
 * INTER — Fonte de corpo (Google Fonts)
 * ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* =========================================================
 * RESET GLOBAL
 * ========================================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

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

/* =========================================================
 * HEADINGS — Giga Sans para todos os níveis
 * ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
}

h1 {
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, var(--text-5xl));
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, var(--text-3xl));
  letter-spacing: -0.02em;
}

h4 {
  font-size: clamp(1.25rem, 2vw, var(--text-2xl));
  letter-spacing: -0.01em;
}

h5 {
  font-size: var(--text-xl);
  letter-spacing: 0;
}

h6 {
  font-size: var(--text-lg);
  letter-spacing: 0;
}

/* =========================================================
 * TEXTO DISPLAY (hero / impacto máximo)
 * ========================================================= */

.text-display {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(3rem, 8vw, var(--text-8xl));
  line-height: 0.97;
  letter-spacing: -0.05em;
}

/* =========================================================
 * CORPO DE TEXTO — Inter
 * ========================================================= */

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
}

.text-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, var(--text-lg));
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-regular);
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
}

/* =========================================================
 * EYEBROW / LABEL / OVERLINE
 * ========================================================= */

.text-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.text-overline {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* =========================================================
 * MODIFICADORES DE COR
 * ========================================================= */

.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-accent    { color: var(--color-accent); }
.text-success   { color: var(--color-success); }
.text-warning   { color: var(--color-warning); }
.text-danger    { color: var(--color-danger); }
.text-white     { color: var(--color-white); }

/* =========================================================
 * MODIFICADORES DE PESO E ALINHAMENTO
 * ========================================================= */

.font-light   { font-weight: var(--font-weight-light); }
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium  { font-weight: var(--font-weight-medium); }
.font-bold    { font-weight: var(--font-weight-bold); }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* =========================================================
 * LINKS
 * ========================================================= */

a {
  color: var(--color-blue-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* =========================================================
 * ELEMENTOS ESPECIAIS
 * ========================================================= */

strong, b {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

em, i { font-style: italic; }

small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

mark {
  background-color: var(--color-accent-light);
  color: var(--color-blue-100);
  padding: 0 var(--space-1);
  border-radius: var(--radius-xs);
}

code, kbd, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

code {
  background-color: var(--color-navy-700);
  color: var(--color-blue-200);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-secondary);
}

/* =========================================================
 * MÉTRICAS / ESTATÍSTICAS
 * ========================================================= */

.stat-value {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-white);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* =========================================================
 * LISTAS
 * ========================================================= */

ul, ol {
  padding-left: var(--space-6);
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
}

li {
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.list-unstyled li {
  margin-bottom: 0;
}
