:root {
  --bg-dark: #0d1117;
  --bg-dark-2: #151a23;
  --bg-light: #f7f5f0;
  --card: #1a2029;
  --gold: #af976f;
  --gold-dim: #8a7354;
  --text-light: #f3efe6;
  --text-muted: #aab0bc;
  --text-dark: #22262e;
  --text-dark-muted: #5b6270;
  --border: rgba(201, 162, 75, 0.25);
  --radius: 10px;
  --max-width: 1180px;
  --font: 'Tajawal', 'Segoe UI', sans-serif;
}

/* Consent controls share the site's restrained gold and charcoal palette. */
.consent-dialog {
  margin: auto;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text-dark);
  box-shadow: 0 24px 80px #0d111744;
  font-family: var(--font);
}
.consent-dialog::backdrop { background: #0d1117b8; }
.consent-dialog h2 { font-size: 1.6rem; margin-bottom: 16px; }
.consent-status { margin-top: 12px; font-weight: 700; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.consent-choice, .consent-settings {
  font: 700 1rem var(--font);
  cursor: pointer;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 20px;
}
.consent-choice { background: var(--bg-dark); color: var(--text-light); min-height: 48px; }
.consent-choice:hover { background: var(--bg-dark-2); }
.consent-settings { display: block; margin: 20px auto; background: var(--bg-light); color: var(--text-dark); }
.consent-choice:focus-visible, .consent-settings:focus-visible { outline: 3px solid var(--gold-dim); outline-offset: 4px; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.eyebrow.center { text-align: center; }

h1, h2, h3 { font-weight: 900; line-height: 1.35; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 18px; }
h2.center { text-align: center; margin-bottom: 44px; }
.gold { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 2px solid transparent;
}
.btn-gold {
  background: linear-gradient(135deg, #c9b48f, var(--gold));
  color: #1a1407;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,162,75,.35); }
.btn-outline {
  border-color: var(--gold);
  color: var(--text-light);
}
.btn-outline:hover { background: rgba(201,162,75,.12); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
}
.brand-logo { height: 46px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s;
  position: relative;
}
.main-nav a:hover { color: var(--gold); }
.nav-cta { font-size: 0.9rem; padding: 10px 24px; white-space: nowrap; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--gold); display: block;
}

/* HERO */
.hero {
  position: relative;
  color: var(--text-light);
  overflow: hidden;
}
.hero { min-height: 92vh; display: flex; align-items: center; justify-content: flex-start; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(10,13,18,.95) 15%, rgba(10,13,18,.78) 55%, rgba(10,13,18,.35) 100%);
}
.hero-bottom-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,13,18,.92) 0%, rgba(10,13,18,0) 35%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; padding-block: 80px; margin-inline: 0; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero-text { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* HERO STATS (overlaid at bottom of hero image) */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.stat-number {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* SECTIONS */
.section { padding-block: 90px; }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.section-dark .eyebrow { color: var(--gold); }
.section-dark h2 { color: var(--text-light); }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-image img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.about-copy p { color: var(--text-dark-muted); margin-bottom: 20px; }
.vision-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.vm-card {
  background: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.vm-card h3 { color: var(--gold); margin-bottom: 10px; font-size: 1.1rem; }
.vm-card p { color: var(--text-muted); font-size: 0.92rem; }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.service-card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.service-card h3 span { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }
.service-card li {
  color: var(--text-muted);
  padding-block: 7px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 0.92rem;
}
.service-card li:first-child { border-top: none; }

/* GOALS */
.goals-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.goals-image img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.goals-list { counter-reset: goal; }
.goals-list li {
  counter-increment: goal;
  position: relative;
  padding-inline-start: 44px;
  margin-bottom: 22px;
  color: var(--text-dark-muted);
}
.goals-list li::before {
  content: counter(goal);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1407;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.goals-list strong { color: var(--text-dark); }

/* BADGES / PARTNERS */
.badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.badges-row img { height: 70px; width: auto; object-fit: contain; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
  justify-items: center;
}
.partners-grid img {
  max-height: 60px;
  width: auto;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .2s ease, opacity .2s ease;
}
.partners-grid img:hover { filter: grayscale(0); opacity: 1; }

/* FOOTER */
.site-footer {
  background: rgba(250, 248, 244, 0.96);
  color: var(--text-dark-muted);
  padding-block: 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { height: 36px; }
.footer-map { color: var(--text-dark); text-decoration: underline; }
.footer-map:hover { color: var(--gold-dim); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid, .goals-grid { grid-template-columns: 1fr; }
  .goals-image, .about-image { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #faf8f4;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
    padding: 12px 24px 24px;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    box-shadow: 0 16px 24px rgba(0,0,0,.08);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(0,0,0,.08); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-mission { grid-template-columns: 1fr; }
  .badges-row { gap: 30px; padding: 28px; }
  .badges-row img { height: 50px; }
  .hero-stats { gap: 8px 20px; padding-block: 14px 18px; }
}
