/* ============================================================
   FolhaPronta — global.css
   Variáveis, reset, tipografia e utilitários base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  /* Cores principais */
  --color-primary:       #2563EB;  /* azul principal */
  --color-primary-dark:  #1D4ED8;
  --color-primary-light: #DBEAFE;

  --color-secondary:     #10B981;  /* verde ação */
  --color-secondary-dark:#059669;

  --color-accent:        #F59E0B;  /* amarelo destaque */
  --color-accent-dark:   #D97706;

  --color-danger:        #EF4444;
  --color-warning:       #F97316;

  /* Planos */
  --color-free:          #6B7280;
  --color-premium:       #2563EB;
  --color-max:           #7C3AED;

  /* Neutros */
  --color-white:         #FFFFFF;
  --color-gray-50:       #F9FAFB;
  --color-gray-100:      #F3F4F6;
  --color-gray-200:      #E5E7EB;
  --color-gray-300:      #D1D5DB;
  --color-gray-400:      #9CA3AF;
  --color-gray-500:      #6B7280;
  --color-gray-600:      #4B5563;
  --color-gray-700:      #374151;
  --color-gray-800:      #1F2937;
  --color-gray-900:      #111827;

  /* Tipografia */
  --font-display:  'Nunito', sans-serif;
  --font-body:     'Poppins', sans-serif;

  --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:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;

  /* Espaçamento */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Bordas */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);

  /* Transições */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:  1200px;
  --header-height:  80px;
}

[data-tema="dark"] {
  --color-white:         #111827;
  --color-gray-50:       #1F2937;
  --color-gray-100:      #1F2937;
  --color-gray-200:      #374151;
  --color-gray-300:      #4B5563;
  --color-gray-400:      #6B7280;
  --color-gray-500:      #9CA3AF;
  --color-gray-600:      #D1D5DB;
  --color-gray-700:      #E5E7EB;
  --color-gray-800:      #F3F4F6;
  --color-gray-900:      #F9FAFB;
  --color-primary:       #3B82F6;
  --color-primary-dark:  #2563EB;
  --color-primary-light: #1E3A5F;
  --color-secondary:     #10B981;
  --color-accent:        #FBBF24;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.3);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.5), 0 10px 10px rgba(0,0,0,0.3);
}

/* ── 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);
  color: var(--color-gray-800);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ── Tipografia ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { line-height: 1.7; }

/* ── Layout Utilitários ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2       { gap: var(--space-2); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }
.text-center { text-align: center; }
.hidden      { display: none; }

.logo {
  gap: var(--space-2);
  align-items: center;
  display: flex;
}

/* ── Animações base ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fadeInUp  { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeIn    { animation: fadeIn 0.4s ease forwards; }
.animate-pulse     { animation: pulse 2s infinite; }

/* ── Botão de tema claro/escuro ─────────────────────────────── */
.btn-tema {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-tema:hover {
  background: var(--color-gray-200);
  transform: rotate(20deg) scale(1.1);
}

.btn-tema .tema-icone {
  line-height: 1;
  transition: transform var(--transition-base);
  display: block;
}

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --text-5xl: 2.25rem;
  }
  .container { padding: 0 var(--space-4); }
  .section   { padding: var(--space-12) 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
}