/* ==========================================================================
   Design tokens — ENJAZ
   Edit brand colours, type and spacing here; every other file reads these.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-ext-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Sans Arabic — Arabic glyphs only; Latin characters fall through to Manrope */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../assets/fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  /* ---- Brand colours ---------------------------------------------------- */
  --green: #35d431;
  --charcoal: #1c252c;
  --black: #11181d;
  --steel: #c5cfd9;
  --white: #ffffff;

  /* Derived shades (from the brand colours only) */
  --green-deep: #2ab527;          /* hover state of green fills */
  --charcoal-2: #25303a;          /* raised surface on charcoal */
  --steel-50: #f3f5f7;            /* lightest steel tint — light sections */
  --steel-100: #e7ecf0;           /* steel tint — alternate light sections */
  --ink: var(--charcoal);         /* text on light */
  --ink-muted: #505d68;           /* secondary text on light (7:1 on white) */
  --on-dark: #eef1f4;             /* text on dark */
  --on-dark-muted: #a6b2bd;       /* secondary text on dark (8:1 on black) */
  --line-light: rgba(28, 37, 44, 0.14);
  --line-light-strong: rgba(28, 37, 44, 0.32);
  --line-dark: rgba(197, 207, 217, 0.16);
  --line-dark-strong: rgba(197, 207, 217, 0.34);
  --overlay: rgba(17, 24, 29, 0.62);

  /* ---- Typography ------------------------------------------------------- */
  --font-latin: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Manrope", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: var(--font-latin);

  --fs-hero: clamp(2.15rem, 0.9rem + 6.2vw, 7.25rem);
  --fs-display: clamp(2.4rem, 1.3rem + 4.4vw, 6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 4rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  --fs-h4: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-statement: clamp(1.625rem, 1.1rem + 2vw, 3.25rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.55vw, 1.5rem);
  --fs-body: clamp(1rem, 0.97rem + 0.18vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-numeral: clamp(3.5rem, 2rem + 6vw, 9rem);

  --lh-tight: 1.02;
  --lh-heading: 1.1;
  --lh-body: 1.7;
  --tracking-tight: -0.035em;
  --tracking-label: 0.14em;

  /* ---- Layout ----------------------------------------------------------- */
  --container: 1440px;
  --container-narrow: 1080px;
  --page-padding: clamp(1.25rem, 0.6rem + 3.4vw, 5rem);
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2.5rem);
  --section-space: clamp(5rem, 3rem + 8vw, 11rem);
  --section-space-sm: clamp(3.5rem, 2.4rem + 4.5vw, 7rem);
  --header-height: clamp(4.5rem, 4.1rem + 1.2vw, 5.75rem);
  --radius: 2px;

  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-s: 1rem;
  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --space-xl: clamp(3rem, 2rem + 4vw, 6rem);

  /* ---- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur: 0.5s;
  --dur-slow: 1.1s;
  --transition: var(--dur) var(--ease);

  /* ---- Direction helper (flipped for RTL) ------------------------------- */
  --dir: 1;
}

:root[dir="rtl"] {
  --font-body: var(--font-arabic);
  --dir: -1;
  --tracking-tight: 0;
  --lh-tight: 1.2;
  --lh-heading: 1.3;
  --lh-body: 1.9;
}
