/* =========================================================================
   EL-OKABY — centralized design tokens & brand fonts
   Brand source: guidline.pdf (Primary colours: Gold #C49B6A, Black #030404)
   ========================================================================= */

/* ---- Brand fonts ---------------------------------------------------------
   Official: Madani (Arabic) + Avenir (English). The licensed font FILES were not
   supplied with the brand assets, so they are only picked up if installed locally.
   To activate the licensed files: copy them to /public/fonts/ and uncomment the url() lines.
   TEMPORARY fallback (documented): Cairo (SIL OFL 1.1) for Arabic, Arial/system for English.
---------------------------------------------------------------------------- */
@font-face { font-family: "Madani"; font-weight: 400; font-display: swap;
  src: local("Madani"), local("Madani Arabic"), local("Madani Arabic Regular") /*, url("/fonts/Madani-Regular.woff2") format("woff2") */; }
@font-face { font-family: "Madani"; font-weight: 500; font-display: swap;
  src: local("Madani Medium"), local("Madani Arabic Medium") /*, url("/fonts/Madani-Medium.woff2") format("woff2") */; }
@font-face { font-family: "Madani"; font-weight: 700; font-display: swap;
  src: local("Madani Bold"), local("Madani Arabic Bold") /*, url("/fonts/Madani-Bold.woff2") format("woff2") */; }

@font-face { font-family: "Avenir"; font-weight: 400; font-display: swap;
  src: local("Avenir"), local("Avenir Book"), local("Avenir Next"), local("AvenirNext-Regular") /*, url("/fonts/Avenir-Book.woff2") format("woff2") */; }
@font-face { font-family: "Avenir"; font-weight: 500; font-display: swap;
  src: local("Avenir Medium"), local("Avenir Next Medium"), local("AvenirNext-Medium") /*, url("/fonts/Avenir-Medium.woff2") format("woff2") */; }
@font-face { font-family: "Avenir"; font-weight: 700; font-display: swap;
  src: local("Avenir Heavy"), local("Avenir Black"), local("Avenir Next Bold"), local("AvenirNext-Bold") /*, url("/fonts/Avenir-Heavy.woff2") format("woff2") */; }

@font-face { font-family: "Cairo Fallback"; font-weight: 400; font-display: swap;
  src: url("/fonts/cairo-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo Fallback"; font-weight: 500; font-display: swap;
  src: url("/fonts/cairo-arabic-500-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo Fallback"; font-weight: 700; font-display: swap;
  src: url("/fonts/cairo-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }

:root {
  /* Primary brand colours (official) */
  --brand-gold: #C49B6A;
  --brand-black: #030404;
  --white: #FFFFFF;

  /* Supporting functional UI colours */
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --border: #E7E5E1;
  --text: #030404;
  --text-2: #6B7280;
  --approved: #15803D;
  --disapproved: #B91C1C;
  --pending: #A16207;

  /* Tints derived for subtle surfaces only */
  --gold-tint: #F7F0E7;
  --gold-line: #E6D3BB;
  --gold-ink: #7A5A33;          /* gold-family text on white where #C49B6A lacks contrast */
  --approved-tint: #EEF8F1;
  --disapproved-tint: #FBEFEF;
  --pending-tint: #FBF5E6;
  --row-hover: #FBFAF8;
  --sidebar-muted: #B9B6B0;

  /* Typography */
  --font-ar: "Madani", "Cairo Fallback", "Avenir", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-en: "Avenir", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14.5px; --fs-lg: 17px; --fs-xl: 22px; --fs-2xl: 26px;

  /* Shape & depth */
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(3, 4, 4, .05);
  --shadow: 0 1px 2px rgba(3, 4, 4, .04), 0 6px 20px rgba(3, 4, 4, .05);
  --shadow-lg: 0 20px 50px rgba(3, 4, 4, .18);
  --focus: 0 0 0 3px rgba(196, 155, 106, .35);

  --sidebar-w: 248px;
  --topbar-h: 64px;
}
