/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ── Typography ── */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.text-gold   { color: var(--clr-gold); }
.text-muted  { color: var(--clr-text-muted); }
.text-center { text-align: center; }

/* Arabic text utility */
.ar {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}
.ar-center {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: center;
}

/* ── Section ── */
.section {
  padding: var(--sp-24) var(--sp-6);
}
.section--dark {
  background: var(--clr-bg-2);
}
.section--darker {
  background: var(--clr-bg-3);
}
.section--pattern {
  background-color: var(--clr-bg-2);
  background-image: radial-gradient(rgba(201, 162, 39, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}
.section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-3);
}
.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
}
.section-header__sub {
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 520px;
  margin: 0 auto;
  direction: rtl;
  line-height: 1.9;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  max-width: 280px;
  margin: var(--sp-5) auto;
}
.divider--left {
  margin: var(--sp-5) 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--clr-gold-border);
}
.divider__gem {
  width: 8px;
  height: 8px;
  background: var(--clr-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.6);
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-gold-border); border-radius: var(--rad-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-gold-dim); }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + var(--sp-16)) var(--sp-6) var(--sp-16);
  text-align: center;
  background: var(--clr-bg-2);
  border-bottom: 1px solid var(--clr-gold-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(201, 162, 39, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-3);
  display: block;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
}
.page-hero__sub {
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  direction: rtl;
}

@media (max-width: 768px) {
  .section { padding: var(--sp-16) var(--sp-4); }
}
