/* ==========================================================================
   FAITH BRIDGE — SHARED BRAND TOKENS (single source of truth)
   ==========================================================================
   Used by BOTH surfaces:
     - Institute website  (~/workspace/website/faithbridge-institute-v2/site/)
     - Student/Teacher/Admin/Partner portal (~/workspace/your_files/faith-bridge-v2/)
   Rule: change a brand decision HERE, and both surfaces follow.
   Do NOT hard-code a brand colour or font anywhere else.

   Approved by the owner (2026-11-11):
     - Brand = GOLD + CREAM. Green is REMOVED from the brand entirely.
     - Dark surface = Warm Dark Brown #2A1E12 (option A).
     - Website = LIGHT ONLY (no dark mode, ever).
     - Fonts: Marcellus (headings) + Inter (body/UI) + Amiri (Arabic)
       + Noto Nastaliq Urdu (Urdu). Changing the Latin font NEVER touches
       Arabic/Urdu — those scripts fall back to Amiri / Noto Nastaliq
       automatically, because Inter/Marcellus contain no Arabic glyphs.
     - Readability: body min 14px, small text min 13px, line-height 1.6.
   Status: DEMO ONLY — nothing here is live until the owner says "deploy".
   Contrast-verified 2026-11-11 (WCAG): 19/20 pairs pass AA/AAA.
     The one FAIL is --gold-soft on cream (1.37:1) — see the guard below:
     --gold-soft is DECORATIVE ONLY, never text on a light surface.
   ========================================================================== */

:root {
  /* ---- Brand colours: gold + cream (+ warm dark brown) ---- */
  --gold:        #C9A227;  /* primary brand gold (logo gold) */
  --gold-dark:   #A8841C;  /* darker gold — gradients, hover */
  --gold-deep:   #8A6D1A;  /* deep gold — text accent on cream, success */
  --gold-soft:   #E8D48A;  /* light gold — accents, highlights.
                              CONTRAST GUARD: 1.37:1 on cream — NEVER use as
                              text on a light surface. Use only on dark
                              (#2A1E12 / #1F150B) or as a decorative fill. */
  --cream:       #FAF6EC;  /* page background */
  --cream-deep:  #F3ECDA;  /* alt background, card tint */
  --ink:         #1C1607;  /* main text — warm near-black brown */
  --muted:       #6B5D43;  /* secondary text — warm brown-grey */
  --line:        #E3D5AE;  /* borders — warm gold-tinted */
  --white:       #FFFFFF;  /* cards */
  --dark:        #2A1E12;  /* header / sidebar — warm dark brown (A) */
  --dark-deep:   #1F150B;  /* darker brown — hover / depth on dark */

  /* ---- Functional colours (NOT brand — only for states) ---- */
  --success:     #8A6D1A;  /* correct / done — deep gold + checkmark */
  --error:       #B3261E;  /* wrong / error — warm red */

  /* ---- Typography ---- */
  --font-heading: 'Marcellus', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic:  'Amiri', serif;
  --font-urdu:    'Noto Nastaliq Urdu', 'Amiri', serif;

  /* Font stacks: the browser picks the first font that has the glyph,
     so Latin -> Inter, Arabic -> Amiri, Urdu -> Noto Nastaliq. */
  --font-stack:   var(--font-body), var(--font-arabic), var(--font-urdu), sans-serif;

  /* ---- Type scale (readability floor: nothing below 13px) ---- */
  --text-h1: 28px;
  --text-h2: 23px;
  --text-h3: 18px;
  --text-body: 14px;   /* minimum body size */
  --text-small: 13px;  /* minimum small-text size — never smaller */
  --leading-body: 1.6;
  --leading-heading: 1.25;

  /* ---- Shape ---- */
  --radius-btn: 999px;   /* pill buttons */
  --radius-card: 18px;
  --space-card: 20px;

  /* ---- Shadow (warm brown tint, never cold) ---- */
  --shadow-card: 0 2px 12px rgba(42, 30, 18, 0.08);
  --shadow-lift: 0 8px 24px rgba(42, 30, 18, 0.12);
}

/* ---- Component tokens (shared by both surfaces) ---- */
:root {
  --btn-primary-bg: var(--gold);
  --btn-primary-text: var(--ink);
  --btn-primary-radius: var(--radius-btn);
  --card-bg: var(--white);
  --card-radius: var(--radius-card);
  --card-padding: var(--space-card);
  --card-shadow: var(--shadow-card);
}

/* ==========================================================================
   PORTAL DARK MODE ONLY (brown-based — green is gone).
   The WEBSITE never uses this block: it stays light, always.
   ========================================================================== */
[data-theme="dark"] {
  --cream:      #1F150B;  /* dark page background */
  --cream-deep: #2A1E12;  /* dark surface */
  --white:      #2A1E12;  /* dark card */
  --ink:        #F5EDD6;  /* warm cream text on dark */
  --muted:      #C9B896;  /* warm muted on dark */
  --line:       #4A3A22;  /* dark border */
  --gold:       #C9A227;  /* gold stays — works on dark brown */
  --gold-deep:  #E8D48A;  /* light gold text on dark */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
}
