:root {
  --bg: #f6f2ec;
  --bg-alt: #ffffff;
  --primary: #0f766e;   /* deep teal */
  --accent: #b45309;    /* warm accent */
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, #fdfdfc, #f6f2ec);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 236, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo img {
  height: 72px;      /* bigger logo */
  width: auto;
}

/* Optional: slightly smaller on mobile so it doesn’t dominate */
@media (max-width: 760px) {
  .brand-logo img {
    height: 60px;
  }
}

.brand-text h1 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.18s ease;
}
.nav-links a.active {
  color: #111827;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-switch {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-switch:hover {
  background: #111827;
  color: #f9fafb;
}

.nav-cta {
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #111827;
  color: #f9fafb;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.4);
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 20px 60px rgba(15, 118, 110, 0.5);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }

#nav-check { display: none; }

#nav-check:checked ~ .nav-right .nav-links {
  display: flex;
}

#nav-check:checked ~ .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#nav-check:checked ~ .nav-toggle span:nth-child(2) {
  opacity: 0;
}
#nav-check:checked ~ .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero / Intro */
main {
  flex: 1;
}

.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.6rem 1.4rem 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.18;
  margin-bottom: 0.9rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-text {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.1rem;
}

.hero-mission {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--primary);
  font-size: 0.84rem;
  margin-bottom: 1.5rem;
}

.hero-mission strong {
  color: #111827;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ecfeff;
  box-shadow: 0 18px 45px rgba(15, 118, 110, 0.45);
}

.btn-primary:hover {
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(15, 118, 110, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.4);
}

.btn-secondary:hover {
  background: rgba(15, 118, 110, 0.04);
  transform: translateY(-1px);
}

.hero-meta {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta-item {
  padding-left: 0.9rem;
  border-left: 2px solid rgba(148, 163, 184, 0.6);
  max-width: 13.5rem;
}

.hero-meta-item strong {
  display: block;
  font-size: 0.9rem;
  color: #111827;
  margin-bottom: 0.15rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-alt);
  border-radius: 28px;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
}

.hero-card img {
  border-radius: 22px;
}

.hero-tag {
  position: absolute;
  bottom: 1rem;
  left: -0.5rem;
  transform: translateY(50%);
  background: #111827;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.6);
}

.hero-tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: conic-gradient(from 90deg, #ce1126 0 33%, #ffffff 33% 66%, #000000 66% 100%);
}

/* Sections */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.8rem 1.4rem 2.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.6rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 32rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  font-size: 0.78rem;
  color: var(--muted);
}

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.9);
}

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
  font-size: 0.93rem;
  color: var(--muted);
}

.card-meta {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #111827;
}

/* Mission stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.stat {
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e5e7eb;
  padding: 1rem 1.1rem;
  font-size: 0.84rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
}

.stat span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.stat strong {
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 1.9rem;
  margin-top: 1.6rem;
}

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  font-size: 0.92rem;
}

.contact-row {
  margin-bottom: 1rem;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-row a {
  color: var(--primary);
  font-weight: 500;
}

form {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

.form-title {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #111827;
}

.form-row {
  margin-bottom: 0.95rem;
}

label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.98);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-helper {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.btn-submit {
  margin-top: 0.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.7rem;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-submit:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(15, 118, 110, 0.5);
}

/* Footer */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.26);
  padding: 1.9rem 1.4rem 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: #eef2f7;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
}

.footer-inner strong {
  color: #111827;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.1rem;
  }
  .hero-tag {
    left: 0.5rem;
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav {
    padding-inline: 1.1rem;
  }

  .nav-right {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(246, 242, 236, 0.98);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    min-width: 210px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ===== RTL overrides for Arabic page ===== */

html[dir="rtl"] body {
  background: radial-gradient(circle at top left, #fdfdfc, #f6f2ec);
}

html[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-right {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .hero {
  /* keep columns order (text then image) but RTL text naturally */
}

html[dir="rtl"] .hero-meta-item {
  border-left: none;
  padding-left: 0;
  border-right: 2px solid rgba(148, 163, 184, 0.6);
  padding-right: 0.9rem;
}

html[dir="rtl"] .hero-tag {
  left: auto;
  right: -0.5rem;
}
html {
  scroll-behavior: smooth;
}

html[dir="rtl"] .section-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .pill-row {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

html[dir="rtl"] .stats-row {
  direction: rtl;
}

html[dir="rtl"] .contact-grid {
  direction: rtl;
}

html[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}

@media (max-width: 760px) {
  html[dir="rtl"] .nav-links {
    left: 0;
    right: auto;
    align-items: flex-start;
  }

  html[dir="rtl"] .nav-toggle span {
    right: 0;
    left: auto;
  }

  html[dir="rtl"] #nav-check:checked ~ .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
  }
  html[dir="rtl"] #nav-check:checked ~ .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(45deg);
  }
}
