/**
 * CENOM - Design Tokens
 * Paleta de cores, tipografia, espaçamento e efeitos
 * Referência: Apple + Einstein Hospital
 */

/* ═══════════════════════════════════════════
   RESET CSS GLOBAL
   ═══════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: white;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

:root {
  /* ═══════════════════════════════════════════
     CORES - CENOM Brand Core
     ═══════════════════════════════════════════ */
  
  /* Azul Institucional Profundo */
  --color-primary-dark: #003d7a;
  --color-primary: #0052a3;
  --color-primary-light: #f0f4f9;
  
  /* Amarelo/Dourado - Logo CENOM (warmth, energia) */
  --color-secondary: #FFD700;
  --color-secondary-light: #FFF9E6;
  
  /* Verde - Uso mínimo, apenas acentos funcionais */
  --color-accent: #00a651;
  --color-accent-light: #e6f7ed;
  
  /* Neutros */
  --color-white: #ffffff;
  --color-gray-dark: #1a1a1a;
  --color-gray-medium: #666666;
  --color-gray-light: #f9f9f9;
  --color-gray-border: #e5e5e5;
  
  /* Feedback */
  --color-success: #00a651;
  --color-error: #d32f2f;
  --color-warning: #f57c00;

  /* NOTA: Paleta CENOM
     Primária (Azul): Corporativo, confiança, profissionalismo
     Secundária (Amarelo): Energia, otimismo, calor humano
     Accent (Verde): CTAs e funcional (uso mínimo)
  */

  /* ═══════════════════════════════════════════
     TIPOGRAFIA - Escala Responsiva
     ═══════════════════════════════════════════ */
  
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                      Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', 
                      sans-serif;
  --font-family-display: inherit;
  
  /* Font weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Heading sizes - usando clamp() para fluidez */
  --text-h1: clamp(2.25rem, 5vw, 5rem);      /* 36-80px */
  --text-h2: clamp(1.875rem, 4vw, 3.5rem);   /* 30-56px */
  --text-h3: clamp(1.5rem, 2.5vw, 2rem);     /* 24-32px */
  --text-h4: clamp(1.25rem, 2vw, 1.5rem);    /* 20-24px */
  
  /* Body text */
  --text-body-lg: clamp(1.125rem, 1.2vw, 1.25rem);  /* 18-20px */
  --text-body: clamp(1rem, 1.1vw, 1.125rem);        /* 16-18px */
  --text-body-sm: 0.875rem;                          /* 14px */
  --text-caption: 0.75rem;                           /* 12px */

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

  /* Letter spacing */
  --letter-spacing-tight: -0.5px;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.5px;

  /* ═══════════════════════════════════════════
     ESPAÇAMENTO - Sistema 0.5rem (8px base)
     ═══════════════════════════════════════════ */
  
  --spacing-xs: 0.5rem;      /* 8px */
  --spacing-sm: 1rem;        /* 16px */
  --spacing-md: 1.5rem;      /* 24px */
  --spacing-lg: 2rem;        /* 32px */
  --spacing-xl: 3rem;        /* 48px */
  --spacing-2xl: 4rem;       /* 64px */
  --spacing-3xl: 6rem;       /* 96px */

  /* ═══════════════════════════════════════════
     BORDER RADIUS - Muito Discreto
     ═══════════════════════════════════════════ */
  
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* ═══════════════════════════════════════════
     SOMBRAS - Extremamente Sutis
     ═══════════════════════════════════════════ */
  
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.14);

  /* ═══════════════════════════════════════════
     TRANSIÇÕES E ANIMAÇÕES
     ═══════════════════════════════════════════ */
  
  --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);
  
  --easing-ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --easing-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ═══════════════════════════════════════════
     BREAKPOINTS - Mobile First
     ═══════════════════════════════════════════ */
  
  /* Usados em media queries:
     @media (min-width: 640px) { ... }  /* sm */
     @media (min-width: 768px) { ... }  /* md */
     @media (min-width: 1024px) { ... } /* lg */
     @media (min-width: 1280px) { ... } /* xl */
  */

  /* ═══════════════════════════════════════════
     Z-INDEX - Hierarquia Visual
     ═══════════════════════════════════════════ */
  
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 50;
  --z-fixed: 100;
  --z-modal-backdrop: 1000;
  --z-modal: 1001;
  --z-tooltip: 1100;

  /* ═══════════════════════════════════════════
     CONTAINER - Max-widths
     ═══════════════════════════════════════════ */
  
  --container-max: 1400px;
  --container-padding: 3rem;
  --container-padding-mobile: 1rem;
}

/**
 * Reduz-se animações para usuários que preferem movimento reduzido
 * Acessibilidade: WCAG compliance
 */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/**
 * Reset CSS Básico
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-body);
  line-height: var(--line-height-normal);
  color: var(--color-gray-dark);
  background: var(--color-white);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Remove estilos padrão de listas */
ul,
ol {
  list-style: none;
}

/* Foco acessível em elementos interativos */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
