:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe6ef;
  --brand: #0ea5b7;
  --brand-2: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

body.dark {
  --bg: #08131a;
  --surface: #0f1d27;
  --surface-2: #102330;
  --text: #e5eef7;
  --muted: #a4b5c6;
  --border: #1f3648;
  --brand: #22d3ee;
  --brand-2: #fbbf24;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

body.arabic {
  font-family: "Cairo", "Manrope", system-ui, sans-serif;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 40%),
    radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 35%);
}

.container { width: min(1120px, 92%); margin: 0 auto; }
a { color: inherit; text-decoration: none; }

.topbar {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}
.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  font-size: 14px;
}
.topbar-text { color: var(--muted); margin: 0; }
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}
.topbar-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.topbar-text,
.topbar-contacts a {
  white-space: nowrap;
}
.topbar-contacts { display: flex; gap: 16px; flex-wrap: nowrap; }
.topbar-contacts a:hover { color: var(--brand); }

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 240px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.brand-name { margin: 0; font-weight: 800; }
.brand-sub { margin: 0; font-size: 12px; color: var(--muted); }

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.menu li { flex: 0 0 auto; }
.menu a {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 8px;
  background: var(--brand);
  transition: width 0.25s ease;
}
.menu a:hover,
.menu a.active { color: var(--text); }
.menu a:hover::after,
.menu a.active::after { width: 100%; }

.nav-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}
.call-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.menu-btn,
.theme-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}
.menu-btn { display: none; }
.theme-btn:hover,
.menu-btn:hover { border-color: var(--brand); color: var(--brand); }

.hero { padding: 40px 0 40px; }
.hero-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  display: inline-block;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand);
}
h1, h2, h3 { line-height: 1.2; margin: 10px 0; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
.hero-text { color: var(--muted); max-width: 62ch; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #06708f));
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stats article {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stats h3 { margin: 0; color: var(--brand); }
.stats p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.hero-card,
.panel,
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hero-card img {
  width: 100%;
  height: clamp(300px, 34vw, 430px);
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-card-info { padding: 18px; }
.hero-card-info p { margin: 0; color: var(--muted); }

.section { padding: 72px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 22px; }

.split {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel { padding: 24px; }
.panel p { color: var(--muted); }

.checklist {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.value-grid article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.value-grid h3 { margin: 0 0 6px; font-size: 1rem; }
.value-grid p { margin: 0; font-size: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card { padding: 12px; }
.card-media {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.steps li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
}
.steps span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.contact-list li { margin-bottom: 10px; }
.contact-list a:hover { color: var(--brand); }

.leaders-grid,
.vm-grid,
.disting-grid,
.source-grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.leaders-head,
.source-head {
  grid-column: 1 / -1;
}

.leader-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: start;
}
.leader-media {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
}

.vision-card h2,
.mission-card h2 {
  margin-top: 0;
}

.values-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.value-media-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}
.value-media-card p {
  margin: 0;
}

.steps-compact {
  margin-top: 14px;
  grid-template-columns: 1fr;
}

.full-media {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.source-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.source-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.source-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}
.source-overlay h3 {
  margin: 0;
  color: #fff;
}

.footer-grid {
  margin-bottom: 18px;
}
.footer-col h3 {
  margin-top: 0;
}

.section-head h2 {
  margin: 6px 0 0;
}
.section-head p {
  margin: 0;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
form input,
form textarea {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}
form input:focus,
form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-color: var(--brand);
}
.form-status {
  margin: 10px 0 0;
  min-height: 20px;
  color: var(--brand);
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .nav-inner,
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .split,
html[dir="rtl"] .cards,
html[dir="rtl"] .steps,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .footer-inner {
  direction: rtl;
}

html[dir="rtl"] .menu a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .checklist li {
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .checklist li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .steps span {
  margin-right: 0;
  margin-left: 10px;
}

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-inner { display: grid; grid-template-columns: auto auto auto; }
  .brand { min-width: 0; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 12px 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .menu.open { display: flex; }
  .hero-grid,
  .split,
  .cards,
  .steps,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-card { order: 1; }
  .hero-copy { order: 2; }
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
  }
  .topbar-left {
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }
  .topbar-text {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
  }
  .topbar-sub {
    width: 100%;
    text-align: center;
    font-size: 12px;
  }
  .topbar-contacts {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
    white-space: normal;
    padding-bottom: 0;
  }
  .topbar-contacts a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }
  .topbar-contacts a:last-child {
    grid-column: 1 / -1;
    word-break: break-all;
  }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav-controls { gap: 8px; }
  .call-chip {
    display: none;
  }
  .hero-card img { height: clamp(240px, 52vw, 320px); }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stats article {
    padding: 10px;
    text-align: center;
  }
  .stats p {
    font-size: 12px;
    line-height: 1.3;
  }
  .leaders-grid,
  .vm-grid,
  .values-media-grid,
  .disting-grid,
  .source-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .leader-card {
    grid-template-columns: 1fr;
  }
  .leader-media {
    height: 220px;
  }
}

@media (max-width: 1440px) {
  .call-chip {
    display: none;
  }
}

@media (max-width: 1280px) {
  .menu {
    gap: 14px;
  }
  .menu a {
    font-size: 12px;
  }
}
