/* ═══════════════════════════════════════════════════════════════
   BASE — tokens, reset, body, scroll progress, sections, dividers,
          reveal animations, inline SVG icon utility (.ic)
═══════════════════════════════════════════════════════════════ */

:root {
  --navy:   #0D1526;
  --navy2:  #1A2540;
  --navy3:  #243050;
  --gold:   #C9A84C;
  --gold2:  #E8C97A;
  --gold3:  #F5E6C0;

  --bg:      #FFFFFF;
  --bg2:     #F7F8FA;
  --bg3:     #EEF0F5;
  --text:    #0D1526;
  --text2:   #3D4A5C;
  --muted:   #5E6A7E;
  --border:  #E2E6EE;
  --border2: rgba(13,21,38,.08);

  --rsm:   6px;
  --rmd:   12px;
  --rlg:   16px;
  --rxl:   20px;
  --rfull: 9999px;

  --shadow:    0 1px 3px rgba(13,21,38,.06);
  --shadow-md: 0 4px 16px rgba(13,21,38,.08);
  --shadow-lg: 0 12px 36px rgba(13,21,38,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-padding-top offsets in-page anchor jumps below the fixed
   navbar so the target heading lands in view, not hidden behind it. */
html  { scroll-behavior: smooth; scroll-padding-top: 90px; }
body  {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold3), var(--gold));
  background-size: 200% 100%;
  z-index: 9999;
  transition: width .1s linear;
  animation: shimmer-bar 3s linear infinite;
  box-shadow: 0 0 8px rgba(201,168,76,.6);
}
@keyframes shimmer-bar {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Custom cursor — DISABLED ────────────────────────────────────
   cursor.js is turned off, so the .cur / .cur-ring elements were never
   positioned or hidden by JS and sat as a static gold dot+ring in the
   top-left corner (the "yellow cursor artifact"). Hide them everywhere
   and restore the normal system cursor. */
.cur, .cur-ring { display: none !important; }

/* ── Section commons & container ────────────────────────────── */
section { padding: 80px 48px; position: relative; }
.container { max-width: 1240px; margin: 0 auto; }

.stag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.stag::before {
  content: ''; width: 20px; height: 1px;
  background: var(--gold);
}

h2.stit {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700; line-height: 1.15; letter-spacing: -1px;
  color: var(--navy); margin-bottom: 14px;
}
h2.stit em { font-style: italic; color: var(--gold); font-weight: 700; }
.sdesc { font-size: 15px; line-height: 1.7; color: var(--text2); }

/* ── Section divider — a single hairline, no gem ───────────── */
.sec-div {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13,21,38,.10), transparent);
  margin: 0;
}
.sec-div.dark {
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.18), transparent);
}

/* ── Reveal animations ──────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.rv.on { opacity: 1; transform: translateY(0); }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv.d3 { transition-delay: .24s; }
.rv.d4 { transition-delay: .32s; }

@keyframes fup    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink  { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes pulse  {
  0%, 100% { opacity: .7; transform: translateX(-50%) scale(1); }
  50%      { opacity:  1; transform: translateX(-50%) scale(1.04); }
}

/* ── Inline SVG icon utility ────────────────────────────────── */
/* Inline sprite at top of <body> defines <symbol id="…">. Use as
   <svg class="ic"><use href="#bolt"/></svg> — color is controlled
   via CSS `color` (icons use fill="currentColor"). */
.ic {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
  fill: currentColor;
  /* stroke is set per-symbol (some use stroke, some use fill).
     Don't reset stroke-width here — let the SVG's own value win. */
}
/* Stroke-designed icons (fill="none" + stroke="currentColor") must stay
   unfilled — otherwise the rule above turns them into solid blobs
   (e.g. a clock face fills into a disc, a lock into a slab). */
.ic[fill="none"] { fill: none; }
.ic-sm { width: .85em; height: .85em; }
.ic-lg { width: 1.4em; height: 1.4em; }
.ic-xl { width: 1.8em; height: 1.8em; }

/* Legacy color helpers — kept so existing .ic.gold/.white markup
   still works. They now set color (CSS var) instead of filter. */
.ic.gold  { color: var(--gold); }
.ic.white { color: #fff; }
.ic.muted { color: rgba(255,255,255,.55); }
.ic.navy  { color: var(--navy); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  section { padding: 64px 24px; }
}
@media (max-width: 768px) {
  section { padding: 52px 20px; }
  h2.stit { font-size: clamp(24px, 6vw, 34px); }
}
@media (max-width: 480px) {
  section { padding: 40px 16px; }
}

/* ── RTL ────────────────────────────────────────────────────── */
[dir="rtl"] body          { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }
[dir="rtl"] .stag::before { display: none; }
[dir="rtl"] .stag         { flex-direction: row-reverse; }

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
}
