/* AUTO-GENERATED by build.js from ds/tokens/*.css — edit the token files, not this file. */
/* ============================================================
   AFET — Webfonts
   Primary: PP Neue Montreal (Regular 400 / Medium 500 / SemiBold 600)
   Secondary (serif): Lora (Regular 400 / Bold 700)
   Arabic: PP Neue Montreal Arabic (Regular / Medium / Bold)
   Per AFG Brand Guidelines §4.0 Typography.
   ============================================================ */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/fonts/PPNeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/fonts/PPNeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("assets/fonts/PPNeueMontreal-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Arabic companion — same family ramp, RTL */
@font-face {
  font-family: "PP Neue Montreal Arabic";
  src: url("assets/fonts/PPNeueMontrealArabic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal Arabic";
  src: url("assets/fonts/PPNeueMontrealArabic-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal Arabic";
  src: url("assets/fonts/PPNeueMontrealArabic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Secondary serif — formal communication (certificates, invitations, editorial) */
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/Lora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("assets/fonts/Lora-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   AFET — Colour Tokens
   Source: AFG Brand Guidelines §3.0 Colour Palette.
   Primary blues lead; secondary tints + neutrals are accents/UI.
   Reference colours by SEMANTIC role in components, not raw hex.
   ============================================================ */

:root {
  /* ---- Primary brand colours -------------------------------- */
  --af-light-blue: #00aeef;   /* Cyan — the arrowhead colour, primary accent */
  --af-dark-blue:  #005baa;   /* Reflex Blue — primary action / link */
  --af-midnight:   #041e42;   /* Midnight Blue — dark surfaces, headings */
  --af-black:      #000000;
  --af-white:      #ffffff;

  /* ---- Secondary: cyan tint ramp ---------------------------- */
  --af-cyan-100: #cceffc;
  --af-cyan-200: #99dff9;
  --af-cyan-300: #66cef5;
  --af-cyan-400: #33bef2;
  --af-cyan-500: #00aeef;     /* == light-blue */

  /* ---- Secondary: cool slate ramp (UI greys with blue cast) - */
  --af-slate-100: #cdd2d9;    /* light grey — soft UI backgrounds */
  --af-slate-200: #9ba5b3;
  --af-slate-300: #68788e;
  --af-slate-400: #364b68;

  /* ---- Secondary: steel blue ramp --------------------------- */
  --af-steel-100: #ccdeee;
  --af-steel-200: #99bddd;
  --af-steel-300: #669dcc;
  --af-steel-400: #337cbb;

  /* ---- Neutral grey ramp ------------------------------------ */
  --af-grey-100: #f4f6f8;     /* extra-light page tint (extends ramp) */
  --af-grey-200: #cccccc;
  --af-grey-300: #999999;
  --af-grey-400: #666666;
  --af-grey-500: #333333;

  /* ============================================================
     Semantic aliases — use these in components
     ============================================================ */

  /* Surfaces */
  --surface-page:      var(--af-white);
  --surface-subtle:    var(--af-grey-100);     /* alternating sections */
  --surface-muted:     var(--af-slate-100);    /* cards on white, fields */
  --surface-inverse:   var(--af-midnight);     /* dark hero / footer */
  --surface-inverse-2: #0a2c57;                /* raised panel on midnight */
  --surface-card:      var(--af-white);

  /* Text */
  --text-strong:    var(--af-midnight);        /* headings */
  --text-body:      var(--af-grey-500);         /* body copy */
  --text-muted:     var(--af-grey-400);         /* captions, meta */
  --text-on-dark:   var(--af-white);
  --text-on-dark-muted: #aebfd4;
  --text-link:      var(--af-dark-blue);

  /* Brand / interactive */
  --brand-primary:        var(--af-dark-blue);     /* primary buttons */
  --brand-primary-hover:  #00478a;
  --brand-accent:         var(--af-light-blue);    /* cyan — arrowhead, highlights */
  --brand-accent-hover:   #00a0db;
  --brand-on-primary:     var(--af-white);

  /* Lines & borders */
  --border-subtle:  #e3e8ee;
  --border-default: var(--af-slate-100);
  --border-strong:  var(--af-slate-200);
  --border-on-dark: rgba(255, 255, 255, 0.16);

  /* Feedback */
  --feedback-success: #1f8a5b;
  --feedback-warning: #d98309;
  --feedback-danger:  #cf3b3b;
  --feedback-info:    var(--af-dark-blue);

  /* Focus ring */
  --focus-ring: var(--af-light-blue);
}

/* ============================================================
   AFET — Typography Tokens
   Source: AFG Brand Guidelines §4.0
   Headlines: PP Neue Montreal SemiBold
   Subheads:  PP Neue Montreal Medium
   Body:      PP Neue Montreal Regular
   Editorial / formal: Lora (serif)
   System fallback: Arial
   ============================================================ */

:root {
  /* ---- Families --------------------------------------------- */
  --font-sans:   "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "PP Neue Montreal Arabic", "PP Neue Montreal", Arial, sans-serif;
  --font-serif:  "Lora", Georgia, "Times New Roman", serif;
  --font-system: Arial, "Helvetica Neue", sans-serif;  /* email / PPT fallback */

  /* ---- Weights ---------------------------------------------- */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;   /* Lora bold / Arabic bold only */

  /* ---- Type scale (px → rem at 16px base) ------------------- */
  --text-2xs:  0.75rem;   /* 12 — legal, micro-labels */
  --text-xs:   0.8125rem; /* 13 — small (matches Elementor "Small") */
  --text-sm:   0.875rem;  /* 14 — captions, UI meta */
  --text-base: 1rem;      /* 16 — body */
  --text-md:   1.125rem;  /* 18 — lead body */
  --text-lg:   1.25rem;   /* 20 — subhead small */
  --text-xl:   1.5rem;    /* 24 — subhead */
  --text-2xl:  2rem;      /* 32 — H3 */
  --text-3xl:  2.625rem;  /* 42 — H2 */
  --text-4xl:  3.5rem;    /* 56 — H1 */
  --text-5xl:  4.5rem;    /* 72 — display */

  /* ---- Line heights ----------------------------------------- */
  --leading-tight:   1.08;  /* display headlines */
  --leading-snug:    1.18;  /* headings */
  --leading-normal:  1.5;   /* body */
  --leading-relaxed: 1.65;  /* long-form */

  /* ---- Letter spacing --------------------------------------- */
  --tracking-tight:  -0.02em; /* large display */
  --tracking-normal: 0;
  --tracking-wide:   0.08em;  /* eyebrows / labels */
  --tracking-wider:  0.14em;  /* all-caps nav, kickers */

  /* ============================================================
     Semantic type roles
     ============================================================ */
  --type-display-family: var(--font-sans);
  --type-display-weight: var(--weight-semibold);
  --type-display-size:   var(--text-5xl);
  --type-display-leading:var(--leading-tight);
  --type-display-tracking: var(--tracking-tight);

  --type-h1-family: var(--font-sans);
  --type-h1-weight: var(--weight-semibold);
  --type-h1-size:   var(--text-4xl);

  --type-h2-weight: var(--weight-semibold);
  --type-h2-size:   var(--text-3xl);

  --type-h3-weight: var(--weight-medium);
  --type-h3-size:   var(--text-2xl);

  --type-subhead-family:  var(--font-sans);
  --type-subhead-weight:  var(--weight-medium);
  --type-subhead-size:    var(--text-xl);

  --type-body-family:  var(--font-sans);
  --type-body-weight:  var(--weight-regular);
  --type-body-size:    var(--text-base);
  --type-body-leading: var(--leading-relaxed);

  --type-eyebrow-weight:   var(--weight-medium);
  --type-eyebrow-size:     var(--text-sm);
  --type-eyebrow-tracking: var(--tracking-wider);

  /* Editorial / formal serif (certificates, quotes, invitations) */
  --type-editorial-family: var(--font-serif);
  --type-editorial-weight: var(--weight-regular);
}

/* ============================================================
   AFET — Spacing, Radii, Shadows, Layout
   The brand design system is built on a modular grid (AFG §7.0).
   Digital base unit = 8px. Generous margins, content breathes.
   ============================================================ */

:root {
  /* ---- Spacing scale (8px base) ----------------------------- */
  --space-0:  0;
  --space-1:  0.25rem;  /* 4  */
  --space-2:  0.5rem;   /* 8  */
  --space-3:  0.75rem;  /* 12 */
  --space-4:  1rem;     /* 16 */
  --space-5:  1.5rem;   /* 24 */
  --space-6:  2rem;     /* 32 */
  --space-7:  2.5rem;   /* 40 */
  --space-8:  3rem;     /* 48 */
  --space-9:  4rem;     /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-12: 7rem;     /* 112 — section rhythm */
  --space-14: 9rem;     /* 144 */

  /* ---- Radii ------------------------------------------------ */
  --radius-none: 0;
  --radius-sm:  4px;
  --radius-md:  8px;     /* default cards, inputs, buttons */
  --radius-lg:  14px;
  --radius-xl:  24px;
  --radius-pill: 999px;
  --radius-card: var(--radius-lg);

  /* ---- Border widths ---------------------------------------- */
  --border-thin: 1px;
  --border-med:  2px;

  /* ---- Shadows (soft, low-contrast — premium / quiet) ------- */
  --shadow-xs: 0 1px 2px rgba(4, 30, 66, 0.06);
  --shadow-sm: 0 2px 8px rgba(4, 30, 66, 0.06);
  --shadow-md: 0 10px 28px rgba(4, 30, 66, 0.10);
  --shadow-lg: 0 24px 60px rgba(4, 30, 66, 0.14);
  --shadow-focus: 0 0 0 3px rgba(0, 174, 239, 0.45);

  /* ---- Layout ----------------------------------------------- */
  --container-max: 1240px;
  --container-narrow: 820px;
  --container-pad: var(--space-5);
  --section-y: var(--space-12);
  --grid-cols: 6;          /* @kind other */ /* 6×6 modular grid */
  --grid-gutter: var(--space-5);

  /* ---- Motion (gentle, confident — no bounce) --------------- */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --dur-fast: 140ms; /* @kind other */
  --dur-base: 220ms; /* @kind other */
  --dur-slow: 420ms; /* @kind other */
}

/* ---- Breakpoints (reference) -------------------------------
   sm  ≥ 640px
   md  ≥ 768px   (Elementor md)
   lg  ≥ 992px   (Elementor lg)
   xl  ≥ 1240px
   ------------------------------------------------------------ */

/* ============================================================
   AFET — Base element styling & utility helpers
   Light-touch resets that bind the brand tokens to raw HTML so
   specimen cards and quick prototypes look on-brand by default.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-strong);
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
h2 { font-size: var(--text-3xl); font-weight: var(--weight-semibold); }
h3 { font-size: var(--text-2xl); font-weight: var(--weight-medium); }
h4 { font-size: var(--text-xl);  font-weight: var(--weight-medium); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--brand-primary-hover); }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* ---- Helpers ----------------------------------------------- */
.af-eyebrow {
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--brand-accent);
}

.af-serif { font-family: var(--font-serif); }

.af-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Arabic / RTL context */
[dir="rtl"], .af-arabic {
  font-family: var(--font-arabic);
}
