/*
 * CAROLINE LEONE - DESIGN SYSTEM VISLUMBRANTE
 * Cores: Menta + Lilás | Público: Crianças + Profissionais
 * Qualidade: Internacional | Foco: Conversão Máxima
 */

/* ===============================================
   1. DESIGN TOKENS & CSS VARIABLES
   =============================================== */

:root {
  /* CORES PRIMÁRIAS - MENTA & LILÁS */
  --mint-50: #f0fdf9;
  --mint-100: #ccfbef;
  --mint-200: #99f6e0;
  --mint-300: #5eead4;  /* Menta principal do logo */
  --mint-400: #2dd4bf;
  --mint-500: #14b8a6;
  --mint-600: #0d9488;
  --mint-700: #0f766e;
  --mint-800: #115e59;
  --mint-900: #134e4a;

  --lilac-50: #fdf4ff;
  --lilac-100: #fae8ff;
  --lilac-200: #f5d0fe;
  --lilac-300: #f0abfc;  /* Lilás principal do logo */
  --lilac-400: #e879f9;
  --lilac-500: #d946ef;
  --lilac-600: #c026d3;
  --lilac-700: #a21caf;
  --lilac-800: #86198f;
  --lilac-900: #701a75;

  /* GRADIENTES MÁGICOS */
  --gradient-primary: linear-gradient(135deg, var(--mint-300) 0%, var(--lilac-300) 100%);
  --gradient-hero: linear-gradient(135deg, var(--mint-100) 0%, var(--lilac-100) 50%, var(--mint-50) 100%);
  --gradient-card: linear-gradient(145deg, rgba(94, 234, 212, 0.1) 0%, rgba(240, 171, 252, 0.1) 100%);
  --gradient-button: linear-gradient(135deg, var(--mint-400) 0%, var(--lilac-400) 100%);
  --gradient-text: linear-gradient(135deg, var(--mint-600) 0%, var(--lilac-600) 100%);

  /* CORES DE APOIO */
  --neutral-white: #ffffff;
  --neutral-cream: #fefdfb;
  --neutral-light: #f8fafc;
  --neutral-gray: #64748b;
  --neutral-dark: #334155;
  --neutral-black: #0f172a;

  /* CORES EMOCIONAIS */
  --joy: #fbbf24;        /* Amarelo alegria */
  --trust: #3b82f6;      /* Azul confiança */
  --calm: #10b981;       /* Verde calma */
  --energy: #f59e0b;     /* Laranja energia */
  --safety: #8b5cf6;     /* Roxo segurança */

  /* TIPOGRAFIA */
  --font-heading: 'Poppins', 'Comic Sans MS', sans-serif;  /* Para crianças */
  --font-body: 'Inter', system-ui, sans-serif;             /* Profissional */
  --font-accent: 'Nunito', cursive;                        /* Elementos lúdicos */

  /* ESCALAS TIPOGRÁFICAS */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* ESPAÇAMENTOS HARMONIOSOS */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */

  /* RAIOS DE BORDA */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* SOMBRAS PROFUNDAS */
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-magical: 0 25px 50px rgba(94, 234, 212, 0.25), 0 12px 24px rgba(240, 171, 252, 0.25);

  /* ANIMAÇÕES SUAVES */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-INDEX HIERARCHY */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ===============================================
   2. RESET & BASE STYLES
   =============================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--neutral-dark);
  background: var(--neutral-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===============================================
   3. TIPOGRAFIA ESPECIALIZADA
   =============================================== */

.heading-display {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
}

.heading-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-dark);
  margin-bottom: var(--space-4);
}

.heading-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--neutral-dark);
  margin-bottom: var(--space-4);
}

.heading-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.4;
  color: var(--neutral-dark);
  margin-bottom: var(--space-3);
}

.text-playful {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--mint-600);
  font-size: var(--text-xl);
}

.text-professional {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--neutral-gray);
}

/* ===============================================
   4. COMPONENTES DE LAYOUT
   =============================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-20) 0;
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* ===============================================
   5. CARDS VISLUMBRANTES
   =============================================== */

.card {
  background: var(--neutral-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(94, 234, 212, 0.1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-magical);
}

.card:hover::before {
  opacity: 1;
}

.card-certification {
  background: var(--gradient-card);
  border: 2px solid var(--mint-200);
  position: relative;
}

.card-certification::after {
  content: '✨';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-2xl);
  animation: sparkle 2s infinite ease-in-out;
}

/* ===============================================
   6. BOTÕES MAGNÉTICOS
   =============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  min-width: 180px;
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--neutral-white);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--neutral-white);
  gap: var(--space-2);
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

/* ===============================================
   7. ANIMAÇÕES MÁGICAS
   =============================================== */

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-fade-scale {
  animation: fadeInScale 0.6s ease-out forwards;
}

/* ===============================================
   8. RESPONSIVE BREAKPOINTS
   =============================================== */

/* Mobile First Approach */
@media (max-width: 640px) {
  .heading-display {
    font-size: var(--text-4xl);
  }
  
  .heading-h1 {
    font-size: var(--text-3xl);
  }
  
  .container {
    padding: 0 var(--space-3);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .card {
    padding: var(--space-6);
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .heading-display {
    font-size: var(--text-5xl);
  }
}

/* Desktop Large */
@media (min-width: 1025px) {
  .container {
    padding: 0 var(--space-6);
  }
}

/* ===============================================
   9. UTILIDADES ESPECIAIS
   =============================================== */

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-hero {
  background: var(--gradient-hero);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-magical {
  box-shadow: var(--shadow-magical);
}

.blur-child-face {
  filter: blur(8px);
  border-radius: var(--radius-full);
}

/* Paralax e Scroll Effects */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* Hover magnético para elementos especiais */
.magnetic-hover {
  transition: all var(--transition-base);
}

.magnetic-hover:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* ===============================================
   10. PRINT STYLES
   =============================================== */

@media print {
  .btn, .animate-float, .parallax {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}