/* ============================================
   INFOHAS PRO - DESIGN SYSTEM
   Complete design tokens and variables
   ============================================ */

/* --- Color System Documentation ---
   Primary: Navy/Blue (trust, professionalism, aviation)
   Secondary: Gold (excellence, premium, achievement)
   Accent: Sky Blue (innovation, clarity, aviation sky)
   Neutrals: Slate gray scale
--- */

:root {
    /* ===== COLOR TOKENS ===== */
    
    /* Primary - Navy/Blue */
    --color-primary: var(--ih-primary-600);
    --color-primary-hover: var(--ih-primary-700);
    --color-primary-active: var(--ih-primary-800);
    --color-primary-light: var(--ih-primary-50);
    --color-primary-text: #fff;
    
    /* Secondary - Gold */
    --color-secondary: var(--ih-gold-500);
    --color-secondary-hover: var(--ih-gold-600);
    --color-secondary-active: var(--ih-gold-700);
    --color-secondary-light: var(--ih-gold-50);
    --color-secondary-text: var(--ih-primary-900);
    
    /* Accent - Sky */
    --color-accent: var(--ih-sky-500);
    --color-accent-hover: var(--ih-sky-600);
    --color-accent-active: var(--ih-sky-700);
    --color-accent-light: var(--ih-sky-50);
    
    /* Surface Colors */
    --color-surface-primary: #FFFFFF;
    --color-surface-secondary: var(--ih-neutral-100);
    --color-surface-tertiary: var(--ih-neutral-200);
    --color-surface-dark: var(--ih-primary-900);
    --color-surface-overlay: rgba(10, 22, 40, 0.7);
    
    /* Text Colors */
    --color-text-primary: var(--ih-neutral-800);
    --color-text-secondary: var(--ih-neutral-600);
    --color-text-tertiary: var(--ih-neutral-500);
    --color-text-inverse: #FFFFFF;
    --color-text-link: var(--ih-primary-500);
    --color-text-link-hover: var(--ih-gold-500);
    --color-text-heading: var(--ih-primary-900);
    
    /* Border Colors */
    --color-border-default: var(--ih-neutral-300);
    --color-border-light: var(--ih-neutral-200);
    --color-border-focus: var(--ih-primary-500);
    --color-border-error: var(--ih-error);
    
    /* ===== TYPOGRAPHY TOKENS ===== */
    
    /* Font Families */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', Times, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
    
    /* Type Scale (Major Third - 1.25) */
    --type-scale-ratio: 1.25;
    --type-base: 1rem;
    --type-xs: calc(var(--type-base) / 1.25 / 1.25);
    --type-sm: calc(var(--type-base) / 1.25);
    --type-lg: calc(var(--type-base) * 1.25);
    --type-xl: calc(var(--type-base) * 1.25 * 1.25);
    --type-2xl: calc(var(--type-base) * 1.25 * 1.25 * 1.25);
    --type-3xl: calc(var(--type-base) * 1.25 * 1.25 * 1.25 * 1.25);
    --type-4xl: calc(var(--type-base) * 1.25 * 1.25 * 1.25 * 1.25 * 1.25);
    --type-5xl: calc(var(--type-base) * 1.25 * 1.25 * 1.25 * 1.25 * 1.25 * 1.25);
    
    /* Font Weights */
    --weight-thin: 100;
    --weight-extralight: 200;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --weight-black: 900;
    
    /* 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.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    --tracking-mega: 0.2em;
    
    /* ===== SPACING TOKENS ===== */
    
    /* Base unit: 4px */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;   /* 2px */
    --space-1: 0.25rem;       /* 4px */
    --space-1-5: 0.375rem;    /* 6px */
    --space-2: 0.5rem;        /* 8px */
    --space-2-5: 0.625rem;    /* 10px */
    --space-3: 0.75rem;       /* 12px */
    --space-3-5: 0.875rem;    /* 14px */
    --space-4: 1rem;          /* 16px */
    --space-5: 1.25rem;       /* 20px */
    --space-6: 1.5rem;        /* 24px */
    --space-7: 1.75rem;       /* 28px */
    --space-8: 2rem;          /* 32px */
    --space-9: 2.25rem;       /* 36px */
    --space-10: 2.5rem;       /* 40px */
    --space-11: 2.75rem;      /* 44px */
    --space-12: 3rem;         /* 48px */
    --space-14: 3.5rem;       /* 56px */
    --space-16: 4rem;         /* 64px */
    --space-20: 5rem;         /* 80px */
    --space-24: 6rem;         /* 96px */
    --space-28: 7rem;         /* 112px */
    --space-32: 8rem;         /* 128px */
    --space-36: 9rem;         /* 144px */
    --space-40: 10rem;        /* 160px */
    --space-44: 11rem;        /* 176px */
    --space-48: 12rem;        /* 192px */
    --space-52: 13rem;        /* 208px */
    --space-56: 14rem;        /* 224px */
    --space-60: 15rem;        /* 240px */
    --space-64: 16rem;        /* 256px */
    --space-72: 18rem;        /* 288px */
    --space-80: 20rem;        /* 320px */
    --space-96: 24rem;        /* 384px */
    
    /* Section Spacing */
    --section-py: var(--space-20);
    --section-py-sm: var(--space-12);
    --section-py-lg: var(--space-32);
    --section-px: var(--space-6);
    
    /* ===== BORDER TOKENS ===== */
    --border-width-none: 0;
    --border-width-1: 1px;
    --border-width-2: 2px;
    --border-width-4: 4px;
    --border-width-8: 8px;
    
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* ===== SHADOW TOKENS ===== */
    --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 -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);
    --shadow-gold: 0 4px 14px rgba(212,168,67,0.35);
    --shadow-primary: 0 4px 14px rgba(27,58,92,0.35);
    --shadow-focus: 0 0 0 3px rgba(44,95,138,0.3);
    
    /* ===== MOTION TOKENS ===== */
    --duration-instant: 75ms;
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 350ms;
    --duration-slower: 500ms;
    --duration-slowest: 700ms;
    
    --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);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== Z-INDEX TOKENS ===== */
    --z-behind: -1;
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-toast: 600;
    --z-tooltip: 700;
    --z-max: 9999;
    
    /* ===== CONTAINER TOKENS ===== */
    --container-xs: 475px;
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;
    
    /* ===== BREAKPOINTS (reference only - for CSS media queries) ===== */
    /* sm: 640px, md: 768px, lg: 1024px, xl: 1280px, 2xl: 1536px */
    
    /* ===== ASPECT RATIOS ===== */
    --ratio-square: 1/1;
    --ratio-video: 16/9;
    --ratio-photo: 4/3;
    --ratio-portrait: 3/4;
    --ratio-wide: 21/9;
    --ratio-card: 16/10;
    --ratio-golden: 1.618/1;
}

/* --- Dark Mode Tokens (disabled until full dark mode support is implemented) ---
@media (prefers-color-scheme: dark) {
    :root {
        --color-surface-primary: var(--ih-primary-900);
        --color-surface-secondary: var(--ih-primary-800);
        --color-text-primary: var(--ih-neutral-100);
        --color-text-secondary: var(--ih-neutral-300);
        --color-text-heading: var(--ih-neutral-50);
    }
}
--- end dark mode --- */

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
    }
}
