/* ============================================
   OrthoAlign Rehab — Design Tokens
   Premium Healthcare Design System
   ============================================ */

:root {
    /* ----------------------------------------
       COLOR SYSTEM
       ---------------------------------------- */

    /* Primary (Teal) */
    --color-navy: #0B3B3C;
    --color-navy-light: #165657;
    --color-navy-dark: #052425;
    --color-teal: #006B6B;
    --color-teal-light: #208B8B;
    
    /* Secondary (Gold) */
    --color-blue: #C69C3B;
    --color-blue-light: #D4B05A;
    --color-blue-dark: #A67C00;
    --color-white: #FFFFFF;

    /* Backgrounds */
    --color-cyan: #FBF9F4;
    --color-cyan-light: #FDFAF5;
    --color-sky: #EFE9D9;
    --color-ice: #F5EEDB;

    /* Neutral Grays */
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Accent */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;

    /* Brand Gradients */
    --gradient-brand: linear-gradient(135deg, #0B3B3C 0%, #006B6B 100%);
    --gradient-brand-light: linear-gradient(135deg, #C69C3B 0%, #D4B05A 100%);
    --gradient-hero: linear-gradient(160deg, #FDFAF5 0%, #F5EEDB 40%, #FFFFFF 100%);
    --gradient-cta: linear-gradient(135deg, #0B3B3C 0%, #165657 50%, #C69C3B 100%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #FBF9F4 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);

    /* ----------------------------------------
       TYPOGRAPHY
       ---------------------------------------- */

    /* Font Families */
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes — Fluid Scale */
    --text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);       /* 11-12px */
    --text-sm: clamp(0.8125rem, 0.775rem + 0.15vw, 0.875rem);     /* 13-14px */
    --text-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);         /* 15-16px */
    --text-md: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);            /* 16-18px */
    --text-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);         /* 18-20px */
    --text-xl: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);           /* 20-24px */
    --text-2xl: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);         /* 24-30px */
    --text-3xl: clamp(1.875rem, 1.65rem + 0.9vw, 2.5rem);         /* 30-40px */
    --text-4xl: clamp(2.25rem, 1.9rem + 1.4vw, 3.25rem);          /* 36-52px */
    --text-5xl: clamp(2.75rem, 2.2rem + 2.2vw, 4.25rem);          /* 44-68px */

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

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 1.8;

    /* Letter Spacing */
    --tracking-tighter: -0.04em;
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* ----------------------------------------
       SPACING (8px Grid)
       ---------------------------------------- */
    --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 Padding */
    --section-py: clamp(4rem, 3rem + 4vw, 7rem);
    --section-px: clamp(1rem, 0.5rem + 2vw, 2rem);

    /* ----------------------------------------
       LAYOUT
       ---------------------------------------- */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    --container-px: clamp(1rem, 0.5rem + 2vw, 2rem);

    /* ----------------------------------------
       BORDERS & RADII
       ---------------------------------------- */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-pill: 9999px;

    --border-light: 1px solid var(--color-gray-200);
    --border-medium: 1px solid var(--color-gray-300);
    --border-blue: 2px solid var(--color-blue);

    /* ----------------------------------------
       SHADOWS (Elevation System)
       ---------------------------------------- */
    --shadow-xs: 0 1px 2px rgba(11, 31, 58, 0.04);
    --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
    --shadow-md: 0 4px 16px rgba(11, 31, 58, 0.08);
    --shadow-lg: 0 8px 32px rgba(11, 31, 58, 0.1);
    --shadow-xl: 0 16px 48px rgba(11, 31, 58, 0.12);
    --shadow-2xl: 0 24px 64px rgba(11, 31, 58, 0.16);
    --shadow-inner: inset 0 2px 4px rgba(11, 31, 58, 0.06);
    --shadow-blue: 0 8px 32px rgba(24, 99, 220, 0.2);
    --shadow-blue-lg: 0 16px 48px rgba(24, 99, 220, 0.25);
    --shadow-card-hover: 0 12px 40px rgba(11, 31, 58, 0.12);

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(20px);

    /* ----------------------------------------
       TRANSITIONS
       ---------------------------------------- */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 600ms cubic-bezier(0.23, 1, 0.32, 1);

    /* ----------------------------------------
       Z-INDEX SCALE
       ---------------------------------------- */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-drawer: 400;
    --z-modal-backdrop: 500;
    --z-modal: 600;
    --z-toast: 700;
    --z-tooltip: 800;
}

/* ----------------------------------------
   DARK MODE TOKENS (future-ready)
   ---------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        /* Reserved for future dark mode implementation */
    }
}
