/* ============================================
   THEME - Variáveis CSS e Configurações Base
   Clínica Médica - Cores Tranquilas e Profissionais
   ============================================ */

:root {
  /* ===== CORES PRIMÁRIAS ===== */
  --color-primary: #00A8CC;         /* Azul Vibrante - Energia, confiança */
  --color-secondary: #F8FAFC;       /* Branco - Limpeza, higiene */
  --color-accent: #00D9A5;          /* Verde Esmeralda - Vitalidade, saúde */
  --color-dark: #0F172A;            /* Cinza Escuro - Profissionalismo */
  --color-white: #FFFFFF;

  /* ===== CORES DE FUNDO ===== */
  --color-bg-light: #E6F7FF;        /* Azul Claro Vibrante - Fundo de seções alternadas */
  --color-bg-dark: #0F172A;
  --color-bg-overlay: rgba(0, 168, 204, 0.15);
  
  /* ===== CORES ADICIONAIS VIBRANTES ===== */
  --color-primary-light: #33B8D6;   /* Azul claro para hovers */
  --color-accent-light: #33E0B5;    /* Verde claro para hovers */
  --color-gradient-start: #00A8CC;  /* Início do gradiente */
  --color-gradient-end: #00D9A5;    /* Fim do gradiente */

  /* ===== CORES DE TEXTO ===== */
  --color-text-primary: #0F172A;    /* Títulos e texto importante */
  --color-text-secondary: #475569;  /* Descrições - Mais escuro para contraste */
  --color-text-white: #FFFFFF;
  --color-text-muted: #64748B;

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

  /* ===== TIPOGRAFIA ===== */
  --font-heading: 'Inter', 'Roboto', sans-serif;
  --font-body: 'Inter', 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: 2.5rem;    /* 40px */

  /* Line heights */
  --line-height-tight: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

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

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

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

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

  /* ===== Z-INDEX ===== */
  --z-header: 1000;
  --z-sidebar: 900;
  --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;
}

/* ===== 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);
}

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

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

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

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

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-3xl);
  color: var(--color-text-primary);
}

.section__subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 20px, 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-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
    --spacing-xxl: 3rem;
    --spacing-xl: 2rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
}
