/**
 * TRANZITA ACADEMY — DESIGN TOKENS
 * Contemporary Luxury Learning System (TA-DESIGN-006 Direction B + TA-WEB-001 Masterplan)
 * Authoritative Color Palette, Typographic Hierarchy, Spacing, and Elevation Tokens
 */

:root {
  /* Brand Core Colors */
  --tz-primary: #2D5F79;          /* Deep Slate Teal / Maritime Blue */
  --tz-primary-hover: #234B60;
  --tz-primary-dark: #1A3848;
  --tz-primary-light: #EBF3F7;
  --tz-primary-faint: rgba(45, 95, 121, 0.08);

  --tz-accent: #F57E60;           /* Warm Cargo Coral / Operational Accent */
  --tz-accent-hover: #E46B4D;
  --tz-accent-light: #FDF1EE;
  --tz-accent-faint: rgba(245, 126, 96, 0.12);

  --tz-navy: #0B1924;             /* Midnight Container Navy */
  --tz-navy-dark: #071017;
  --tz-navy-soft: #142838;
  --tz-navy-surface: #1E374D;

  --tz-gold: #D4A373;             /* Institutional Seal Gold */
  --tz-gold-light: #FAF3ED;

  /* Neutrals & Surfaces */
  --tz-bg-canvas: #FAFAFC;        /* Soft Off-White Ground */
  --tz-bg-surface: #FFFFFF;       /* Crisp Elevated White */
  --tz-bg-subtle: #F3F6F9;        /* Light Tint Ground */
  --tz-bg-muted: #E9EEF3;

  /* Typography Colors */
  --tz-text-headline: #0B1924;    /* Primary Deep Navy */
  --tz-text-body: #334155;        /* Slate Neutral Body */
  --tz-text-secondary: #64748B;   /* Subordinate Metadata */
  --tz-text-muted: #94A3B8;       /* Placeholders & Inactive */
  --tz-text-inverse: #FFFFFF;
  --tz-text-inverse-subtle: #CBD5E1;

  /* Borders & Dividers */
  --tz-border-subtle: #E2E8F0;
  --tz-border-medium: #CBD5E1;
  --tz-border-focus: #2D5F79;
  --tz-border-active: #F57E60;

  /* Functional Status */
  --tz-status-success: #10B981;
  --tz-status-success-bg: #ECFDF5;
  --tz-status-warning: #F59E0B;
  --tz-status-warning-bg: #FFFBEB;
  --tz-status-info: #0284C7;
  --tz-status-info-bg: #F0F9FF;

  /* Typography Scale */
  --tz-font-sans-en: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tz-font-serif-en: 'Cinzel', 'Playfair Display', Georgia, serif;
  --tz-font-sans-ar: 'Cairo', 'Alexandria', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tz-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --tz-font-family-base: var(--tz-font-sans-en);
  --tz-font-family-display: var(--tz-font-sans-en);

  --tz-text-xs: 0.75rem;     /* 12px */
  --tz-text-sm: 0.875rem;    /* 14px */
  --tz-text-base: 1rem;      /* 16px */
  --tz-text-md: 1.125rem;    /* 18px */
  --tz-text-lg: 1.25rem;     /* 20px */
  --tz-text-xl: 1.5rem;      /* 24px */
  --tz-text-2xl: 1.875rem;   /* 30px */
  --tz-text-3xl: 2.25rem;    /* 36px */
  --tz-text-4xl: 2.75rem;    /* 44px */
  --tz-text-5xl: 3.5rem;     /* 56px */

  --tz-line-tight: 1.15;
  --tz-line-snug: 1.3;
  --tz-line-normal: 1.6;
  --tz-line-relaxed: 1.75;

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

  /* Touch Targets (WCAG 2.5.5 Compliant) */
  --tz-touch-min: 44px;

  /* Elevation Shadows */
  --tz-shadow-xs: 0 1px 2px rgba(11, 25, 36, 0.04);
  --tz-shadow-sm: 0 1px 3px rgba(11, 25, 36, 0.08), 0 1px 2px rgba(11, 25, 36, 0.04);
  --tz-shadow-md: 0 4px 12px -2px rgba(11, 25, 36, 0.08), 0 2px 6px -1px rgba(11, 25, 36, 0.04);
  --tz-shadow-lg: 0 12px 28px -4px rgba(11, 25, 36, 0.1), 0 4px 12px -2px rgba(11, 25, 36, 0.05);
  --tz-shadow-xl: 0 20px 40px -8px rgba(11, 25, 36, 0.16);
  --tz-shadow-glow: 0 0 24px rgba(45, 95, 121, 0.2);

  /* Border Radii */
  --tz-radius-sm: 4px;
  --tz-radius-md: 8px;
  --tz-radius-lg: 12px;
  --tz-radius-xl: 16px;
  --tz-radius-2xl: 24px;
  --tz-radius-pill: 9999px;

  /* Transitions */
  --tz-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --tz-transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --tz-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container Max Widths */
  --tz-container-sm: 640px;
  --tz-container-md: 768px;
  --tz-container-lg: 1024px;
  --tz-container-xl: 1240px;
  --tz-container-2xl: 1400px;
}

/* RTL Specific Overrides */
[dir="rtl"] {
  --tz-font-family-base: var(--tz-font-sans-ar);
  --tz-font-family-display: var(--tz-font-sans-ar);
  letter-spacing: normal !important;
}
