/* =====================================================
   theContt — Design System Base
   Variáveis, reset, tipografia, grid
   ===================================================== */

:root {
  /* === CORES PRIMÁRIAS === */
  --color-primary:        #1B1E3C;
  --color-primary-light:  #272B52;
  --color-primary-dark:   #111328;

  /* === ACCENT / CTA === */
  --color-cta:            #E8365D;
  --color-cta-hover:      #C82C4E;
  --color-cta-light:      rgba(232, 54, 93, 0.10);

  /* === NEUTROS === */
  --color-bg:             #F7F8FA;
  --color-bg-alt:         #FFFFFF;
  --color-surface:        #FFFFFF;
  --color-border:         rgba(27, 30, 60, 0.10);
  --color-border-strong:  rgba(27, 30, 60, 0.20);

  /* === TEXTO === */
  --color-text-primary:   #0F1120;
  --color-text-secondary: #3D4060;
  --color-text-muted:     #7A7E9A;
  --color-text-on-dark:   #FFFFFF;
  --color-text-on-dark-muted: rgba(255,255,255,0.70);

  /* === SEMÂNTICAS === */
  --color-success:        #16A34A;
  --color-warning:        #B45309;
  --color-error:          #DC2626;
  --color-info:           #0369A1;

  /* === TIPOGRAFIA === */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* === ESCALA TIPOGRÁFICA === */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   2rem;
  --text-4xl:   2.5rem;
  --text-hero:  clamp(2.2rem, 5vw, 3.5rem);
  --text-h2:    clamp(1.75rem, 3.5vw, 2.5rem);

  /* === PESOS === */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  /* === ESPAÇAMENTO === */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;

  /* === LAYOUT === */
  --container-max:  1200px;
  --container-pad:  clamp(20px, 5vw, 48px);
  --nav-height:     68px;
  --section-pad-y:  clamp(56px, 8vw, 96px);

  /* === BORDER RADIUS === */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* === SOMBRAS === */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);
  --shadow-cta: 0 4px 20px rgba(232, 54, 93, 0.35);

  /* === TRANSIÇÕES === */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: 1.65;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* =====================================================
   TIPOGRAFIA
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { line-height: 1.7; }

strong { font-weight: var(--fw-semibold); }

/* =====================================================
   GRID / CONTAINER
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}
.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--color-text-on-dark);
}

.section--gray {
  background: var(--color-bg);
}

.section--white {
  background: var(--color-surface);
}

/* Grid de 2 e 3 colunas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

/* =====================================================
   UTILITÁRIOS
   ===================================================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }

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

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: var(--sp-3);
}

.section-header {
  max-width: 640px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}

.section-header p {
  margin-top: var(--sp-4);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* Animação de entrada — ativada só quando JS está carregado (.js-ready no body) */
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
