/* ==========================================================================
   PROTIC Training & Consulting Solutions — Design Tokens (EuroMaTech System)
   Color Budget: ~95% White/Tint Neutrals & Deep/Royal Navy | ~3-5% Orange CTA
   ========================================================================== */

:root {
  /* --- Core Palette --- */
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-tint: #F4F7FB;
  --bg-navy-tint: #F4F7FB;
  --bg-subtle: #F8FAFC;
  --bg-bezel: #EEF2F7;
  --bg-bezel-alpha: rgba(11, 11, 61, 0.03);
  --bg-glass-header: rgba(255, 255, 255, 0.96);
  --bg-backdrop: rgba(7, 7, 41, 0.56);

  /* --- PROTIC Navy Hierarchy --- */
  --navy: #0B0B3D;
  --navy-midnight: #070729;
  --navy-elevated: #142B6F;
  --royal-blue: #142B6F;
  --royal-blue-mid: #1E3F9E;
  --steel-blue: #2B4B9E;

  /* --- Surgical Orange & Functional Badges --- */
  --orange: #FF4800;
  --orange-hover: #D93D00;
  --orange-ink: #C93800;
  --orange-soft: rgba(255, 72, 0, 0.08);
  --orange-ring: rgba(255, 72, 0, 0.28);

  --amber-filter: #B45309;
  --whatsapp: #25D366;
  --map-dot: #C5CAD6;

  /* --- Charcoal Ink & Hairline Borders --- */
  --ink: #1F2433;
  --ink-muted: #54617A;
  --ink-subtle: #64748B;
  --ink-inverse: #FAF9F6;
  --ink-inverse-muted: #CBD5E1;

  --border-hairline: #DCE3EE;
  --border-strong: rgba(20, 43, 111, 0.22);
  --border-inverse: rgba(255, 255, 255, 0.14);

  --status-success: #0F766E;
  --status-success-bg: #ECFDF5;
  --status-danger: #B91C1C;
  --status-danger-bg: #FEF2F2;

  /* --- Typography (Noto Kufi Arabic Display + IBM Plex Sans Body + Mono) --- */
  --font-ar-heading: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
  --font-ar-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-en-heading: 'IBM Plex Sans', 'Noto Kufi Arabic', sans-serif;
  --font-en-body: 'IBM Plex Sans', sans-serif;

  --font-ar: var(--font-ar-body);
  --font-en: var(--font-en-body);
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --font-active: var(--font-ar-body);
  --font-heading-active: var(--font-ar-heading);

  /* Fluid Type Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  --text-3xl: clamp(1.65rem, 1.35rem + 1.4vw, 2.35rem);
  --text-hero: clamp(1.9rem, 1.4rem + 2.2vw, 2.85rem);

  --leading-display: 1.28;
  --leading-snug: 1.42;
  --leading-body: 1.7;
  --measure-prose: 68ch;

  /* --- Layered Navy-Tinted Shadows --- */
  --shadow-xs: 0 1px 2px rgba(11, 11, 61, 0.05);
  --shadow-soft:
    0 2px 6px -1px rgba(11, 11, 61, 0.04),
    0 10px 24px -8px rgba(11, 11, 61, 0.08);
  --shadow-elevated:
    0 6px 16px -3px rgba(11, 11, 61, 0.08),
    0 22px 44px -12px rgba(11, 11, 61, 0.14);
  --shadow-floating:
    0 12px 30px -6px rgba(7, 7, 41, 0.18),
    0 28px 56px -14px rgba(11, 11, 61, 0.24);
  --shadow-header:
    0 4px 18px -4px rgba(11, 11, 61, 0.10),
    0 1px 0 rgba(220, 227, 238, 0.9);
  --shadow-bezel-specular: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --shadow-orange: 0 6px 18px -4px rgba(255, 72, 0, 0.34);

  /* --- Motion --- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-tactile: cubic-bezier(0.2, 0.8, 0.2, 1);

  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 440ms;
  --dur-reveal: 620ms;

  /* --- Spacing, Radii & Containers --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 5vw, 4.5rem);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --container-euro: 1140px;
  --container-wide: 1320px;
  --container-max: 1200px;
  --container-narrow: 920px;
  --gutter: clamp(1rem, 2.5vw, 1.75rem);

  /* --- Layering --- */
  --z-base: 1;
  --z-sticky: 40;
  --z-dropdown: 50;
  --z-float: 60;
  --z-drawer: 80;
  --z-modal: 100;
}

[dir="rtl"] {
  --font-active: var(--font-ar-body);
  --font-heading-active: var(--font-ar-heading);
  --leading-display: 1.32;
}

[dir="ltr"] {
  --font-active: var(--font-en-body);
  --font-heading-active: var(--font-en-heading);
  --leading-display: 1.18;
}
