/* ═══════════════════════════════════════════════════
   MUSTAQBAL — Arabic / RTL CSS
   Nav: LTR (unchanged from original)
   Hero → Footer: RTL layout
   ═══════════════════════════════════════════════════ */

@font-face {
  font-family: 'Saans';
  src: url('/assets/fonts/Saans-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'tajawal';
  src: url('/assets/fonts/Tajawal-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'jh';
  src: url('/assets/fonts/jh-medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ── CUSTOM PROPERTIES ── */
:root {
  --warm-brown: #3e443c;
  --dark-brown: #707c6d;
  --light-sand: #dceaeb;
  --cream: #e3e3e3;
  --gold: #5a5e5a;
  --gold-light: #dceaeb;
  --white: #ffffff;
  --text-dark: #3e443c;
  --text-mid: #5a5e5a;

  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(2rem, 4vw, 4rem);
  --space-xl: clamp(3rem, 6vw, 6rem);
  --space-2xl: clamp(4rem, 8vw, 8rem);

  --section-pad-x: clamp(1.25rem, 6vw, 8rem);
  --section-pad-y: clamp(4rem, 8vw, 8rem);

  --nav-h: 7rem;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* RTL for entire document except nav (overridden below) */
  direction: rtl;
}

body {
  font-family: 'saans', Georgia, serif;
  background: var(--light-sand);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

@font-face {
  font-family: 'saans';
  src: url('assets/fonts/Saans-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'jh';
  src: url('assets/fonts/jh-medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ════════════════════════════════════════
   VIDEO
   ════════════════════════════════════════ */
.video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
.video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ════════════════════════════════════════
   NAV — LTR, UNCHANGED FROM ORIGINAL
   ════════════════════════════════════════ */
#navbar {
  direction: ltr; /* force LTR for nav */
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-pad-x);
  height: var(--nav-h);
  background: var(--dark-brown);
}

.nav-side {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-side--left {
  justify-content: flex-start;
}

.nav-side--right {
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(0.5rem, 2vw, 2rem);
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  width: 80px;
  height: auto;
  transition: opacity 0.3s;
}

.nav-logo img:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: clamp(0.65rem, 1vw, 0.78rem);
  /* letter-spacing: 0.15em; */
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: clamp(0.8rem, 0.9vw, 0.72rem);
  /* letter-spacing: 0.2em; */
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-lang:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.nav-toggle--mobile {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  border-radius: 3px;
  padding: 0;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.nav-toggle--mobile:hover {
  border-color: rgba(255,255,255,0.6);
}

.nav-toggle--mobile span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle--mobile.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle--mobile.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle--mobile.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile menu — slides from LEFT for RTL ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%; /* RTL: slides in from left */
  right: auto;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--dark-brown);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  transition: left 0.4s var(--ease-out);
  box-shadow: 8px 0 40px rgba(0,0,0,0.4); /* shadow flipped for LTR side */
}

.mobile-menu.open { left: 0; }

.mobile-menu ul { list-style: none; }

.mobile-menu ul li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu ul li:last-child { border-bottom: none; }

.mobile-menu ul a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'tajawal', serif;
  font-size: 1.2rem;
  /* letter-spacing: 0.05em; */
  padding: 1.25rem 0;
  transition: color 0.3s, padding-right 0.3s;
  text-align: right;
}
.mobile-menu ul a:hover {
  color: var(--white);
  padding-right: 0.5rem;
}

.mobile-close {
  position: absolute;
  top: 1.5rem; left: 1.5rem; /* flipped: close button on left */
  right: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.mobile-close:hover {
  border-color: var(--white);
  color: var(--white);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ════════════════════════════════════════
   HERO — RTL layout (content on right)
   ════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start; /* RTL: content anchored to right */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, rgba(30,22,14,0.45) 0%, rgba(61,50,40,0.25) 50%, rgba(30,22,14,0.58) 100%);
  z-index: 1;
}

/* Waves flipped to bottom-right for RTL */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("/assets/images/Asset 3mustaqbal1.png");
  background-repeat: no-repeat;
  background-position: bottom right; /* RTL: bottom right */
  background-size: 400px;
  opacity: 0.6;
  pointer-events: none;
  transform: scaleX(-1); /* mirror the wave graphic */
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 var(--section-pad-x) clamp(3rem, 8vh, 6rem);
  max-width: 90vw;
  text-align: right; /* RTL text alignment */
}

.hero-tag {
  display: inline-block;
  font-family: 'tajawal', serif;
  font-size: 1.2rem;;
  /* letter-spacing: 0.1em; */
  font-weight: 700;
  color: var(--white);
  margin-bottom: clamp(1rem, 3vh, 2rem);
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-h1 {
  font-family: 'tajawal', serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.4;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
  margin-bottom: clamp(1.25rem, 3vh, 1.8rem);
}
.hero-h1 span { color: var(--gold-light); }

.hero-cta {
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start; /* RTL: align right */
}

.btn-primary {
  display: inline-block;
  background: var(--dark-brown);
  color: var(--white);
  text-decoration: none;
  padding: clamp(0.7rem,1.5vw,0.85rem) clamp(1.5rem,3vw,2.5rem);
  font-family: 'tajawal', serif;
  font-size: 1rem;
  font-weight: 400;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--warm-brown); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  padding: clamp(0.7rem,1.5vw,0.85rem) clamp(1.5rem,3vw,2.5rem);
  font-family: 'tajawal', serif;
  font-size: 1rem;
  /* letter-spacing: 0.1em; */
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); font-weight: 700; transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

/* Scroll hint — centered */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}
.scroll-hint span {
  font-family: 'jh', serif;
  font-size: 0.7rem;
  /* letter-spacing: 0.15em; */
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s infinite;
}

.hero-mobile-text { display: none; }

/* ════════════════════════════════════════
   IMTIAZ BAND
   ════════════════════════════════════════ */
.imtiaz {
  background-color: var(--dark-brown);
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.imtiaz-one { display: none; }

.imtiaz img { width: 200px; }

.imtiaz::after {
  content: '';
  position: absolute;
  top: 10%; left: 0; /* RTL: pattern on left side */
  right: auto;
  width: 500px; height: 250px;
  opacity: 0.3;
  background-image: url('/assets/images/icon.png');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
  /* transform: scaleX(-1); */
}

.imtiaz-text {
  font-family: 'tajawal', serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 2;
  width: 620px;
  margin: 30px 0;
  text-align: center;
}

/* ════════════════════════════════════════
   WHAT IS MUSTAQBAL — RTL grid flipped
   ════════════════════════════════════════ */
#what {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* RTL: text on left (first column), image on right (second) */
  grid-template-areas: "text image";
  min-height: 80vh;
}

.what-image {
  grid-area: image;
  position: relative;
  overflow: hidden;
}
.what-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.what-image:hover img { transform: scale(1.04); }
.what-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, rgba(122,107,90,0.3), transparent);
  pointer-events: none;
}

.what-text {
  grid-area: text;
  background: var(--cream);
  padding: clamp(3rem,8vw,7rem) clamp(1.5rem,6vw,5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

/* Section label — RTL: line on right */
.section-label {
  font-family: 'tajawal', serif;
  font-size: 1rem;
  font-weight: 400;
  /* letter-spacing: 0.15em; */
  color: var(--dark-brown);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* RTL: right-aligned */
  gap: 1rem;
  flex-direction: row-reverse; /* RTL: line appears on right */
}

.section-label-white {
  font-family: 'tajawal', serif;
  font-size: 1rem;
  font-weight: 400;
  /* letter-spacing: 0.15em; */
  color: white;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* RTL: right-aligned */
  gap: 1rem;
  flex-direction: row-reverse; /* RTL: line appears on right */
}
.section-label-white::after {
  content: '';
  width: 30px; height: 1px;
  background: #ffffff;
  flex-shrink: 0;
}


.section-label-noline {
  font-family: 'tajawal', serif;
  font-size: 1rem;
  font-weight: 400;
  /* letter-spacing: 0.15em; */
  color: var(--dark-brown);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center; /* RTL: right-aligned */
  gap: 1rem;
  flex-direction: row-reverse; /* RTL: line appears on right */
}


.section-label::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--dark-brown);
  flex-shrink: 0;
}

.what-text h2 {
  font-family: 'tajawal', serif;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--warm-brown);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.what-text p {
  font-family: 'tajawal', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 1.2rem;
}

/* ════════════════════════════════════════
   IMAGE STRIP
   ════════════════════════════════════════ */
.image-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(200px, 40vw, 55vh);
}
.strip-item {
  overflow: hidden;
  position: relative;
}
.strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.strip-item:hover img { transform: scale(1.06); }
.strip-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61,50,40,0.15);
  transition: background 0.4s var(--ease);
  pointer-events: none;
}
.strip-item:hover::after { background: rgba(61,50,40,0.05); }

/* ════════════════════════════════════════
   THE PROMISE — RTL
   ════════════════════════════════════════ */
#promise {
  background: var(--cream);
  padding: var(--section-pad-y) var(--section-pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#promise::before {
  content: 'مستقبل';
  position: absolute;
  font-family: 'jh', serif;
  font-size: clamp(10rem, 25vw, 30rem);
  color: rgba(122,107,90,0.04);
  top: 25%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
}
#promise > * { position: relative; z-index: 1; }
#promise .section-label {
  justify-content: center;
  flex-direction: row; /* centered: both directions balanced */
}
#promise .section-label::before { display: none; }
#promise h2 {
  font-family: 'tajawal', serif;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--warm-brown);
  margin-bottom: 60px;
  line-height: 1.5;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  max-width: 900px;
  margin: 0 auto;
}
.pillar {
  background: var(--dark-brown);
  padding: clamp(2rem,4vw,4rem) clamp(1.25rem,2.5vw,2.5rem);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
  text-align: center; /* RTL: centered in pillar */
}
.pillar.reveal.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pillar-number {
  font-family: 'tajawal', serif;
  font-size: clamp(3rem,6vw,5rem);
  font-weight: 400;
  color: #ffffff10;
  position: absolute;
  top: -0.1rem; left: 1rem; /* RTL: number on left */
  right: auto;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.nav-links a{
    font-size: 1rem;
    font-family: 'tajawal', serif;
    font-weight: 600;
}
.pillar h3 {
  font-family: 'tajawal', serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 1rem;
  /* letter-spacing: 0.05em; */
}
.pillar p {
  font-family: 'tajawal', serif;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
/* .pillar-text { letter-spacing: 0.05em; } */

.promise-footer { margin-top: 60px; }
.promise-intro {
  max-width: 650px;
  margin: auto;
  font-family: 'tajawal', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 2;
}

/* ════════════════════════════════════════
   CEO QUOTE — RTL (logo on left, text on right)
   ════════════════════════════════════════ */
#quote {
  background-color: var(--dark-brown);
  min-height: clamp(400px, 60vh, 80vh);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--section-pad-x);
}
.quote-inner {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse; /* RTL: logo on left, text on right */
  position: relative;
  z-index: 1;
}
.quote-logo { flex-shrink: 0; }
.quote-logo img {
  width: clamp(120px,15vw,250px);
  height: auto;
  margin-left: clamp(1.5rem,3vw,3rem); /* RTL: margin on left */
  margin-right: 0;
}
.vertical-line {
  width: 1px;
  height: clamp(80px,12vh,160px);
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
  margin-left: clamp(1.5rem,3vw,3rem); /* RTL */
  margin-right: 0;
}
.quote-outer {
  /* flex: 1; */
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right; /* RTL */
}
.quote-text {
  font-family: 'tajawal', serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 2;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}
.quote-name {
  font-family: 'tajawal', serif;
  font-size: 1rem;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start; /* RTL */
  gap: 0.4rem;
}
.quote-title {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

/* ════════════════════════════════════════
   FUTURE INITIATIVES — RTL
   ════════════════════════════════════════ */
#future {
  padding: var(--section-pad-y) var(--section-pad-x);
  height: 75vh;
  background: var(--cream);
  display: flex;
  justify-content: center;
  align-items: center;
}
.future-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,5rem);
  align-items: start;
}
#future h2 {
  font-family: 'tajawal', serif;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--warm-brown);
  line-height: 1.5;
  text-align: right;
}
.future-desc {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(1rem,3vw,2rem);
  text-align: right;
}
.future-desc p {
  font-family: 'tajawal', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 1rem;
}
.future-desc strong {
  font-weight: 600;
  color: var(--dark-brown);
}

/* ════════════════════════════════════════
   CONTACT — RTL
   ════════════════════════════════════════ */
#contact {
  background: var(--dark-brown);
  padding: var(--section-pad-y) var(--section-pad-x);
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#contact::after {
  content: '';
  position: absolute;
  top: 10%; left: 0; /* RTL: pattern on left */
  right: auto;
  width: 400px; height: 200px;
  opacity: 0.3;
  background-image: url('/assets/images/icon.png');
  background-size: cover;
  pointer-events: none;
  /* transform: scaleX(-1); */
}
.contact-inner {
  max-width: 700px;
  margin-right: 0;
  flex: 1;
  /* margin-left: auto; */
  position: relative;
  z-index: 1;
  text-align: right;
}
#contact .section-label {
  color: var(--white);
  justify-content: flex-end;
}
#contact .section-label::before { background: var(--white); }
#contact h2 {
  font-family: 'tajawal', serif;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
#contact p {
  font-family: 'tajawal', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  line-height: 2;
  margin-bottom: 3rem;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-family: 'saans', serif;
  /* letter-spacing: 0.03em; */
  border-bottom: 1px solid var(--white);
  padding-bottom: 0.5rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  word-break: break-all;
  flex-direction: row-reverse; /* RTL: icon after text */
}
.contact-email:hover { color: var(--white); border-color: var(--white); }
.contact-email svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   FOOTER — RTL
   ════════════════════════════════════════ */
footer {
  background: var(--warm-brown);
  padding: clamp(1.5rem,3vw,3rem) var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: row-reverse; /* RTL: Arabic text on left, English on right */
}
.footer-copy {
  font-family: 'tajawal', serif;
  font-size: clamp(0.5rem, 1.5vw, 0.8rem);
  color: var(--white);
  /* letter-spacing: 0.05em; */
}
.footer-en {
  font-family: 'saans', sans-serif;
  font-size: clamp(0.65rem,1vw,0.7rem);
  color: rgba(255,255,255,0.7);
  /* letter-spacing: 0.1em; */
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%     { opacity: 0.8; transform: scaleY(0.7); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ════════════════════════════════════════ */
/* @media (max-width: 1024px) {
  .nav-links { gap: 1.5rem; }
  #what { grid-template-columns: 1fr 1fr; min-height: 60vh; }
  .pillars { max-width: 100%; }
  .future-top { gap: 2.5rem; }
  .quote-text { font-size: clamp(0.9rem, 1.5vw, 1.1rem); }
} */

/* ════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 900px)
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --nav-h: 85px; }

  #navbar {
    height: 85px;
    padding: 0 1.5rem;
    background: var(--dark-brown) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links { display: none; }
  .nav-toggle--mobile { display: flex; }

  .nav-side--right {
    gap: 0;
    justify-content: flex-end;
  }

  .imtiaz { display: none; }
  .imtiaz-one {
    background-color: var(--dark-brown);
    position: relative;
    padding: 48px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .imtiaz-text { width: 500px; }
  .imtiaz-one img { width: 150px; }
  .imtiaz::after { width: 200px; height: 100px; }
  #promise::before { top: 15%; }
  #contact::after { width: 200px; height: 100px; }

  #hero {
    position: relative;
    height: 56.25vw;
    min-height: unset;
  }
  #hero .hero-content,
  #hero .hero-overlay,
  #hero .hero-waves,
  #hero .scroll-hint { display: none; }

  .video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .video-bg video { width: 100%; height: 100%; object-fit: cover; }

  /* Mobile hero text — RTL */
  .hero-mobile-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--dark-brown);
    padding: 3rem 2rem;
  }
  .hero-mobile-text .hero-tag {
    opacity: 1; animation: none;
    font-family: 'tajawal', serif;
    font-size: 1rem;
    /* letter-spacing: 0.1em; */
    font-weight: 400;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.25rem; display: inline-block;
  }
  .hero-mobile-text .hero-h1 {
    opacity: 1; animation: none;
    font-family: 'tajawal', serif; font-weight: 400;
    font-size: 2.5rem; line-height: 1.5;
    color: var(--white); margin-bottom: 1.75rem; text-align: center;
  }
  .hero-mobile-text .hero-h1 span { color: var(--gold-light); }
  .hero-mobile-text .hero-cta {
    opacity: 1; animation: none;
    display: flex; flex-direction: row; justify-content: center;
    gap: 1rem; width: 100%; flex-wrap: wrap;
  }
  .hero-mobile-text .btn-primary,
  .hero-mobile-text .btn-ghost { text-align: center; padding: 0.9rem 2rem; font-size: 1rem; }
  .hero-mobile-text .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }

  /* Layouts */
  #what {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
    min-height: auto;
  }
  .what-text { text-align: right; }
  .what-image { height: clamp(250px, 50vw, 400px); }
  .image-strip { grid-template-columns: 1fr; height: auto; }
  .strip-item { height: clamp(200px, 50vw, 350px); }
  .pillars { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  /* Quote: stack vertically, logo on top */
  .quote-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
  }
  .quote-logo { margin-left: 0; }
  .quote-logo img { margin: 0 auto; }
  .vertical-line { width: clamp(60px,20vw,120px); height: 1px; margin: 0; }
  .quote-outer { max-width: 100%; align-items: center; text-align: center; }
  .quote-name { justify-content: center; }

  .future-top { grid-template-columns: 1fr; gap: 2rem; }
  #future { height: auto; }
  /* #future h2, .future-desc { text-align: center; } */
  .contact-inner { margin: 0 auto; text-align: right; }
  #contact .section-label { justify-content: center; }

  footer { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
}

/* ════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 600px)
   ════════════════════════════════════════ */
@media (max-width: 600px) {
  #navbar { padding: 0 1.25rem; }
  .nav-logo img { width: 70px; }

  #hero {
    position: relative;
    height: 56.25vw;
    min-height: unset;
    margin-top: 0;
  }

  .hero-mobile-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--dark-brown);
    padding: 2.5rem 1.25rem;
  }

  .what-text h2, #promise h2{
    font-size: 1.5rem;
  }

#future h2, #contact h2 {
    font-size: 1.5rem;
    text-align: right;
}

.hero-mobile-text .hero-h1{
    font-size: 1.5rem;
}


  .pillar h3{
    font-size: 1.6rem;
  }

  .hero-mobile-text .hero-tag {
    font-size: 1rem;
  }

  .imtiaz-text{
    max-width: 95%;
  }

  .what-text p, .imtiaz-text, .promise-intro, .quote-text, .future-desc p, #contact p  {
    font-size: 1rem;
  }

  .quote-name{
    font-size: 1rem;
    width: 100%;
  }

  .quote-title{
    font-size: 0.8rem;
  }

  .quote-logo img{
    width: 100px;
  }

  .future-desc p, #contact p  {
    text-align: right;
  }

.name{
  white-space: nowrap ;
  display: inline-block;
}


  .hero-mobile-text .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-mobile-text .btn-primary,
  .hero-mobile-text .btn-ghost {
    width: 100%; text-align: center;
    padding: 0.9rem 1.5rem; font-size: 1rem;
  }

  .what-text { padding: 2.5rem 1.25rem; }
  #promise { padding: var(--section-pad-y) 1.25rem; }
  #promise h2 br { display: none; }
  #quote { padding: 3rem 1.25rem; min-height: auto; }
  #future, #contact { padding: var(--section-pad-y) 1.25rem; }
  footer { padding: 2rem 1.25rem; }
}

/* ════════════════════════════════════════
   RESPONSIVE — Extra Small (≤ 400px)
   ════════════════════════════════════════ */
@media (max-width: 400px) {
  .hero-h1 { font-size: 1.6rem; }
  .hero-tag { font-size: 0.6rem; }
  .what-image { height: 200px; }
}


/* ════════════════════════════════════════
   PRINT
   ════════════════════════════════════════ */
@media print {
  #navbar, .mobile-menu, .mobile-overlay, .scroll-hint { display: none !important; }
  body { background: white; color: black; }
  #hero { height: auto; padding: 2rem; background: #3d3228; }
  .hero-overlay, .hero-waves { display: none; }
  .hero-content { position: static; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 0.75rem; color: #666; }
}


/* =========================
   FORM BASE
========================= */

.mustaqbal-form {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mustaqbal-form__wrapper {
  width: 100%;
  max-width: 640px;

  display: flex;
  flex-direction: column;
  gap: 1px; /* cleaner than mixing margins everywhere */
}

/* =========================
   ROWS
========================= */

.mustaqbal-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 4px;
}

/* mobile stacking handled later */
.mustaqbal-form__field--full {
  grid-column: 1 / -1;
}

/* =========================
   FIELD
========================= */

.mustaqbal-form__field {
  display: flex;
  flex-direction: column;

  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.15);

  padding: 1rem 1.25rem 0.75rem;

  transition: background 0.25s, border-color 0.25s;

  margin: 0; /* IMPORTANT: remove conflicting spacing */
}

.mustaqbal-form__field:focus-within {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* LABEL */

.mustaqbal-form__field label {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.5);

  margin-bottom: 0.4rem;
  font-weight: 600;
}

/* INPUT */

.mustaqbal-form__field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;

  color: var(--white);

  font-family: 'saans', serif;
  font-size: 0.9rem;
  font-weight: 300;
}

.mustaqbal-form__field input::placeholder {
  color: rgba(255,255,255,0.25);
}

/* =========================
   SUBMIT
========================= */

.mustaqbal-form__submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  margin-top: 1.75rem;
}

.mustaqbal-form__button {
  width: 220px;

  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.15);

  padding: 1rem 1.25rem 0.75rem;

  color: var(--white);

  font-family: 'saans', serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  cursor: pointer;

  transition: 0.25s;
}

.mustaqbal-form__button:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
}

.mustaqbal-form__button:active {
  transform: scale(0.98);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {


  #contact{
    flex-direction: column;
  }

  .mustaqbal-form {
    padding: 2rem 1.25rem; /* prevents edge touching screen */
  }

  .mustaqbal-form__wrapper {
    max-width: 100%;
    /* gap: 6px; */
  }

  .mustaqbal-form__row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 6px;
  }

  .mustaqbal-form__field {
    padding: 0.95rem 1rem 0.75rem;
  }

  .mustaqbal-form__field label {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }

  .mustaqbal-form__field input {
    font-size: 0.88rem;
  }

  .mustaqbal-form__submit-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.25rem;
  }

  .mustaqbal-form__button {
    width: 100%;
    padding: 0.95rem 1rem 0.75rem;
    font-size: 0.55rem;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

  .mustaqbal-form {
    padding: 2rem 1rem;
  }

  .mustaqbal-form__field {
    padding: 0.85rem 0.9rem 0.7rem;
  }

  .mustaqbal-form__field label {
    font-size: 0.5rem;
    letter-spacing: 0.15em;
  }

  .mustaqbal-form__field input {
    font-size: 0.85rem;
  }

  .mustaqbal-form__button {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
  }
}





.form-popup {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1.5rem;

  background: rgba(20, 24, 20, 0.45);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);

  z-index: 9999;
}

.form-popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* POPUP BOX */

.form-popup__content {
  width: 100%;
  max-width: 420px;

  background: rgba(112, 124, 109, 0.96); /* dark-brown */

  border: 1px solid rgba(255,255,255,0.12);

  border-radius: 18px;

  padding: 2rem 1.75rem;

  text-align: center;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.04);

  transform: translateY(20px) scale(0.98);

  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease);

  position: relative;

  overflow: hidden;
}

.form-popup.show .form-popup__content {
  transform: translateY(0) scale(1);
}

/* subtle pattern glow */

.form-popup__content::after {
  content: '';

  position: absolute;
  top: -40%;
  right: -20%;

  width: 240px;
  height: 240px;

  background: radial-gradient(
    circle,
    rgba(255,255,255,0.06),
    transparent 70%
  );

  pointer-events: none;
}

/* MESSAGE */

.form-popup__content p {
  margin: 0;

  color: var(--white);

  font-family: 'saans', serif;

  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;

  letter-spacing: 0.02em;

  position: relative;
  z-index: 2;
}

/* BUTTON */

.form-popup__content button {
  margin-top: 1.75rem;

  min-width: 140px;

  background: rgba(255,255,255,0.08);

  border: 0.5px solid rgba(255,255,255,0.18);

  padding: 0.95rem 1.4rem 0.8rem;

  color: var(--white);

  font-family: 'saans', serif;
  font-size: 0.58rem;
  font-weight: 600;

  letter-spacing: 0.25em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;

  position: relative;
  z-index: 2;
}

.form-popup__content button:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}

.form-popup__content button:active {
  transform: scale(0.98);
}

/* MOBILE */

@media (max-width: 600px) {
  .form-popup {
    padding: 1rem;
  }

  .form-popup__content {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .form-popup__content p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .form-popup__content button {
    width: 100%;
  }
}


.form-popup__content {
  text-align: center;
  direction: rtl;
}

/* Better Arabic font spacing */
.form-popup__content p {
  font-family: 'tajawal', -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.9;
}

/* Button stays balanced in RTL */
.form-popup__content button {
  font-family: 'tajawal', -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0.1em;
}