/* ============================================================
   ARAMAK Real Estate — Global Styles
   ============================================================ */

/* ── Font Face Definitions ── */
@font-face {
  font-family: 'Avenir Arabic Light';
  src: url('../fonts/avenir-arabic-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Arabic Book';
  src: url('../fonts/avenir-arabic-book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Arabic Heavy';
  src: url('../fonts/avenir-arabic-heavy.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Arabic Black';
  src: url('../fonts/avenir-arabic-black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Unified font-family with weight mapping */
@font-face {
  font-family: 'Avenir Arabic';
  src: url('../fonts/avenir-arabic-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Arabic';
  src: url('../fonts/avenir-arabic-book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Arabic';
  src: url('../fonts/avenir-arabic-heavy.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Arabic';
  src: url('../fonts/avenir-arabic-black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Body ── */
body {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-ivory-light);
  overflow-x: hidden;
}

/* ── Headings ── */
h1 { font-size: var(--fs-h1); font-weight: 900; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-tight); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-tight); }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-tight); }

/* ── Links ── */
a {
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

/* ── Selection ── */
::selection {
  background: var(--color-gold);
  color: var(--color-white);
}

/* ── Container ── */
.container {
  width: var(--container-main);
  margin-inline: auto;
}

.container--content {
  width: var(--container-content);
  margin-inline: auto;
}

.container--narrow {
  width: var(--container-narrow);
  margin-inline: auto;
}

.container--wide {
  width: var(--container-wide);
  margin-inline: auto;
}

/* ── Section spacing ── */
.section {
  padding-block: var(--space-3xl);
}

.section--sm {
  padding-block: var(--space-xl);
}

.section--lg {
  padding-block: var(--space-4xl);
}

/* ── Section backgrounds ── */
.bg-green {
  background-color: var(--color-green);
  color: var(--color-ivory);
}

.bg-ivory {
  background-color: var(--color-ivory);
}

.bg-ivory-light {
  background-color: var(--color-ivory-light);
}

/* ── Utility classes ── */
.text-center { text-align: center; }
.text-start  { text-align: start; }
.text-gold   { color: var(--color-gold); }
.text-ivory  { color: var(--color-ivory); }
.text-green  { color: var(--color-green); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Body scroll lock for mobile nav ── */
body.nav-open {
  overflow: hidden;
}

/* ── Image utility ── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Decorative line utility ── */
.deco-line {
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
}

.deco-line--center {
  margin-inline: auto;
}

/* ── Animation utility (initially hidden for scroll reveal) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
