/* =========================================================
   base.css — الخط، ألوان الهوية، الأزرار والعناصر المشتركة
   ألوان الشعار: ذهبي متدرج (#e3bf80 → #c4955a → #a87b40) + كحلي هيم
   الخط مثل الشعار: Jost للإنجليزي، و Alexandria للعربي بأوزان خفيفة
   ========================================================= */

@font-face {
  font-family: "Alexandria";
  src: url("../fonts/Alexandria-arabic.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* الحروف الإنجليزية والأرقام بخط Jost: هندسي رفيع مثل «HEEM GLOBAL HOLDING» في الشعار */
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-latin.woff2") format("woff2");
  font-weight: 200 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}

:root {
  --bg: #fbf8f2;          /* عاجي فاتح */
  --bg-2: #f4eee3;        /* رملي */
  --surface: #ffffff;
  --ink: #0b1034;         /* كحلي هيم */
  --ink-2: #121a46;
  --muted: #5f6684;
  --line: rgb(11 16 52 / 10%);
  --gold-1: #e3bf80;
  --gold-2: #c4955a;
  --gold-3: #a87b40;
  --gold: linear-gradient(120deg, #e3bf80 0%, #c4955a 50%, #a87b40 100%);
  --gold-soft: rgb(196 149 90 / 14%);
  --violet: #5b4cf0;      /* لمسة من منصة هيم الرقمية */

  --font: "Jost", "Alexandria", "Segoe UI", Tahoma, system-ui, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(11 16 52 / 5%), 0 18px 40px -18px rgb(11 16 52 / 22%);
  --shadow-gold: 0 20px 50px -20px rgb(168 123 64 / 55%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 300; line-height: 1.85;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.js.is-loading body { overflow: hidden; animation: unlock 0s 8s forwards; }
@keyframes unlock { to { overflow: visible; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* الأبعاد المكتوبة في الصفحة تحجز المكان بس، وما تمط الصورة */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-2); color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }

/* ---------- نصوص ---------- */
.gold-text {
  background: var(--gold); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-style: normal;
}
/* عنوان صغير فوق العناوين: خط ذهبي ثم النص */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--gold-3); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 1.5px; background: var(--gold); }
/* العربي يحتاج مسافة أسطر أكبر عشان ما تتداخل الحروف */
.h2 { font-size: clamp(28px, 4vw, 54px); font-weight: 500; line-height: 1.5; }
.h3 { font-size: clamp(21px, 2.2vw, 30px); font-weight: 500; line-height: 1.55; }
h3, h4 { line-height: 1.55; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 640px; margin-top: 16px; line-height: 1.95; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 500; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 6px var(--gold-soft); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgb(196 149 90 / 0%); } }

/* ---------- الأزرار ---------- */
.btn {
  --pad: 16px 28px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: var(--pad); border-radius: 99px; font-weight: 500; font-size: 16px; line-height: 1.4;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(-5px); }
.btn[hidden] { display: none; }
.btn--sm { --pad: 10px 20px; font-size: 14px; }
.btn--lg { --pad: 20px 36px; font-size: 18px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before { background: var(--gold); }
.btn--dark:hover { box-shadow: var(--shadow-gold); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn--gold::before { background: var(--ink); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: rgb(255 255 255 / 60%); backdrop-filter: blur(8px); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; border-color: var(--ink); }

/* ---------- ظهور العناصر (تتفعل من animations.js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
