/* ============================================
   GLOBAL.CSS - Design System
   Método Intestino Livre - Programa de Aceleração
   ============================================ */

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

/* CSS Variables */
:root {
  /* Primary Colors - Vibrant & Modern */
  --color-primary: #FF7B4A;
  --color-primary-dark: #E65A2C;
  --color-primary-light: #FFB599;
  --color-primary-glow: rgba(255, 123, 74, 0.4);

  /* Secondary Colors - Deep & Rich */
  --color-secondary: #7C3A5C;
  --color-secondary-dark: #5A2840;
  --color-secondary-light: #A66B8C;
  --color-secondary-glow: rgba(124, 58, 92, 0.3);

  /* Accent Colors - Fresh additions */
  --color-accent: #9B59B6;
  --color-accent-light: #D7BDE2;

  /* Backgrounds - Refined */
  --color-bg: #FEFCFA;
  --color-bg-alt: #FFF9F5;
  --color-bg-dark: #1A1A2E;
  --color-bg-glass: rgba(255, 255, 255, 0.7);

  /* Gradients - Premium */
  --gradient-primary: linear-gradient(135deg, #FF7B4A 0%, #E65A2C 100%);
  --gradient-secondary: linear-gradient(135deg, #7C3A5C 0%, #5A2840 100%);
  --gradient-hero: linear-gradient(135deg, #FFF9F5 0%, #FFE8DC 50%, #F5E6FF 100%);
  --gradient-mesh: radial-gradient(at 20% 80%, rgba(255, 123, 74, 0.15) 0%, transparent 50%),
    radial-gradient(at 80% 20%, rgba(124, 58, 92, 0.1) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(155, 89, 182, 0.08) 0%, transparent 60%);
  --gradient-text: linear-gradient(135deg, #FF7B4A 0%, #7C3A5C 100%);
  --gradient-positive: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  --gradient-negative: linear-gradient(135deg, #c0392b 0%, #8B2635 100%);

  /* Contrast Colors */
  --color-negative: #C0392B;
  --color-negative-light: #FDEDEC;
  --color-positive: #27AE60;
  --color-positive-light: #E8F8EF;

  /* Text Colors */
  --color-text: #1A1A2E;
  --color-text-light: #5D5D7A;
  --color-text-inverse: #FFFFFF;
  --color-text-muted: #8B8BA3;

  /* Typography */
  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Font Sizes (Mobile First) */
  --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 */

  /* Spacing */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */
  --space-4xl: 6rem;
  /* 96px */

  /* Border Radius - Softer */
  --radius-xs: 0.375rem;
  /* 6px */
  --radius-sm: 0.75rem;
  /* 12px */
  --radius-md: 1.25rem;
  /* 20px */
  --radius-lg: 1.75rem;
  /* 28px */
  --radius-xl: 2.5rem;
  /* 40px */
  --radius-full: 9999px;

  /* Shadows - Modern with color */
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 26, 46, 0.16);
  --shadow-glow-primary: 0 8px 32px rgba(255, 123, 74, 0.25);
  --shadow-glow-secondary: 0 8px 32px rgba(124, 58, 92, 0.2);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);

  /* Blur Effects */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;

  /* Transitions - Smooth */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

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

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

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

h4 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-md);
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section spacing */
section {
  padding: var(--space-2xl) 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-light {
  color: var(--color-text-light);
}

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

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

/* Responsive Typography */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2.5rem;
    /* 40px */
    --text-4xl: 3rem;
    /* 48px */
  }

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

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

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');