/* ==========================================================================
   Baraa design tokens — جمعية براعة · حاضنة الطاقات الشبابية
   Color roles follow the identity brief:
   ~70% light neutrals · ~20% supporting pastels · ~10% identity (8% petrol, 2% gold)
   ========================================================================== */

@font-face {
  font-family: "Zain Rounded";
  src: url("../fonts/zain-rounded.ttf") format("truetype");
  /* The family ships one (heavy) weight; claim the whole range so browsers never fake bold. */
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Haya";
  src: url("../fonts/haya-thin.otf") format("opentype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Identity */
  --petrol: #146356;          /* main actions, headings, links */
  --petrol-hover: #0f5248;    /* same hue, one step deeper */
  --petrol-press: #0c443c;
  --gold: #ba9b5a;            /* excellence badges, seals — small doses only */

  /* Supporting colors: strong shade for details, soft shade for surfaces */
  --mint: #38c7b1;   --mint-soft: #ddf6ee;    /* progress, learning, completion */
  --sun: #ffe28a;    --sun-soft: #fff5d6;     /* motivation, celebration, opportunities */
  --peach: #ffbea6;  --peach-soft: #ffe8de;   /* activities, community, group work */
  --lilac: #cdbaf4;  --lilac-soft: #f0eafb;   /* creativity, talents, ideas */

  /* Neutrals */
  --bg: #f7faf8;
  --surface: #ffffff;
  --ink: #173b35;             /* primary text */
  --ink-2: #566f68;           /* secondary text */
  --line: #dfe9e3;            /* calm borders and dividers */
  --petrol-tint: color-mix(in srgb, var(--petrol) 8%, var(--surface));

  /* Type */
  --font-display: "Zain Rounded", "Readex Pro", system-ui, sans-serif;
  --font-body: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-note: "Haya", "Readex Pro", system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2vw, 2.875rem);
  --fs-h1: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);
  --fs-note: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);

  /* Space & layout */
  --gutter: clamp(1rem, 4vw, 2rem);
  --container: 76rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --header-h: 4.75rem;

  /* Shape */
  --r-sm: 0.75rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-pill: 999px;

  /* Shadows: soft, tinted with the ink green instead of black */
  --shadow-1: 0 1px 2px rgb(23 59 53 / 0.05), 0 4px 14px rgb(23 59 53 / 0.05);
  --shadow-2: 0 2px 6px rgb(23 59 53 / 0.05), 0 14px 34px rgb(23 59 53 / 0.09);
  --shadow-3: 0 4px 10px rgb(23 59 53 / 0.06), 0 24px 56px rgb(23 59 53 / 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.25s;
}
