/* =========================================================
   هم‌تاب (HamTab) — Design Tokens
   ========================================================= */

:root {
  /* ---- Brand colors ---- */
  --color-primary: #1B2A4A;
  --color-primary-light: #2A3E68;
  --color-primary-dark: #121D35;

  --color-secondary: #3E5C94;
  --color-secondary-light: #5B7AB5;
  --color-secondary-soft: #EAF0FB;

  --color-accent: #D97B3F;
  --color-accent-light: #F0A46F;
  --color-accent-soft: #FCE9DA;

  --color-cta: #AD5623;
  --color-cta-hover: #8F441A;

  --color-background: #F6F8FB;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EEF2F8;

  /* ---- Text ---- */
  --text-primary: #101A2E;
  --text-secondary: #4C5A73;
  --text-muted: #8792A3;
  --text-on-primary: #F6F8FB;
  --text-on-accent: #FFFFFF;

  /* ---- Semantic ---- */
  --color-success: #2E8B57;
  --color-success-soft: #E4F4EC;
  --color-warning: #C68A1E;
  --color-warning-soft: #FBF1DE;
  --color-danger: #C24435;
  --color-danger-soft: #FBE7E3;
  --color-info: var(--color-secondary);

  /* ---- Borders / shadows ---- */
  --border-color: #E1E7F0;
  --border-color-strong: #C7D1E3;

  --shadow-sm: 0 1px 2px rgba(16, 26, 46, 0.06);
  --shadow-md: 0 6px 20px rgba(16, 26, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 26, 46, 0.12);
  --shadow-accent: 0 10px 24px rgba(217, 123, 63, 0.25);

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Typography ---- */
  --font-base: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 3.75rem;

  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-loose: 1.85;

  /* ---- Motion ---- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Layout ---- */
  --container-max: 1800px;
  --header-height: 76px;
  --z-header: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;
}

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