/* ============================================
   THEME - Variáveis CSS e Configurações Base
   Design Moderno e Profissional
   ============================================ */

:root {
  /* ===== CORES PRIMÁRIAS ===== */
  --color-primary: #6366F1;        /* Índigo moderno e profissional */
  --color-primary-dark: #4F46E5;  /* Índigo escuro */
  --color-primary-light: #818CF8;  /* Índigo claro */
  --color-secondary: #0F172A;      /* Azul escuro profundo */
  --color-accent: #10B981;         /* Verde esmeralda para destaque */
  --color-accent-alt: #F59E0B;     /* Âmbar para acentos secundários */
  --color-white: #FFFFFF;

  /* ===== CORES DE FUNDO ===== */
  --color-bg-light: #F8FAFC;       /* Cinza muito claro */
  --color-bg-medium: #F1F5F9;      /* Cinza claro */
  --color-bg-dark: #1E293B;       /* Azul escuro */
  --color-bg-overlay: rgba(15, 23, 42, 0.7);

  /* ===== CORES DE TEXTO ===== */
  --color-text-primary: #0F172A;   /* Quase preto */
  --color-text-secondary: #64748B;  /* Cinza médio */
  --color-text-white: #FFFFFF;
  --color-text-muted: #94A3B8;     /* Cinza claro */

  /* ===== ESPAÇAMENTO ===== */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 4rem;       /* 64px */
  --spacing-xxl: 6rem;     /* 96px */

  /* ===== TIPOGRAFIA ===== */
  --font-heading: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Tamanhos de fonte */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 3rem;      /* 48px */
  --font-size-5xl: 4rem;      /* 64px */

  /* Line heights */
  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Font weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ===== LAYOUT ===== */
  --container-max-width: 1400px;
  --header-height: 80px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* ===== SOMBRAS ===== */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.12);
  --shadow-2xl: 0 25px 50px rgba(15, 23, 42, 0.15);

  /* ===== TRANSIÇÕES ===== */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* ===== Z-INDEX ===== */
  --z-header: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

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

/* ===== UTILITÁRIOS ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section__title {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.section__subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-relaxed);
}

/* ===== ANIMAÇÕES BASE - OTIMIZADAS PARA GPU ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* ===== RESPONSIVIDADE BASE ===== */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --spacing-xxl: 4rem;
    --spacing-xl: 3rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
}
