/* ============================================
   VITALMEDIC — Design System Foundation
   Estilo institucional premium inspirado em Medix
   ============================================ */

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

/* ---------- Design Tokens ---------- */
:root {
  /* Cores primárias da Marca */
  --navy: #07182B;
  --navy-light: #122842;
  --navy-dark: #040e1a;

  --red: #E5232B;
  --red-hover: #c41c23;
  --red-light: #fbe9ea;

  --white: #FFFFFF;
  --gray-light: #F5F7FA;
  
  /* Escala de Cinza Neutra */
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Tipografia */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Tamanhos de fonte */
  --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;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Pesos */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;

  /* Espaçamento */
  --section-padding: 6rem 0;

  /* Layout */
  --container-max: 1200px;

  /* Bordas mais afiadas baseadas na referência Medix */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Sombras sutis e elegantes */
  --shadow-sm: 0 2px 4px rgba(7, 24, 43, 0.04);
  --shadow-md: 0 8px 24px rgba(7, 24, 43, 0.08);
  --shadow-lg: 0 16px 48px rgba(7, 24, 43, 0.12);

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Header */
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  color: var(--gray-600);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.15;
  font-weight: var(--font-extrabold);
  letter-spacing: -0.02em;
}

p {
  line-height: 1.7;
  color: var(--gray-600);
}

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

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Section Backgrounds ---------- */
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--gray-light); }
.bg-navy { background-color: var(--navy); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
