/* =====================================================
   WEST AFRICA LOGISTICS SOLUTIONS
   CSS Variables - Design Tokens
   ===================================================== */

:root {
    /* ==================== Colors ==================== */

    /* Primary - Blue (Safety, Trust, Professionalism) */
    --primary-blue: #0d47a1;
    --primary-blue-light: #1565c0;
    --primary-blue-dark: #0a3d8f;
    --primary-blue-hover: #1976d2;

    /* Secondary - Green (Growth, Safety, Environment) */
    --secondary-green: #2e7d32;
    --secondary-green-light: #43a047;
    --secondary-green-dark: #1b5e20;
    --secondary-green-hover: #388e3c;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0d47a1 0%, #2e7d32 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #2e7d32 0%, #0d47a1 100%);
    --gradient-hero: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #2e7d32 100%);
    --gradient-subtle: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --black: #000000;

    /* Text Colors */
    --text-primary: #212121;
    --text-secondary: #616161;
    --text-muted: #9e9e9e;
    --text-light: #ffffff;
    --text-link: #0d47a1;
    --text-link-hover: #1565c0;

    /* Status Colors */
    --success: #4caf50;
    --success-light: #81c784;
    --success-dark: #388e3c;
    --warning: #ff9800;
    --warning-light: #ffb74d;
    --warning-dark: #f57c00;
    --error: #f44336;
    --error-light: #e57373;
    --error-dark: #d32f2f;
    --info: #2196f3;
    --info-light: #64b5f6;
    --info-dark: #1976d2;

    /* ==================== Typography ==================== */

    /* Font Families - System fonts for offline capability */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", monospace;

    /* Font Sizes - Using clamp for fluid typography */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --font-size-sm: clamp(0.8125rem, 0.775rem + 0.25vw, 0.875rem);
    --font-size-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
    --font-size-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1.05rem + 0.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
    --font-size-3xl: clamp(1.875rem, 1.65rem + 1vw, 2.25rem);
    --font-size-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
    --font-size-5xl: clamp(3rem, 2.5rem + 2vw, 4rem);

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

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

    /* Letter Spacing */
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;

    /* ==================== Spacing ==================== */

    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */

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

    /* ==================== Layout ==================== */

    /* Container Widths */
    --container-xs: 20rem;    /* 320px */
    --container-sm: 24rem;    /* 384px */
    --container-md: 28rem;    /* 448px */
    --container-lg: 32rem;    /* 512px */
    --container-xl: 36rem;    /* 576px */
    --container-2xl: 42rem;   /* 672px */
    --container-3xl: 48rem;   /* 768px */
    --container-4xl: 56rem;   /* 896px */
    --container-5xl: 64rem;   /* 1024px */
    --container-6xl: 72rem;   /* 1152px */
    --container-7xl: 80rem;   /* 1280px */
    --container-max: 90rem;   /* 1440px */

    /* Breakpoints (for reference in JS) */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;

    /* ==================== Borders ==================== */

    --border-width-thin: 1px;
    --border-width-normal: 2px;
    --border-width-thick: 3px;

    --border-radius-none: 0;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-2xl: 1rem;
    --border-radius-3xl: 1.5rem;
    --border-radius-full: 9999px;

    /* ==================== Shadows ==================== */

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

    /* Colored Shadows */
    --shadow-primary: 0 4px 14px rgba(13, 71, 161, 0.3);
    --shadow-success: 0 4px 14px rgba(76, 175, 80, 0.3);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);

    /* ==================== Transitions ==================== */

    --transition-none: none;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;

    /* Specific Transitions */
    --transition-colors: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
    --transition-transform: transform 250ms ease;
    --transition-shadow: box-shadow 250ms ease;
    --transition-all: all 250ms ease;

    /* ==================== Z-Index Scale ==================== */

    --z-below: -1;
    --z-base: 0;
    --z-above: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-fixed: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
    --z-toast: 700;
    --z-max: 9999;

    /* ==================== Component Specific ==================== */

    /* Header */
    --header-height: 4.5rem;
    --header-height-scrolled: 3.5rem;
    --header-bg: rgba(255, 255, 255, 0.98);
    --header-bg-scrolled: rgba(255, 255, 255, 0.95);

    /* Hero */
    --hero-min-height: 80vh;
    --hero-max-height: 100vh;

    /* Cards */
    --card-padding: var(--space-6);
    --card-border-radius: var(--border-radius-xl);
    --card-bg: var(--white);

    /* Buttons */
    --btn-padding-x: var(--space-6);
    --btn-padding-y: var(--space-3);
    --btn-border-radius: var(--border-radius-lg);
    --btn-font-weight: var(--font-weight-semibold);

    /* Forms */
    --input-padding-x: var(--space-4);
    --input-padding-y: var(--space-3);
    --input-border-radius: var(--border-radius-md);
    --input-border-color: var(--gray-300);
    --input-focus-border-color: var(--primary-blue);
    --input-bg: var(--white);
}
