@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* ==========================================================================
     COLOR TOKENS (Ramos Medicina Diagnóstica Brand Identity)
     ========================================================================== */
  
  /* Primary Brand Blue (Deep corporate blue from logo & icon) */
  --color-blue-50: #f4f6fc;
  --color-blue-100: #e5edf7;
  --color-blue-200: #d0def1;
  --color-blue-300: #b0c6e6;
  --color-blue-400: #88a7d7;
  --color-blue-500: #6287c5;
  --color-blue-600: #3e5393;  /* Core Logo Blue */
  --color-blue-700: #314e8f;  /* Deep Accent Blue */
  --color-blue-800: #2a3c75;
  --color-blue-900: #1b264e;
  
  /* Secondary Brand Orange/Bronze (From logo & icon) */
  --color-orange-50: #fdf7f2;
  --color-orange-100: #fbeee3;
  --color-orange-200: #f5dabf;
  --color-orange-300: #efbf92;
  --color-orange-400: #e59d5e;
  --color-orange-500: #be7c2a; /* Light Bronze */
  --color-orange-600: #b66626; /* Core Logo Orange */
  --color-orange-700: #98511c;
  --color-orange-800: #7b4017;
  --color-orange-900: #4c260d;

  /* Neutral Grey Scale (Sleek Slate/Zinc tones for premium readability) */
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-error: #ef4444;
  --color-error-bg: #fef2f2;
  --color-info: #3b82f6;
  --color-info-bg: #eff6ff;

  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-blue-600) 0%, var(--color-blue-700) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-orange-500) 0%, var(--color-orange-600) 100%);
  --gradient-hero: radial-gradient(circle at 80% 20%, #e8f0fa 0%, #ffffff 80%);
  --gradient-cta: linear-gradient(135deg, var(--color-blue-700) 0%, var(--color-blue-900) 100%);
  --gradient-card-hover: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(244,246,252,0.5) 100%);

  /* Common CSS Semantics (Mapping tokens to roles) */
  --color-text-primary: var(--color-neutral-900);
  --color-text-secondary: var(--color-neutral-600);
  --color-text-muted: var(--color-neutral-400);
  --color-text-light: #ffffff;
  
  --color-bg-primary: #ffffff;
  --color-bg-secondary: var(--color-neutral-50);
  --color-bg-tertiary: var(--color-neutral-100);
  --color-bg-brand-blue: var(--color-blue-600);
  --color-bg-brand-orange: var(--color-orange-600);

  --color-border: var(--color-neutral-200);
  --color-border-hover: var(--color-blue-200);
  --color-border-focus: var(--color-blue-400);

  /* ==========================================================================
     TYPOGRAPHY TOKENS
     ========================================================================== */
  
  /* Font Families */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-xxl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Letter Spacing */
  --letter-spacing-tighter: -0.04em;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;

  /* ==========================================================================
     SPACING TOKENS (Grid and Layout dimensions)
     ========================================================================== */
  
  --spacing-0: 0px;
  --spacing-xxs: 0.25rem;      /* 4px */
  --spacing-xs: 0.5rem;        /* 8px */
  --spacing-sm: 0.75rem;       /* 12px */
  --spacing-md: 1rem;          /* 16px */
  --spacing-lg: 1.5rem;        /* 24px */
  --spacing-xl: 2rem;          /* 32px */
  --spacing-xxl: 3rem;         /* 48px */
  --spacing-3xl: 4rem;         /* 64px */
  --spacing-4xl: 6rem;         /* 96px */

  /* Container Max Width */
  --container-max-width: 1200px;

  /* ==========================================================================
     SHADOW & ELEVATION TOKENS (Layered for ultra-soft glow)
     ========================================================================== */
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.04), 0 2px 4px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.06), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
  
  /* Brand specific glowing shadows */
  --shadow-blue-glow: 0 10px 20px -5px rgba(62, 83, 147, 0.15);
  --shadow-orange-glow: 0 10px 20px -5px rgba(182, 102, 38, 0.15);

  /* Glassmorphism Effect */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-backdrop-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);

  /* ==========================================================================
     BORDER RADIUS TOKENS (Smooth squircle feeling)
     ========================================================================== */
  
  --radius-xs: 0.3125rem;       /* 5px */
  --radius-sm: 0.5rem;         /* 8px */
  --radius-md: 0.75rem;        /* 12px */
  --radius-lg: 1rem;          /* 16px */
  --radius-xl: 1.5rem;         /* 24px */
  --radius-xxl: 2rem;          /* 32px */
  --radius-full: 9999px;

  /* ==========================================================================
     TRANSITIONS & ANIMATIONS
     ========================================================================== */
  
  --transition-fast: 100ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

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

html {
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-400);
}
