/* ==========================================================================
   AI to Z - design tokens
   The single source of truth for colour, type, spacing, shape, depth, motion
   and reading direction. Every other stylesheet reads from these variables;
   change a value here and it changes across the whole site (Hebrew + English).
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- Brand palette (raw values) -------------------------------------- */
  --navy: #0E1B2C;            /* brand ink; also the dark band / contact background */
  --navy-rgb: 14 27 44;       /* for translucent navy: rgb(var(--navy-rgb) / .25) */
  --blue: #4561AE;
  --accent-rgb: 69 97 174;
  --teal: #0E8FB8;
  --c2-rgb: 14 143 184;
  --cyan: #1677A6;
  --green: #11977A;
  --orange: #E2683A;
  --c4-rgb: 226 104 58;

  /* ---- Surfaces --------------------------------------------------------- */
  --paper: #F5F8FC;           /* page background */
  --paper-rgb: 245 248 252;
  --surface: #FFFFFF;
  --surface-tint: #EEF2F9;    /* bottom of light buttons */
  --bg-1: #EAF1FA;            /* hero / intro sections */
  --bg-1-rgb: 234 240 250;
  --bg-2: #F5F8FC;            /* alternating section A */
  --bg-3: #E1EAF6;            /* alternating section B */

  /* ---- Semantic colours ------------------------------------------------- */
  --ink: var(--navy);         /* text; flipped to light inside .contact */
  --muted: #566173;           /* secondary text */
  --line: #D3DCE8;            /* hairlines and dividers */
  --line-rgb: 211 220 232;
  --accent: var(--blue);
  --accent-ink: #FFFFFF;      /* text on accent */
  --accent-soft: #E6ECFF;

  /* Category colours (cards, numbered items, charts) */
  --c1: var(--blue);
  --c2: var(--teal);
  --c3: var(--green);
  --c4: var(--orange);
  --c1-soft: #E6ECFF;
  --c2-soft: #DFF3FA;
  --c3-soft: #DDF4EC;
  --c4-soft: #FDE9DF;

  /* Accent band */
  --band: var(--blue);
  --band-ink: #FFFFFF;
  --band-muted: #D6E0FF;

  /* On dark backgrounds (contact section, vision band, timelines) */
  --muted-on-dark: #A9B4C6;
  --line-on-dark: #34445C;
  --accent-on-dark: #8FA6E8;
  --c1-on-dark: #9DB2F2;
  --c2-on-dark: #6FD3F2;

  /* Third-party brand colours */
  --whatsapp: #25D366;
  --whatsapp-ink: #1FA855;
  --linkedin: #0A66C2;
  --linkedin-on-dark: #5A9FE6;

  /* ---- Gradients -------------------------------------------------------- */
  --grad-brand: linear-gradient(var(--to-end), var(--c1), var(--c2));
  --grad-brand-on-dark: linear-gradient(var(--to-end), var(--c1-on-dark), var(--c2-on-dark));

  /* ---- Typography -------------------------------------------------------
     One web font (Heebo, Google Fonts, weights 300-800) for Hebrew and English,
     and one type scale for every page in both languages. */
  --font: 'Heebo', 'Segoe UI', 'Arial Hebrew', Arial, sans-serif;
  --serif: var(--font);
  --sans: var(--font);

  --text-sm: 14px;            /* labels, captions, footer */
  --text-ui-sm: 15px;         /* small buttons, language switch */
  --text-ui: 16px;            /* navigation, inline links */
  --text-ui-lg: 17px;         /* buttons, form inputs */
  --text-body: 18px;
  --leading-body: 28px;
  --text-h3: clamp(24px, 2.4vw, 30px);          /* card titles */
  --text-h2: clamp(32px, 4.4vw, 52px);          /* section headings */
  --text-display: clamp(36px, 4.8vw, 68px);     /* homepage hero */
  --text-page-title: clamp(40px, 5.6vw, 76px);  /* sub-page intro titles */

  /* ---- Spacing: 8pt grid (--s-half only for hairline nudges) ------------ */
  --s-half: 4px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s7: 56px;
  --s8: 64px;
  --s9: 72px;
  --s10: 80px;
  --s12: 96px;
  --s14: 112px;
  --s15: 120px;

  /* ---- Layout & shape --------------------------------------------------- */
  --wrap: 1160px;             /* max content width */
  --hdr-h: var(--s9);         /* sticky header height */
  --radius: var(--s-half);

  /* ---- Depth & glass ---------------------------------------------------- */
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 24px rgb(var(--navy-rgb) / .05);
  --shadow-photo: 0 8px 24px rgb(var(--navy-rgb) / .08);
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .16));
  --glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .3));
  --glass-border: 1px solid rgba(255, 255, 255, .7);
  --blur-glass: blur(16px) saturate(160%);

  /* ---- Motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* ---- Reading direction ------------------------------------------------
     Hebrew (RTL) is the default. Use these instead of physical left/right so
     one stylesheet serves both languages:
       linear-gradient(var(--to-end), …)    toward the end of the line
       transform-origin: var(--side-start)  physical side where lines start
       translateX(calc(var(--dir-x) * 4px)) nudge toward the line end      */
  --to-end: to left;
  --to-start: to right;
  --side-start: right;
  --side-end: left;
  --dir-x: -1;
}

:root[dir="ltr"] {
  --to-end: to right;
  --to-start: to left;
  --side-start: left;
  --side-end: right;
  --dir-x: 1;
}
