/* ==========================================================================
   VIRA — Design Tokens
   Single source of truth for colors, type, spacing, motion.
   In the WordPress theme these map 1:1 to theme.json / :root custom props.
   ========================================================================== */

:root {
  /* Brand — taken 1:1 from the approved demo (back.viragency.com Elementor kit) */
  --brand: #B8001F;            /* primary / accent (--e-global-color-primary) */
  --accent: #B8001F;
  --accent-2: #E6373A;         /* hover / glow (--e-global-color-53cb070) */
  --accent-bright: #FF1E1E;    /* icons / highlights */
  --accent-soft: rgba(184, 0, 31, 0.20);      /* #B8001F33 */
  --accent-glow: rgba(230, 55, 58, 0.55);

  /* Neutrals (dark theme) */
  --bg: #1B1B1B;               /* body (--e-global-color-67d3b08) */
  --bg-2: #161616;
  --surface: #2D2D2D;          /* cards (--e-global-color-secondary) */
  --surface-2: #333333;
  --surface-3: #3A3A3A;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(184, 0, 31, 0.45);
  --text: #FFFFFF;
  --text-2: #E0E0E0;
  --muted: #A6A6A6;            /* lighter than #717171 for contrast on #1B1B1B */
  --white: #fff;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-rim: inset 0 0 1px 0 rgba(255, 255, 255, 0.9);   /* the 1px inner rim used in the demo */
  --glass-blur: 16px;

  /* Typography */
  --font-sans: "Kalameh", "Vazirmatn", "IRANSans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Fira Code", monospace;

  --fs-xs: clamp(0.72rem, 0.7rem + 0.15vw, 0.8rem);
  --fs-sm: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --fs-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  --fs-md: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.6vw, 3.4rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4.2vw, 4.8rem);
  --fs-display: clamp(3rem, 1.8rem + 6.5vw, 7rem);

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.8;   /* Persian text breathes better with taller leading */

  /* Spacing */
  --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: 4rem;
  --space-9: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);   /* 56 → 96px */
  --section-gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);   /* head → content */

  /* Layout */
  --container: 1340px;          /* demo: 1440 frame − 2×50 padding */
  --container-wide: 1440px;     /* absolute max width of the layout */
  --container-narrow: 860px;
  --gutter: clamp(1rem, 3.5vw, 50px);
  --header-h: 86px;

  /* Radius */
  --r-sm: 8px;                  /* buttons in the demo */
  --r-md: 16px;                 /* cards in the demo */
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 14px 0 #E6373A;   /* demo button hover glow */

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;

  /* Z-index scale */
  --z-below: -1;
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 50;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-cursor: 999;

  color-scheme: dark;
}
