/* Al-Futtaim Technologies Design System — global stylesheet (vendored into cctv.ae).
   Recovered from the design build; @font-face URLs repointed to /fonts/. */
/*
  Al-Futtaim Technologies — Design System global entry point.
  Consumers link THIS one file. It is a manifest of @imports only.
  Brand Guidelines V1.0 (August 2025).
*/

/*
  Al-Futtaim webfonts — Brand Guidelines V1.0 §4.0 Typography.
  Primary: PP Neue Montreal (Regular 400 / Medium 500 / SemiBold 600).
  Secondary serif: Lora (Regular 400 / Bold 700) — formal comms only.
  Arabic: PP Neue Montreal Arabic (Regular / Medium / Bold).
  Arial is the official SYSTEM fallback when webfonts are unavailable.
  PP Neue Montreal is a LICENSED typeface — request from the Al-Futtaim
  brand portal. The woff2 files shipped here are the licensed binaries.
*/

@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/ppneuemontreal-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/ppneuemontreal-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/ppneuemontreal-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Arabic companion (RTL) */
@font-face {
  font-family: "PP Neue Montreal Arabic";
  src: url("fonts/ppneuemontreal-arabic-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal Arabic";
  src: url("fonts/ppneuemontreal-arabic-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal Arabic";
  src: url("fonts/ppneuemontreal-arabic-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

/*
  Al-Futtaim — Colour Palette. Brand Guidelines V1.0 §3.0.
  Primary colours used together create layered, dynamic comms.
  Secondary colours are ACCENTS / highlights / data-viz / UI only — used sparingly.
  Tone guidance: avoid neon, avoid pure blue (#0000FF), avoid harsh pure black for text.
*/

:root {
  /* ── Primary (§3.0 Primary) ─────────────────────────────── */
  --af-light-blue: #00aeef; /* Pantone Cyan — accents, primary CTA, the arrowhead */
  --af-dark-blue: #005baa;  /* Pantone Reflex Blue — primary actions, links */
  --af-midnight: #041e42;   /* Pantone 282 — signature dark background, primary text */
  --af-black: #000000;
  --af-white: #ffffff;

  /* ── Secondary (§3.0 Secondary) — accents / UI / data-viz ─ */
  /* Cyan tints */
  --af-pale: #cceffc;
  --af-sky: #99dff9;
  --af-cyan-300: #66cef5;
  --af-cyan-400: #33bef2;
  /* Blue tints */
  --af-blue-100: #ccdeee;
  --af-blue-300: #99bddd;
  --af-blue-500: #669dcc;
  --af-steel: #337cbb;
  --af-blue-900: #364b68; /* deep steel slate */
  /* Neutral greys (cool, brand-tuned) */
  --af-line: #cdd2d9;  /* light-grey UI background / borders */
  --af-grey: #9ba5b3;  /* muted/disabled */
  --af-slate: #68788e; /* secondary / body-muted text */
  /* Pure greys (functional UI) */
  --af-grey-200: #cccccc;
  --af-grey-400: #999999;
  --af-grey-600: #666666;
  --af-grey-800: #333333;

  /* ── Derived surfaces ────────────────────────────────────── */
  --af-mist: #f4f7fa; /* soft section background, reduces contrast */

  /* ══ Semantic aliases ════════════════════════════════════════ */
  /* Surfaces */
  --surface-base: var(--af-white);
  --surface-soft: var(--af-mist);
  --surface-card: var(--af-white);
  --surface-inverse: var(--af-midnight); /* hero / footer / CTA bands */
  --surface-accent: var(--af-dark-blue); /* ERP band */
  --surface-pale: var(--af-pale);

  /* Text */
  --text-strong: var(--af-midnight); /* headlines, primary text */
  --text-body: var(--af-slate);      /* body copy on light */
  --text-muted: var(--af-grey);      /* captions, labels */
  --text-on-dark: var(--af-white);
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --text-link: var(--af-dark-blue);
  --text-accent: var(--af-light-blue);

  /* Lines & borders */
  --border-subtle: var(--af-line);
  --border-on-dark: rgba(255, 255, 255, 0.15);

  /* Interactive */
  --action-primary: var(--af-dark-blue);
  --action-primary-hover: var(--af-midnight);
  --action-accent: var(--af-light-blue); /* cyan pill CTA on dark */
  --focus-ring: rgba(0, 174, 239, 0.4);

  /* Status / feedback (tuned to the cool brand palette) */
  --status-success: #1f8a5b;
  --status-warning: #c98a14;
  --status-error: #c0392b;
  --status-info: var(--af-dark-blue);

  /* Page defaults */
  --background: var(--af-white);
  --foreground: var(--af-midnight);
}

/*
  Al-Futtaim — Typography tokens. Brand Guidelines V1.0 §4.0.
  Primary: PP Neue Montreal (SemiBold headlines, Medium subheads, Regular body).
  Arial is the official system fallback. Secondary serif: Lora (formal comms).
  Casing: Eyebrows are UPPERCASE with wide tracking; headlines are sentence/title case.
*/

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

  /* Weights (only 400 / 500 / 600 exist for PP Neue Montreal) */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Type scale — tuned for marketing / product surfaces */
  --text-display: 3.5rem;   /* 56px — hero */
  --text-h1: 2.5rem;        /* 40px */
  --text-h2: 2rem;          /* 32px — section titles */
  --text-h3: 1.5rem;        /* 24px */
  --text-h4: 1.25rem;       /* 20px */
  --text-lg: 1.125rem;      /* 18px — lead body */
  --text-base: 1rem;        /* 16px — body */
  --text-sm: 0.875rem;      /* 14px — UI / small body */
  --text-xs: 0.75rem;       /* 12px — captions */
  --text-eyebrow: 0.8125rem;/* 13px — uppercase eyebrow */

  /* Line heights */
  --leading-tight: 1.1;   /* display / headlines */
  --leading-snug: 1.25;   /* subheads */
  --leading-normal: 1.5;  /* body UI */
  --leading-relaxed: 1.7; /* long-form body */

  /* Letter spacing */
  --tracking-tight: -0.02em; /* large headlines */
  --tracking-normal: 0;
  --tracking-eyebrow: 0.18em; /* uppercase eyebrow / label */
}

/*
  Al-Futtaim — Spacing, radii, shadows, layout. Brand Guidelines V1.0 §7.0.
  Design philosophy: generous whitespace, rounded corners, modular grid,
  open and balanced compositions. Soft, low-contrast shadows — never heavy.
*/

:root {
  /* ── Spacing scale (4px 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: 3rem;    /* 48 */
  --space-8: 4rem;    /* 64 */
  --space-9: 6rem;    /* 96 — section rhythm */
  --space-10: 8rem;   /* 128 */

  /* Section vertical rhythm */
  --section-y: 6rem;
  --container-max: 72rem; /* 1152px — max-w-6xl content column */
  --container-pad: 1.5rem;

  /* ── Radii — rounded, friendly (never sharp) ─────────────── */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;   /* default card / input */
  --radius-lg: 16px;   /* large cards */
  --radius-xl: 24px;   /* feature panels */
  --radius-pill: 999px;/* CTA pills, tags */

  /* ── Shadows — soft, cool-tinted, low contrast ───────────── */
  --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 8px 24px rgba(4, 30, 66, 0.08);
  --shadow-lg: 0 18px 48px rgba(4, 30, 66, 0.12);
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  /* ── Motion — calm, confident, subtle ────────────────────── */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --duration-fast: 140ms; /* @kind other */
  --duration-base: 220ms; /* @kind other */
  --duration-slow: 360ms; /* @kind other */

  /* Signature midnight-band glow (hero/CTA radial accents) */
  --glow-cyan: radial-gradient(60% 80% at 80% 10%, rgba(0, 174, 239, 0.35), transparent 60%); /* @kind other */
  --glow-blue: radial-gradient(50% 60% at 10% 90%, rgba(0, 91, 170, 0.5), transparent 60%); /* @kind other */
}

/*
  Al-Futtaim — base element defaults. Sets the brand type + colour on the page.
  Kept minimal: tokens do the work. Imported last from styles.css.
*/

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

/* Eyebrow / kicker — uppercase, wide tracking, dark-blue */
.af-eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--af-dark-blue);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

