/**
 * CSS Design System - Variables
 * Blaze Roadside & Transport
 */

:root {
  /* ===================
     COLOR PALETTE
     =================== */

  /* Primary - Deep Navy (Trust, Reliability) */
  --color-primary: #1E3A5F;
  --color-primary-dark: #0F2439;
  --color-primary-light: #2D5A8A;
  --color-primary-rgb: 30, 58, 95;

  /* Accent - Safety Orange (Action, Urgency) */
  --color-accent: #F7931E;
  --color-accent-dark: #E07D0A;
  --color-accent-light: #FFB347;
  --color-accent-rgb: 247, 147, 30;

  /* Neutral */
  --color-text: #1A1A1A;
  --color-text-muted: #4A5568;
  --color-text-light: #718096;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-bg-dark: #EDF2F7;
  --color-border: #E2E8F0;
  --color-border-dark: #CBD5E0;

  /* Semantic */
  --color-success: #059669;
  --color-success-light: #D1FAE5;
  --color-error: #DC2626;
  --color-error-light: #FEE2E2;
  --color-warning: #D97706;
  --color-warning-light: #FEF3C7;
  --color-info: #2563EB;
  --color-info-light: #DBEAFE;


  /* ===================
     TYPOGRAPHY
     =================== */

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-primary);

  /* Font Sizes (Fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 4.5rem);

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;


  /* ===================
     SPACING
     =================== */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Section Spacing */
  --section-padding: clamp(3rem, 5vw, 6rem);
  --container-padding: clamp(1rem, 3vw, 2rem);


  /* ===================
     LAYOUT
     =================== */

  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;


  /* ===================
     SHADOWS
     =================== */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);


  /* ===================
     TRANSITIONS
     =================== */

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;


  /* ===================
     Z-INDEX
     =================== */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;


  /* ===================
     FOCUS
     =================== */

  --focus-ring: 0 0 0 3px rgba(var(--color-accent-rgb), 0.5);
  --focus-ring-primary: 0 0 0 3px rgba(var(--color-primary-rgb), 0.3);
}


/* ===================
   DARK MODE (if needed)
   =================== */

@media (prefers-color-scheme: dark) {
  :root {
    /* Can enable dark mode later if needed */
  }
}


/* ===================
   REDUCED MOTION
   =================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
  }
}
