/* ============================================================
   USALAMA HUB — DESIGN TOKENS
   CSS Custom Properties (Design System Foundation)
   ============================================================ */

:root {
  /* ── Brand: Usalama Hub Green Palette ── */
  --color-brand-primary:         #2D6A4F;  /* Shield Green */
  --color-brand-primary-light:   #52B788;  /* Canopy */
  --color-brand-primary-dark:    #1B4332;  /* Forest Night */
  --color-brand-primary-faint:   #D8F3DC;  /* Morning Mist */

  /* ── Brand: Amber Warmth Palette ── */
  --color-brand-secondary:       #E07B39;  /* Amber Warmth */
  --color-brand-secondary-light: #F5A96B;  /* Sunrise */
  --color-brand-secondary-dark:  #B85C1A;  /* Ember */
  --color-brand-secondary-faint: #FDF0E6;  /* Warm Sand */

  /* ── Brand: Teal Palette ── */
  --color-brand-tertiary:        #1D7A8C;  /* Deep Teal */
  --color-brand-tertiary-light:  #6BB8C9;
  --color-brand-tertiary-faint:  #E0F4F8;

  /* ── Asha product palette (violet) ── */
  --asha-primary:             #6B4FA0;  /* Asha violet */
  --asha-primary-light:       #C4B2E3;
  --asha-primary-dark:        #4A3470;
  --asha-primary-faint:       #F0ECF9;

  /* ── Status Colors ── */
  --color-status-critical:       #C0392B;  /* Alert Red — Quick Exit ONLY */
  --color-status-success:        #27AE60;
  --color-status-warning:        #F39C12;

  /* ── Neutral / Surface ── */
  --color-bg:                    #F9FAFB;
  --color-surface:               #FFFFFF;
  --color-surface-2:             #F3F4F6;
  --color-border:                #E5E7EB;
  --color-border-strong:         #D1D5DB;

  /* ── Text ── */
  --color-text-primary:          #1F2937;
  --color-text-secondary:        #4B5563;
  --color-text-muted:            #9CA3AF;
  --color-text-inverse:          #FFFFFF;

  /* ── Dark Overlay ── */
  --color-dark:                  #111827;
  --color-dark-2:                #1F2937;

  /* ══════════════════════════════════════
     TYPOGRAPHY
  ══════════════════════════════════════ */
  --font-display:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;

  /* 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:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Weights */
  --font-regular:    400;
  --font-medium:     500;
  --font-semibold:   600;
  --font-bold:       700;
  --font-extrabold:  800;

  /* Line heights */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  /* Letter spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;
  --tracking-widest:  0.15em;

  /* ══════════════════════════════════════
     SPACING
  ══════════════════════════════════════ */
  --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 */

  /* ══════════════════════════════════════
     LAYOUT
  ══════════════════════════════════════ */
  --container-max:    1280px;
  --container-pad:    clamp(1.25rem, 5vw, 5rem);
  --section-pad-y:    clamp(3rem, 8vw, 5rem);

  /* ══════════════════════════════════════
     BORDER RADIUS
  ══════════════════════════════════════ */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-2xl:   24px;
  --radius-pill:  9999px;

  /* ══════════════════════════════════════
     SHADOWS
  ══════════════════════════════════════ */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 30px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl:   0 20px 50px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-green:0 8px 24px rgba(45,106,79,0.20), 0 2px 8px rgba(45,106,79,0.10);
  --shadow-violet:0 8px 24px rgba(107,79,160,0.20), 0 2px 8px rgba(107,79,160,0.10);

  /* ══════════════════════════════════════
     TRANSITIONS
  ══════════════════════════════════════ */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   350ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ══════════════════════════════════════
     Z-INDEX SCALE
  ══════════════════════════════════════ */
  --z-base:       1;
  --z-above:      10;
  --z-sticky:     100;
  --z-overlay:    1000;
  --z-modal:      2000;
  --z-quick-exit: 9999;

  /* ══════════════════════════════════════
     NAVIGATION
  ══════════════════════════════════════ */
  --nav-height: 72px;
}
