/* ─────────────────────────────────────────────────────────────
   BASE  —  Reset, root styles, typography, utilities
   ───────────────────────────────────────────────────────────── */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }

/* Root */
body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Headings — use serif by default, sans in Arabic mode */
h1, h2, h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  letter-spacing: 0;
}

/* Page system */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* Layout */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* Section header */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.2; margin-bottom: 16px;
}
.section-header p { font-size: 1.0625rem; color: var(--ink-muted); line-height: 1.7; }

/* Badge pill */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 6px 14px; border-radius: var(--radius-full);
  margin-bottom: 24px;
}
html[dir="rtl"] .badge { letter-spacing: 0; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* Colour helpers */
.text-gold  { color: var(--gold); }
.text-teal  { color: var(--teal); }
.text-terra { color: var(--terra); }
.text-muted { color: var(--ink-muted); }
.text-white { color: var(--white); }

/* Glassmorphism utilities */
.glass-card {
  background: var(--glass-white);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}
.glass-card-sand {
  background: var(--glass-sand);
  border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
}
