/* ==========================================================================
   Qaly Health Shield — design tokens
   Source of truth: BRAND.md (from "Brand Guidelines, Draft 05, Sept 2026").
   Change colours, type and spacing HERE only. Every other file uses these.

   Layout concept: a bright laboratory, not a night sky. White and ice carry
   the page, sky blues support it, dark blue signs it, one orange dot looks
   ahead (to 2071 and 2117).
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------
   Dubai is the only brand typeface (Latin + Arabic).
   The browser downloads the files in assets/fonts/, so every visitor sees the same letters:
      dubai-<weight>.woff     Latin letters (the three main weights are preloaded in each page head)
      dubai-ar-<weight>.woff  Arabic letters (loaded only when a page shows Arabic)   */
@font-face {
  font-family: "Qaly Dubai"; font-weight: 300; font-display: swap;
  src: url("../fonts/dubai-light.woff") format("woff");
  unicode-range: U+0000-05FF, U+1E00-1FFF, U+2000-206F, U+20A0-20CF, U+2100-218F, U+2190-21FF, U+2200-22FF;
}
@font-face {
  font-family: "Qaly Dubai"; font-weight: 300; font-display: swap;
  src: url("../fonts/dubai-ar-light.woff") format("woff");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Qaly Dubai"; font-weight: 400; font-display: swap;
  src: url("../fonts/dubai-regular.woff") format("woff");
  unicode-range: U+0000-05FF, U+1E00-1FFF, U+2000-206F, U+20A0-20CF, U+2100-218F, U+2190-21FF, U+2200-22FF;
}
@font-face {
  font-family: "Qaly Dubai"; font-weight: 400; font-display: swap;
  src: url("../fonts/dubai-ar-regular.woff") format("woff");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Qaly Dubai"; font-weight: 500; font-display: swap;
  src: url("../fonts/dubai-medium.woff") format("woff");
  unicode-range: U+0000-05FF, U+1E00-1FFF, U+2000-206F, U+20A0-20CF, U+2100-218F, U+2190-21FF, U+2200-22FF;
}
@font-face {
  font-family: "Qaly Dubai"; font-weight: 500; font-display: swap;
  src: url("../fonts/dubai-ar-medium.woff") format("woff");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Qaly Dubai"; font-weight: 700; font-display: swap;
  src: url("../fonts/dubai-bold.woff") format("woff");
  unicode-range: U+0000-05FF, U+1E00-1FFF, U+2000-206F, U+20A0-20CF, U+2100-218F, U+2190-21FF, U+2200-22FF;
}
@font-face {
  font-family: "Qaly Dubai"; font-weight: 700; font-display: swap;
  src: url("../fonts/dubai-ar-bold.woff") format("woff");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  /* ---- Lead colours (about 60% white + ice, 28% sky and light blues) ---- */
  --white: #FFFFFF;
  --ice: #E8F4FC;
  --sky: #71B5E2;

  /* ---- Supporting blues ---- */
  --blue-light: #B9DAF1;
  --blue-mid: #4B97C8;
  --blue-deep: #0096C7;   /* charts and illustration only */
  --cyan: #00B4D8;        /* charts and illustration only */
  --cyan-mid: #48CAE4;    /* charts and illustration only */
  --cyan-light: #91E0F1;  /* charts and illustration only */
  --cyan-pale: #AFE9F5;   /* charts and illustration only */

  /* ---- Signature ink: RESTRICTED (max 10% of any layout) ----
     Logomark, text, icon lines, hairlines, small chart marks only.
     Never a background, panel, gradient stop or photo overlay.          */
  --ink: #021A91;
  --slate: #234967;       /* fine detail only */
  --slate-mid: #356D92;   /* fine detail only */
  --charcoal: #2F333A;    /* body text ("charcoal text" in the guide) */

  /* ---- Accent: Mars orange — THE DOT ONLY ----
     Full stops, the dots on i and j, section numerals, icon dots,
     one hero dot per layout. Never text, buttons, backgrounds or charts.  */
  --orange: #F26B1D;

  /* ---- Functional roles ---- */
  --bg: var(--white);
  --surface: var(--ice);
  --line: var(--blue-light);
  --text: var(--charcoal);
  --heading: var(--ink);
  --muted: var(--slate-mid);  /* captions and secondary text */
  --focus: var(--blue-mid);

  /* ---- Type ---- */
  /* Dubai is the brand font (Latin and Arabic). Chinese, Russian and Hindi letters are not in it,
     so the browser takes them from the next font in this list that has them. */
  --font: "Qaly Dubai", "Dubai", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC",
          "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
  --fs-display: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);  /* Display: Bold, sentence case */
  --fs-h1: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);        /* Headline */
  --fs-h2: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);     /* Subhead */
  --fs-body: 1.0625rem;                                 /* 17px, guide: 16 to 20px */
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;                              /* Caption: Light */
  --fs-label: 0.75rem;                                  /* Label: Bold caps, tracked */
  --track-label: 0.18em;                                /* "+180" tracking */

  /* Split point for orange i/j dots in display type (see base.css .dj) */
  --dj-split: 0.639em;

  /* ---- Space and shape ---- */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --measure: 65ch;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --tile-radius: 12px;    /* logo tile corners */
  --shadow: 0 1px 2px rgba(2, 26, 145, 0.05), 0 8px 24px rgba(75, 151, 200, 0.12);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
  --slow: 600ms;

  color-scheme: light;
}
