/* ════════════════════════════════════════════════════════════════
   Base Typography & Layout
   ════════════════════════════════════════════════════════════════ */

html { font-size: 16px; }

body {
  font-family: var(--font-arabic);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-cream);
  background: var(--color-navy-deep);
  overflow-x: hidden;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-padding);
  position: relative;
}

/* ─── Headings ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-cream);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { font-size: 1.0625rem; line-height: 1.8; }

a { transition: color var(--transition-fast); }
a:hover { color: var(--color-bronze); }

::selection {
  background: var(--color-bronze);
  color: var(--color-navy-deep);
}

/* ─── Section helpers ─── */
.section {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.section-dark {
  background: var(--color-navy-deep);
  color: var(--color-cream);
}

.section-light {
  background: var(--color-cream);
  color: var(--color-navy-deep);
}

.section-light h1, .section-light h2, .section-light h3,
.section-light h4, .section-light h5, .section-light h6 {
  color: var(--color-navy-deep);
}

/* ─── Common section header pieces ─── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-arabic);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-bronze);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-eyebrow .line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-bronze);
}

.section-title {
  font-family: var(--font-arabic-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-cream);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-light .section-title { color: var(--color-navy-deep); }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-bronze);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-full);
}

.section-description {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.8;
  color: rgba(245, 241, 234, 0.75);
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.section-light .section-description {
  color: rgba(26, 58, 92, 0.75);
}

.section-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.section-header.text-start {
  text-align: start;
}

.section-header .section-eyebrow,
.section-header .section-divider {
  margin-inline: auto;
}

.section-header.text-start .section-eyebrow,
.section-header.text-start .section-divider {
  margin-inline: 0;
}

/* ─── Wave divider (signature element) ─── */
.section-wave-top {
  width: 100%;
  height: 60px;
  color: var(--color-bronze);
  margin-bottom: var(--space-2xl);
}

.section-wave-top svg { width: 100%; height: 100%; }

/* ─── Section watermark numbers ─── */
.section-watermark {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  font-family: var(--font-numeric);
  font-size: clamp(15rem, 30vw, 25rem);
  font-weight: 800;
  color: var(--color-bronze);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

[dir="rtl"] .section-watermark {
  left: auto;
  right: 5%;
}

/* ─── Visually-hidden helper ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ─── Body lock during preloader ─── */
body.no-scroll { overflow: hidden; }

/* When loaded class added — hero animation triggers */
body.loaded {
  /* Anchor for things that wait until preloader done */
}

/* Wave-bg helper */
.has-wave-bg {
  background-image: url('../images/pattern-wave.svg');
  background-size: 400px;
  background-repeat: repeat;
  background-position: center;
  opacity: 1;
}
