/* =====================================================================
   Saudi Future — Design Tokens
   Cream + Royal Green (#0B3D2E) + Jisr Blue (accent)
   ===================================================================== */

:root {
  /* ===== Primary: Cream / Off-white ===== */
  --cream-50:  #FBF8F1;
  --cream-100: #F5EFE2;
  --cream-200: #ECE3CE;
  --cream-300: #DCCFAF;
  --cream-400: #C8B789;

  /* ===== Secondary: Royal Green ===== */
  --green-900: #061E17;
  --green-800: #0B3D2E;   /* brand */
  --green-700: #114F3D;
  --green-600: #1A6B53;
  --green-500: #2A8B6C;
  --green-400: #51AE8E;
  --green-300: #82C9B0;
  --green-200: #B6DECE;
  --green-100: #DDEDE6;
  --green-50:  #EEF6F2;

  /* ===== Jisr Blue (tertiary accent) ===== */
  --jisr-blue-900: #0B3B8A;
  --jisr-blue-700: #1849B8;
  --jisr-blue-500: #2563EB;
  --jisr-cyan-400: #3FB3D9;
  --jisr-gradient: linear-gradient(135deg, #0B3B8A 0%, #2563EB 50%, #3FB3D9 100%);

  /* ===== Neutrals ===== */
  --ink-900: #0B1320;
  --ink-800: #15202E;
  --ink-700: #1F2937;
  --ink-600: #344054;
  --ink-500: #475467;
  --ink-400: #667085;
  --ink-300: #98A2B3;
  --ink-200: #D0D5DD;
  --ink-100: #EAECF0;
  --white:   #FFFFFF;

  /* ===== Accents ===== */
  --gold:        #C9A24B;
  --gold-light:  #E4C677;
  --gold-deep:   #957121;

  /* ===== Status ===== */
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --warning: #D97706;
  --warning-bg: #FEF3C7;
  --danger:  #DC2626;
  --danger-bg: #FEE2E2;
  --info:    #2563EB;
  --info-bg: #DBEAFE;

  /* ===== Semantic surface tokens ===== */
  --bg-page:        var(--cream-50);
  --bg-surface:     var(--white);
  --bg-elevated:    var(--cream-100);
  --bg-deep:        var(--green-800);
  --bg-deep-grad:   linear-gradient(135deg, #082C21 0%, #0B3D2E 50%, #114F3D 100%);

  --text-primary:   var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-muted:     var(--ink-400);
  --text-on-green:  var(--cream-50);
  --text-on-cream:  var(--green-800);

  --brand:         var(--green-800);
  --brand-hover:   var(--green-700);
  --brand-active:  var(--green-900);

  --border-soft:   var(--cream-200);
  --border-firm:   var(--cream-300);
  --border-strong: var(--ink-200);

  /* ===== Spacing ===== */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* ===== Type scale ===== */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-44: 2.75rem;
  --fs-56: 3.5rem;
  --fs-64: 4rem;
  --fs-72: 4.5rem;
  --fs-88: 5.5rem;

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.7;

  --ff-serif: "Thmanyah Serif Display", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --ff-sans:  "Thmanyah Sans", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --ff-mono:  ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* ===== Radii ===== */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* ===== Shadows ===== */
  --sh-0: 0 1px 2px rgba(11, 61, 46, 0.05);
  --sh-1: 0 4px 14px rgba(11, 61, 46, 0.07), 0 1px 3px rgba(11, 61, 46, 0.05);
  --sh-2: 0 12px 32px rgba(11, 61, 46, 0.10), 0 4px 8px rgba(11, 61, 46, 0.04);
  --sh-3: 0 24px 60px rgba(11, 61, 46, 0.14), 0 8px 16px rgba(11, 61, 46, 0.06);
  --sh-glow: 0 0 0 6px rgba(31, 122, 87, 0.18);
  --sh-glow-danger: 0 0 0 6px rgba(220, 38, 38, 0.18);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, 0.45);

  /* ===== Motion ===== */
  --d-fast:  120ms;
  --d-base:  240ms;
  --d-slow:  480ms;
  --d-hero:  900ms;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);

  /* ===== Z-index ===== */
  --z-base:    1;
  --z-sticky:  100;
  --z-overlay: 800;
  --z-modal:   900;
  --z-toast:   1000;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --d-fast: 0ms; --d-base: 0ms; --d-slow: 0ms; --d-hero: 0ms;
  }
}
