/* CSS Custom Properties / Variables */
:root {
    /* Primary Colors - Professional Healthcare Blue */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-primary-lighter: #dbeafe;
    --color-primary-alpha: rgba(37, 99, 235, 0.1);

    /* Secondary Colors - Medical Teal/Green */
    --color-secondary: #059669;
    --color-secondary-dark: #047857;
    --color-secondary-light: #10b981;
    --color-secondary-lighter: #d1fae5;
    --color-secondary-alpha: rgba(5, 150, 105, 0.1);

    /* Accent Colors - Warm Orange for CTAs */
    --color-accent: #ea580c;
    --color-accent-dark: #c2410c;
    --color-accent-light: #f97316;
    --color-accent-lighter: #fed7aa;

    /* Brand Colors - Appalmed Red */
    --color-brand-red: #E31E24;
    --color-brand-red-dark: #B91C22;
    --color-brand-red-light: #F73E43;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-grey-50: #f9fafb;
    --color-grey-100: #f3f4f6;
    --color-grey-200: #e5e7eb;
    --color-grey-300: #d1d5db;
    --color-grey-400: #9ca3af;
    --color-grey-500: #6b7280;
    --color-grey-600: #4b5563;
    --color-grey-700: #374151;
    --color-grey-800: #1f2937;
    --color-grey-900: #111827;

    /* Text Colors */
    --color-text-primary: #1f2937;
    --color-text-secondary: #4b5563;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-text-white: #ffffff;

    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-tertiary: #f3f4f6;
    --color-bg-accent: #dbeafe;
    --color-bg-dark: #1f2937;

    /* Border Colors */
    --color-border-light: #e5e7eb;
    --color-border-medium: #d1d5db;
    --color-border-dark: #9ca3af;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
    --gradient-hero: linear-gradient(135deg, var(--color-grey-50) 0%, var(--color-primary-lighter) 100%);
    --gradient-subtle: linear-gradient(180deg, var(--color-white) 0%, var(--color-grey-50) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

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

    /* Font Sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    --font-size-7xl: 4.5rem;    /* 72px */

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

    /* Letter Spacing (for Moyra-style vertical text effect) */
    --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 Scale */
    --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 */
    --space-40: 10rem;    /* 160px */
    --space-48: 12rem;    /* 192px */
    --space-56: 14rem;    /* 224px */
    --space-64: 16rem;    /* 256px */

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius-base: 0.25rem;  /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Soft Neumorphic Shadows (Moyra style) */
    --shadow-neu-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-neu-base: 0 4px 8px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-neu-lg: 0 8px 16px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);

    /* Container Sizes */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;

    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.2s ease-out;
    --transition-slow: 0.3s ease-out;
    --transition-colors: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
    --transition-transform: transform 0.2s ease-out;
    --transition-all: all 0.2s ease-out;

    /* Animation Durations */
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;

    /* Easing Functions */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Moyra-Style Spring Easing Functions */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-spring-out: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-back-out: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);

    /* Advanced Motion Design Variables */
    --duration-micro: 150ms;
    --duration-bounce: 400ms;
    --duration-spring: 600ms;
    --duration-parallax: 800ms;
    --duration-page-load: 1200ms;
    --duration-stagger: 100ms;
    
    /* Hover Transform Values */
    --hover-scale: 1.02;
    --hover-scale-small: 1.01;
    --hover-scale-large: 1.05;
    --hover-lift: -4px;
    --hover-lift-small: -2px;
    --hover-lift-large: -8px;
    --hover-shadow-intensity: 0.15;
    
    /* Floating Animation Values */
    --float-distance: 4px;
    --float-duration: 3s;
    --float-delay-1: 0s;
    --float-delay-2: 0.5s;
    --float-delay-3: 1s;
    --float-delay-4: 1.5s;
    
    /* Parallax Values */
    --parallax-speed-slow: 0.3;
    --parallax-speed-medium: 0.5;
    --parallax-speed-fast: 0.7;
    
    /* Enhanced Shadows for Motion */
    --shadow-hover-sm: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-hover-md: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover-lg: 0 16px 32px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-glow-primary: 0 0 20px rgba(37, 99, 235, 0.3);
    --shadow-glow-secondary: 0 0 20px rgba(5, 150, 105, 0.3);
    
    /* Enhanced Transition Functions */
    --transition-spring: all var(--duration-spring) var(--ease-spring);
    --transition-bounce: all var(--duration-bounce) var(--ease-bounce);
    --transition-elastic: all var(--duration-spring) var(--ease-elastic);
    --transition-hover: transform var(--duration-micro) var(--ease-spring-gentle), 
                       box-shadow var(--duration-micro) var(--ease-spring-gentle);
    
    /* Component Specific Variables */
    --header-height: 64px;
    --header-height-mobile: 58px;
    --hero-min-height: 600px;
    --hero-min-height-mobile: 500px;
    --card-padding: var(--space-6);
    --card-padding-mobile: var(--space-4);
    --section-padding: var(--space-20);
    --section-padding-mobile: var(--space-12);
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-primary: #1f2937;
        --color-bg-secondary: #111827;
        --color-bg-tertiary: #374151;
        --color-text-primary: #f9fafb;
        --color-text-secondary: #d1d5db;
        --color-text-muted: #9ca3af;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: none;
        --transition-base: none;
        --transition-slow: none;
        --transition-colors: none;
        --transition-transform: none;
        --transition-all: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-border-light: #000000;
        --color-border-medium: #000000;
        --shadow-sm: none;
        --shadow-base: none;
        --shadow-md: none;
        --shadow-lg: none;
    }
}
