/* ================================================================
   QEDAR HOLDING — OFFICIAL BRAND DESIGN SYSTEM
   ================================================================
   Source: Official brand cover guidelines (verified from brand kit)
   Tagline: "قيدار: هندسة المعرفة. بناء النمو."
            "Qedar: Knowledge Engineering. Building Growth."
================================================================ */

:root {
  /* ── OFFICIAL BRAND PALETTE (verified) ─────────────── */
  --q-blue:           #0A2F5E;   /* Primary brand navy */
  --q-blue-deep:      #061F40;   /* Deepest navy */
  --q-blue-mid:       #154276;   /* Mid navy */
  --q-teal:           #18B7B7;   /* Brand teal (signature cyan) */
  --q-teal-mid:       #0E8E8E;   /* Mid teal */
  --q-teal-deep:      #0B6F78;   /* Deep teal (text color) */
  --q-teal-soft:      #5BD3D3;   /* Lighter teal */

  /* ── ACCENT (GOLD) ─────────────────────────────────── */
  --q-gold:           #D4AF37;   /* Primary brand gold */
  --q-gold-soft:      #E5C961;   /* Light gold */
  --q-gold-deep:      #A88829;   /* Deep gold */
  --q-gold-tint:      #F5E8B7;   /* Gold tint for backgrounds */

  /* ── STRUCTURE / NEUTRALS ──────────────────────────── */
  --q-structure-grey: #E0E5ED;   /* Brand neutral */
  --q-cloud:          #F8FAFC;
  --q-cloud-warm:     #F6F9FB;   /* Brand cover background */
  --q-cloud-blue:     #EAF4F6;   /* Brand cover blue tint */
  --q-cloud-mid:      #F3F7FA;
  --q-line:           #E2E8F0;
  --q-line-soft:      #EAEFF5;
  --q-network:        #83AFC3;   /* Network pattern color */

  /* ── TEXT COLORS (from brand) ──────────────────────── */
  --q-text-dark:      #0A2F5E;   /* same as q-blue */
  --q-text-teal:      #0B6F78;   /* same as q-teal-deep */
  --q-text-body:      #1F2937;
  --q-text-soft:      #374151;
  --q-text-muted:     #64748B;
  --q-text-faint:     #94A3B8;

  /* ── SEMANTIC ──────────────────────────────────────── */
  --q-success:        #10B981;
  --q-warning:        #F59E0B;
  --q-critical:       #EF4444;
  --q-info:           #3B82F6;

  /* ── SPACING (4-pt) ────────────────────────────────── */
  --q-s-1: 4px;    --q-s-2: 8px;    --q-s-3: 12px;
  --q-s-4: 16px;   --q-s-5: 20px;   --q-s-6: 24px;
  --q-s-8: 32px;   --q-s-10: 40px;  --q-s-12: 48px;
  --q-s-16: 64px;  --q-s-20: 80px;  --q-s-24: 96px;

  /* ── RADIUS ────────────────────────────────────────── */
  --q-r-sm: 8px;   --q-r-md: 12px;  --q-r-lg: 16px;
  --q-r-xl: 20px;  --q-r-2xl: 24px; --q-r-full: 9999px;

  /* ── SHADOWS ───────────────────────────────────────── */
  --q-shadow-sm:    0 1px 2px rgba(10, 47, 94, 0.04);
  --q-shadow-md:    0 4px 12px rgba(10, 47, 94, 0.08);
  --q-shadow-lg:    0 10px 30px rgba(10, 47, 94, 0.12);
  --q-shadow-xl:    0 20px 50px rgba(10, 47, 94, 0.16);
  --q-shadow-2xl:   0 25px 50px -12px rgba(10, 47, 94, 0.25);
  /* Logo shadow (exact from brand cover) */
  --q-shadow-logo:  0 12px 22px rgba(10, 47, 94, 0.18),
                    0 2px 4px rgba(24, 183, 183, 0.16);
  --q-shadow-glow-teal: 0 8px 32px rgba(24, 183, 183, 0.25);
  --q-shadow-glow-gold: 0 4px 20px rgba(212, 175, 55, 0.30);

  /* ── TYPOGRAPHY ────────────────────────────────────── */
  --q-font-ar: 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', system-ui, sans-serif;
  --q-font-en: 'Inter', 'Manrope', system-ui, sans-serif;

  /* ── ANIMATION ─────────────────────────────────────── */
  --q-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --q-ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --q-ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);
}

/* ================================================================
   1. BRAND COVER (Official Light Cover — exact from brand kit)
================================================================ */

.brand-cover {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 35%,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(247, 250, 252, 0.96) 34%,
      rgba(235, 243, 248, 0.96) 66%,
      rgba(255, 255, 255, 1) 100%),
    linear-gradient(135deg, #ffffff 0%, #f6f9fb 45%, #edf6f8 100%);
  overflow: hidden;
}

/* Soft light: top-right (teal halo) */
.brand-cover::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -120px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 183, 183, 0.18), transparent 68%);
  z-index: 0;
  pointer-events: none;
}

/* Soft light: bottom-left (navy halo) */
.brand-cover::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 47, 94, 0.10), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

[dir="rtl"] .brand-cover::before {
  right: auto; left: -120px;
}
[dir="rtl"] .brand-cover::after {
  left: auto; right: -120px;
}

/* Network pattern — exact paths from brand */
.brand-cover-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.38;
  z-index: 1;
  pointer-events: none;
}

/* Curve — bottom-left blob (exact from brand) */
.brand-cover-curve {
  position: absolute;
  left: -140px;
  bottom: -170px;
  width: 1200px;
  height: 520px;
  border-radius: 50%;
  background: linear-gradient(145deg,
    rgba(24, 183, 183, 0.32),
    rgba(10, 47, 94, 0.08) 60%,
    rgba(255, 255, 255, 0));
  filter: blur(0.5px);
  z-index: 2;
  pointer-events: none;
}

.brand-cover-curve::after {
  content: "";
  position: absolute;
  inset: 80px -60px -70px 80px;
  border-top: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transform: rotate(-4deg);
}

[dir="rtl"] .brand-cover-curve {
  left: auto; right: -140px;
  transform: scaleX(-1);
}

/* Gold arc — sweeping wide arc (exact from brand) */
.brand-cover-gold-arc {
  position: absolute;
  left: -120px;
  bottom: 90px;
  width: 2200px;
  height: 440px;
  border-radius: 50%;
  border-top: 2px solid rgba(212, 175, 55, 0.55);
  transform: rotate(-7deg);
  z-index: 3;
  pointer-events: none;
}

[dir="rtl"] .brand-cover-gold-arc {
  left: auto; right: -120px;
  transform: rotate(7deg) scaleX(-1);
}

/* Content area sits above all decorative layers */
.brand-cover > *:not(.brand-cover-network):not(.brand-cover-curve):not(.brand-cover-gold-arc) {
  position: relative;
  z-index: 5;
}

/* ================================================================
   2. BRAND MARK (the official logo + tagline composition)
   This recreates the layout in the brand cover image exactly.
================================================================ */

.brand-mark {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-mark .symbol {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto var(--q-s-12);
  filter: var(--q-shadow-logo);
  filter:
    drop-shadow(0 12px 22px rgba(10, 47, 94, 0.18))
    drop-shadow(0 2px 4px rgba(24, 183, 183, 0.16));
}

.brand-mark .symbol-sm {
  width: 80px;
  margin-bottom: var(--q-s-4);
}

.brand-mark .symbol-md {
  width: 140px;
  margin-bottom: var(--q-s-6);
}

.brand-mark .ar-title {
  margin: 0;
  font-family: var(--q-font-ar);
  font-size: 62px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--q-text-dark);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.brand-mark .en-title {
  margin: 16px 0 34px;
  font-family: var(--q-font-en);
  direction: ltr;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--q-text-dark);
}

/* Compact variants */
.brand-mark.size-md .ar-title  { font-size: 36px; }
.brand-mark.size-md .en-title  { font-size: 22px; margin: 8px 0 20px; }
.brand-mark.size-sm .ar-title  { font-size: 24px; }
.brand-mark.size-sm .en-title  { font-size: 14px; margin: 4px 0 14px; }

/* ================================================================
   3. GOLD SEPARATOR WITH DIAMOND (signature element!)
   The thin gold hairline with a small rotated gold square in the middle.
================================================================ */

.gold-separator {
  position: relative;
  width: 420px;
  height: 1px;
  margin: 0 auto var(--q-s-8);
  background: linear-gradient(to right,
    transparent,
    rgba(212, 175, 55, 0.75),
    transparent);
  border: none;
}

.gold-separator::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 11px;
  background: var(--q-gold);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.78);
}

/* Sized variants */
.gold-separator.sm {
  width: 200px;
  margin-bottom: var(--q-s-4);
}
.gold-separator.sm::after {
  width: 8px;
  height: 8px;
  top: -3.5px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.78);
}

.gold-separator.md { width: 300px; }

/* No-diamond variant (just the line) */
.gold-hairline {
  height: 1px;
  width: 80px;
  margin: var(--q-s-3) auto;
  background: linear-gradient(to right,
    transparent,
    rgba(212, 175, 55, 0.75),
    transparent);
  border: none;
}

/* On dark backgrounds (use lighter gold) */
.brand-hero .gold-separator,
.brand-hero .gold-hairline {
  background: linear-gradient(to right,
    transparent,
    rgba(229, 201, 97, 0.85),
    transparent);
}
.brand-hero .gold-separator::after {
  background: var(--q-gold-soft);
  box-shadow: 0 0 0 6px rgba(10, 47, 94, 0.5);
}

/* ================================================================
   4. TAGLINE
================================================================ */

.brand-tagline-ar {
  margin: 0 0 var(--q-s-2);
  font-family: var(--q-font-ar);
  font-size: 27px;
  font-weight: 600;
  color: var(--q-text-teal);
  line-height: 1.2;
}

.brand-tagline-en {
  margin: 0;
  direction: ltr;
  font-family: var(--q-font-en);
  font-size: 24px;
  font-weight: 400;
  color: var(--q-text-teal);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.brand-tagline-ar.sm { font-size: 16px; }
.brand-tagline-en.sm { font-size: 14px; }
.brand-tagline-ar.xs { font-size: 13px; }
.brand-tagline-en.xs { font-size: 12px; }

/* On dark backgrounds */
.brand-hero .brand-tagline-ar,
.brand-hero .brand-tagline-en {
  color: var(--q-teal-soft);
}

/* ================================================================
   5. BRAND HERO (Dark navy version — for dashboards)
================================================================ */

.brand-hero {
  position: relative;
  isolation: isolate;
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(24, 183, 183, 0.20), transparent 50%),
    linear-gradient(135deg, var(--q-blue-deep) 0%, var(--q-blue) 50%, var(--q-blue-mid) 100%);
  overflow: hidden;
}

.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.08) 1.5px, transparent 2px),
    radial-gradient(circle at 95% 50%, rgba(212, 175, 55, 0.12) 1.5px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06) 1.5px, transparent 2px),
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.06) 1.5px, transparent 2px),
    radial-gradient(circle at 5% 70%, rgba(24, 183, 183, 0.12) 1.5px, transparent 2px);
  pointer-events: none;
}

/* Hero gold arc (subtle on dark) */
.brand-hero .brand-cover-gold-arc {
  border-top-color: rgba(212, 175, 55, 0.30);
  z-index: 1;
}

.brand-hero > * {
  position: relative;
  z-index: 5;
}

/* Inverted brand mark for dark heroes */
.brand-hero .brand-mark .ar-title,
.brand-hero .brand-mark .en-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.brand-hero .brand-mark .en-title {
  color: var(--q-gold-soft);
}

/* ================================================================
   6. GLASS CARD
================================================================ */

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--q-shadow-lg);
  border-radius: var(--q-r-2xl);
}

.glass-card-dark {
  background: rgba(10, 47, 94, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ================================================================
   7. BUTTONS
================================================================ */

.btn-brand-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--q-s-2);
  padding: var(--q-s-3) var(--q-s-6);
  background: linear-gradient(135deg, var(--q-blue) 0%, var(--q-blue-mid) 100%);
  color: white;
  border: none;
  border-radius: var(--q-r-md);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--q-font-ar);
  cursor: pointer;
  transition: all 0.2s var(--q-ease);
  box-shadow: var(--q-shadow-md);
}
.btn-brand-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--q-shadow-lg);
  background: linear-gradient(135deg, var(--q-blue-mid) 0%, var(--q-teal-deep) 100%);
}

.btn-brand-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--q-s-2);
  padding: var(--q-s-3) var(--q-s-6);
  background: linear-gradient(135deg, var(--q-gold) 0%, var(--q-gold-deep) 100%);
  color: white;
  border: none;
  border-radius: var(--q-r-md);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--q-font-ar);
  cursor: pointer;
  transition: all 0.2s var(--q-ease);
  box-shadow: var(--q-shadow-glow-gold);
}
.btn-brand-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-brand-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--q-s-2);
  padding: var(--q-s-3) var(--q-s-6);
  background: linear-gradient(135deg, var(--q-teal) 0%, var(--q-teal-deep) 100%);
  color: white;
  border: none;
  border-radius: var(--q-r-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--q-ease);
  box-shadow: var(--q-shadow-glow-teal);
}
.btn-brand-teal:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-brand-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--q-s-2);
  padding: var(--q-s-3) var(--q-s-6);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--q-r-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--q-ease);
  backdrop-filter: blur(10px);
}
.btn-brand-ghost:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--q-gold);
}

/* ================================================================
   8. STANDARDS PILL (compliance badges)
================================================================ */

.standards-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--q-r-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--q-gold-soft);
  text-transform: uppercase;
  transition: all 0.15s var(--q-ease);
}
.standards-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-1px);
}

.standards-pill.light {
  background: rgba(10, 47, 94, 0.05);
  border-color: rgba(10, 47, 94, 0.15);
  color: var(--q-blue);
}

.standards-pill.teal {
  background: rgba(24, 183, 183, 0.10);
  border-color: rgba(24, 183, 183, 0.30);
  color: var(--q-teal-deep);
}

/* ================================================================
   9. SECTION HEADERS (matches PDF report style)
================================================================ */

.section-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--q-teal-deep);
  margin-bottom: var(--q-s-2);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--q-text-dark);
  line-height: 1.3;
  margin: 0;
  font-family: var(--q-font-ar);
}

.section-title.lg { font-size: 32px; }
.section-title.xl { font-size: 40px; font-weight: 200; letter-spacing: -0.5px; }
.section-title.xl strong { font-weight: 700; color: var(--q-text-dark); }

.section-rule {
  width: 24px;
  height: 2px;
  background: var(--q-gold);
  margin: var(--q-s-3) 0 var(--q-s-6) 0;
  border: none;
}

/* ================================================================
   10. ANIMATIONS
================================================================ */

@keyframes brandFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brandSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brandShimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

@keyframes brandFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes brandPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes brandRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-up           { animation: brandFadeUp 0.6s var(--q-ease-out); }
.animate-fade-up-d1        { animation: brandFadeUp 0.6s var(--q-ease-out) 0.1s both; }
.animate-fade-up-d2        { animation: brandFadeUp 0.6s var(--q-ease-out) 0.2s both; }
.animate-fade-up-d3        { animation: brandFadeUp 0.6s var(--q-ease-out) 0.3s both; }
.animate-slide-up          { animation: brandSlideUp 0.7s var(--q-ease-out); }
.animate-float             { animation: brandFloat 6s var(--q-ease-in-out) infinite; }

/* ================================================================
   11. UTILITIES
================================================================ */

.text-gradient-brand {
  background: linear-gradient(135deg, var(--q-blue) 0%, var(--q-teal-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--q-gold) 0%, var(--q-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-teal {
  background: linear-gradient(135deg, var(--q-teal) 0%, var(--q-teal-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Bilingual helpers */
.bilingual {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.bilingual.left { align-items: flex-start; }
.bilingual.right { align-items: flex-end; }

.bilingual .ar { font-family: var(--q-font-ar); }
.bilingual .en {
  font-family: var(--q-font-en);
  font-size: 0.75em;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
  direction: ltr;
}

/* ================================================================
   12. PRINT
================================================================ */

@media print {
  .brand-cover, .brand-hero {
    background: white !important;
    color: var(--q-text-body) !important;
  }
  .brand-cover::before, .brand-cover::after,
  .brand-hero::before, .brand-cover-network,
  .brand-cover-curve, .brand-cover-gold-arc {
    display: none !important;
  }
}

/* ================================================================
   13. BRAND LIGHT HERO (universal — for sub-pages)
   Apply by adding "brand-light-hero" class to existing dark <header>
================================================================ */

.brand-light-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f6f9fb 45%, #eaf4f6 100%) !important;
  position: relative;
  isolation: isolate;
}

/* Inverts text colors inside */
.brand-light-hero,
.brand-light-hero h1,
.brand-light-hero h2,
.brand-light-hero h3,
.brand-light-hero h4 {
  color: var(--q-blue) !important;
}
.brand-light-hero p {
  color: var(--q-text-soft) !important;
}
.brand-light-hero .text-white,
.brand-light-hero .text-slate-200,
.brand-light-hero .text-slate-300 {
  color: var(--q-text-soft) !important;
}
.brand-light-hero .text-slate-400 {
  color: var(--q-text-muted) !important;
}

/* Convert badges/pills */
.brand-light-hero .glass-dark {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(10, 47, 94, 0.10) !important;
  box-shadow: 0 12px 32px rgba(10, 47, 94, 0.10);
}
.brand-light-hero .glass-dark h4 {
  color: var(--q-blue) !important;
}
.brand-light-hero .glass-dark p {
  color: var(--q-text-muted) !important;
}

/* Border colors */
.brand-light-hero [class*="border-white"] {
  border-color: rgba(10, 47, 94, 0.10) !important;
}
.brand-light-hero [class*="bg-white/10"],
.brand-light-hero [class*="bg-white/5"] {
  background: rgba(10, 47, 94, 0.04) !important;
}

/* Hide background image overlays in light mode */
.brand-light-hero [style*="background-image: url"] {
  opacity: 0.06 !important;
  filter: grayscale(0.3) brightness(1.1);
}

/* Hide gradient-to-* overlays that were dark */
.brand-light-hero [class*="bg-gradient-to-"][class*="qedar-navy"] {
  display: none;
}

/* Brand cover decorations (curve + gold arc + soft halos) */
.brand-light-hero::before {
  content: "";
  position: absolute;
  top: -15vw; right: -10vw;
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 183, 183, 0.12), transparent 65%);
  z-index: 0; pointer-events: none;
}
.brand-light-hero::after {
  content: "";
  position: absolute;
  bottom: -15vw; left: -10vw;
  width: 55vw; height: 55vw;
  max-width: 760px; max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 47, 94, 0.08), transparent 70%);
  z-index: 0; pointer-events: none;
}

/* Content z-index above decorations */
.brand-light-hero > * { position: relative; z-index: 5; }

/* Override numeric values */
.brand-light-hero .text-4xl,
.brand-light-hero .text-5xl,
.brand-light-hero .text-6xl,
.brand-light-hero .text-7xl,
.brand-light-hero .text-8xl {
  color: var(--q-blue) !important;
}

/* Cards with stat-style icons — ensure visibility on light background */
.brand-light-hero .glass-dark [data-lucide].text-blue-400  { color: #2F9EAB !important; }
.brand-light-hero .glass-dark [data-lucide].text-green-400 { color: #10B981 !important; }
.brand-light-hero .glass-dark [data-lucide].text-qedar-teal { color: #18B7B7 !important; }
.brand-light-hero .glass-dark [data-lucide].text-orange-400 { color: #F59E0B !important; }
.brand-light-hero .glass-dark [data-lucide].text-purple-400 { color: #7C3AED !important; }
.brand-light-hero .glass-dark [data-lucide].text-yellow-400 { color: #D4AF37 !important; }
.brand-light-hero .glass-dark [data-lucide].text-red-400    { color: #EF4444 !important; }

/* Stat numbers on light background */
.brand-light-hero [class*="text-qedar-tealDark"] {
  color: var(--q-teal-deep) !important;
}

/* Pill backgrounds (badge) */
.brand-light-hero [class*="bg-qedar-teal/10"] {
  background: rgba(24, 183, 183, 0.10) !important;
  border-color: rgba(24, 183, 183, 0.30) !important;
}
.brand-light-hero [class*="text-qedar-teal"] {
  color: var(--q-teal-deep) !important;
}

/* Card hover borders */
.brand-light-hero .glass-dark:hover {
  border-color: rgba(24, 183, 183, 0.30) !important;
  box-shadow: 0 16px 40px rgba(10, 47, 94, 0.12) !important;
}

/* Background pattern overlays — make subtle on light */
.brand-light-hero [style*="rgba(198, 168, 124"],
.brand-light-hero [style*="rgba(200,150,62"],
.brand-light-hero [style*="rgba(212,175,55"] {
  /* Keep gold dot patterns subtle */
}

/* Heavy circular blur "glow" overlays on dark heroes — soften them */
.brand-light-hero .bg-qedar-teal\\/10[class*="blur-"] {
  background: rgba(24, 183, 183, 0.08) !important;
}

/* ================================================================
   14. RESPONSIVE
================================================================ */

@media (max-width: 768px) {
  .brand-mark .ar-title { font-size: 32px; }
  .brand-mark .en-title { font-size: 22px; letter-spacing: 1.5px; }
  .brand-mark .symbol { width: 140px; margin-bottom: 24px; }
  .brand-tagline-ar { font-size: 18px; }
  .brand-tagline-en { font-size: 15px; }
  .gold-separator { width: 80%; }
  .brand-cover-curve { width: 800px; height: 360px; left: -90px; bottom: -100px; }
  .brand-cover-gold-arc { width: 1500px; height: 300px; }
}
