/* =============================================================
   Netaim → Elementor bridge
   Destination: wp-content/themes/hello-elementor-child/assets/css/nt-elementor-bridge.css

   WHAT THIS IS
   An abstraction layer, not a replacement. It re-points Elementor's own
   global CSS variables at the Netaim tokens, so that from now on a colour or
   a family is changed in ONE place (design-tokens.json) and every widget bound
   to a global follows — in Hebrew and in English at once, without opening a
   single widget, section, container or template.

   WHAT THIS IS NOT
   - It does not rename, delete or re-map any Elementor Kit colour ID.
     Every existing ID (cb4928e, b44fd78, d9ce3d4, fb3e9f2, 4a42bd2, 21b3921,
     d3df457, d974fbc, 3b786e5, fb4590b, 9452c68, c4ef3da) is preserved and
     keeps pointing at the same colour it has today.
   - It does not touch Elementor's RTL mechanism. No *-rtl.min.css is
     disabled, replaced or overridden; body.rtl and dir="rtl" stay exactly as
     Polylang and WordPress core produce them.
   - It sets NO visual property: no colour, no size, no spacing, no layout.
     It only assigns variables. With the values below being identical to the
     Kit's current values, the rendered page is unchanged.

   SPECIFICITY
   Elementor's Kit CSS declares these on `.elementor-kit-7` (0,1,0).
   This file uses `body.elementor-kit-7` (0,1,1), so the bridge wins
   regardless of stylesheet order, without !important anywhere.
   ============================================================= */

body.elementor-kit-7 {

  /* ---- system colours ---------------------------------------------------
     Kit ID            current value   token
     primary           #166633         --nt-color-primary
     secondary         #54595F         --nt-color-text-muted
     text              #000000         --nt-color-text
     accent            #F99B21         --nt-color-accent                      */
  --e-global-color-primary: var(--nt-color-primary);
  --e-global-color-secondary: var(--nt-color-text-muted);
  --e-global-color-text: var(--nt-color-text);
  --e-global-color-accent: var(--nt-color-accent);

  /* ---- custom colours — IDs preserved verbatim ------------------------- */
  --e-global-color-cb4928e: var(--nt-color-primary);         /* #166633 green   */
  --e-global-color-b44fd78: var(--nt-palette-yellow-400);    /* #F3C333 yellow  */
  --e-global-color-d9ce3d4: var(--nt-palette-lime-500);      /* #83B339 lime    */
  --e-global-color-fb3e9f2: var(--nt-color-surface);         /* #FFFFFF white   */
  --e-global-color-4a42bd2: var(--nt-palette-pink-500);      /* #ED1965 pink    */
  --e-global-color-21b3921: var(--nt-color-surface-muted);   /* #F8F8F8 grey    */
  --e-global-color-d3df457: var(--nt-color-surface-soft);    /* #9DD1B0 mint    */
  --e-global-color-d974fbc: var(--nt-palette-blue-500);      /* #3783EE blue    */
  --e-global-color-3b786e5: var(--nt-palette-cyan-500);      /* #31A3D7 cyan    */
  --e-global-color-fb4590b: var(--nt-palette-navy-900);      /* #2E3192 navy    */
  --e-global-color-9452c68: var(--nt-palette-red-500);       /* #ED4F1F orange  */
  --e-global-color-c4ef3da: var(--nt-palette-navy-700);      /* #2C426B navy 2  */

  /* ---- global typography -------------------------------------------------
     Families map to the COMPAT stacks on purpose: same first family as today
     (Montserrat), with Open Sans appended. Latin rendering is byte-identical;
     Hebrew text bound to an Elementor global stops falling back to an
     arbitrary system font. Weights are left to the Kit — this bridge does not
     set a single weight, size or line-height. */
  --e-global-typography-primary-font-family: var(--nt-font-display-compat);
  --e-global-typography-secondary-font-family: var(--nt-font-sans-compat);
  --e-global-typography-text-font-family: var(--nt-font-sans-compat);
  --e-global-typography-accent-font-family: var(--nt-font-sans-compat);
}

/* -------------------------------------------------------------
   Hebrew display face.
   The Hebrew templates set "M PLUS Rounded 1c" per widget today, and that
   stays untouched. This only ensures that a heading bound to the Kit's
   PRIMARY typography keeps a Hebrew-capable fallback behind it, using the
   same two families the site already loads. No family is replaced.
   ------------------------------------------------------------- */
body.rtl.elementor-kit-7,
[dir="rtl"] body.elementor-kit-7 {
  --e-global-typography-primary-font-family: "Montserrat", "M PLUS Rounded 1c", "Open Sans", system-ui, sans-serif;
}
