/* ═══════════════════════════════════════════════════════════════════════════
   MAZIMA — Global Stylesheet
   NOVA Platform · Forehead of the NOVA Ecosystem
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  /* Brand — deeper, more authoritative */
  --green:      #004D40;
  --green-dk:   #00251D;
  --green-xdk:  #001510;
  --green-lt:   #EAF2EF;
  --green-mid:  #00695C;
  --gold:       #C49A2C;
  --gold-lt:    #F5E9C4;
  --gold-dk:    #A07820;

  /* Neutrals — warmer, less clinical */
  --ink:        #0A1612;
  --text:       #1C2E28;
  --muted:      #5A7268;
  --rule:       #C8D8D2;
  --bg:         #F8F6F1;
  --bg-warm:    #F5F2EC;
  --white:      #FFFFFF;
  --off-white:  #F5F0E8;

  /* UI */
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --shadow:     0 2px 20px rgba(0,0,0,0.09);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.18);
  --shadow-gold: 0 4px 24px rgba(196,154,44,0.22);

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Geist', system-ui, sans-serif;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0.0, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.18;
  color: var(--green-dk);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.1rem; }

p  { color: var(--text); max-width: 66ch; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-pad    { padding: 88px 0; }
.section-pad-sm { padding: 52px 0; }

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--green-xdk);
  color: rgba(255,255,255,0.55);
  font-size: 11.5px;
  font-family: var(--font-sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  height: 32px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left  { display: flex; align-items: center; gap: 24px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar a { color: rgba(255,255,255,0.50); transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar strong { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; }
.topbar .tb-dot { color: rgba(255,255,255,0.20); }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--green);
  height: 68px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 16px rgba(0,37,29,0.40);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-badge {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--green-xdk);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(196,154,44,0.35);
}
.nav-wordmark {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--white);
  letter-spacing: 0.01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  border-radius: var(--radius);
  transition: background .18s, color .18s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active,
.mobile-menu ul li a.active {
  background: rgba(255,255,255,0.10);
  color: var(--white);
}

/* Lang switcher */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-lang a {
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  border-radius: 5px;
  letter-spacing: 0.06em;
  transition: all .18s;
}
.nav-lang a:hover,
.nav-lang a.active-lang,
.mobile-menu .lang-switch a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.nav-lang .lang-ar { font-size: 13px; }

/* Donate CTA in nav */
.nav-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: var(--gold);
  color: var(--green-xdk) !important;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: filter .18s, transform .15s;
  box-shadow: 0 2px 10px rgba(196,154,44,0.30);
}
.nav-donate:hover {
  filter: brightness(1.10);
  transform: translateY(-1px);
  color: var(--green-xdk) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  font-size: 20px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s var(--ease);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Primary — gold, authoritative */
.btn-primary {
  background: var(--gold);
  color: var(--green-xdk);
  box-shadow: 0 2px 12px rgba(196,154,44,0.28);
}
.btn-primary:hover {
  filter: brightness(1.10);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Outline on dark backgrounds */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.80);
  color: var(--white);
}

/* Outline on light backgrounds */
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* Solid green */
.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

/* Ghost gold — for dark sections */
.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(196,154,44,0.50);
}
.btn-gold-outline:hover {
  background: rgba(196,154,44,0.10);
  border-color: var(--gold);
}

.btn-lg { padding: 15px 38px; font-size: 15.5px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── Section label ────────────────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ── Program icon badge ───────────────────────────────────────────────────── */
.prog-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.prog-icon svg,
.prog-icon i {
  color: var(--green);
  font-size: 22px;
}

/* ── Cost badge ───────────────────────────────────────────────────────────── */
.cost-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold-lt);
  color: var(--green-dk);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

/* ── Stats row ────────────────────────────────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-n {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.stat-l {
  font-size: 11.5px;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
}

/* ── Section backgrounds ──────────────────────────────────────────────────── */
.section-dark {
  background: var(--green-xdk);
  color: var(--white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,0.68); }

.section-green-dk { background: var(--green-dk); }
.section-green-lt { background: var(--green-lt); }
.section-warm     { background: var(--bg-warm); }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.60);
  padding: 72px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
}
.footer-badge {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--green-xdk);
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(196,154,44,0.25);
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-desc {
  color: rgba(255,255,255,0.45);
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 280px;
}
.footer-nova {
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
}
.footer-nova a { color: var(--gold); }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; font-size: 13px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,0.25);
}
.footer-lang {
  display: flex;
  gap: 4px;
}
.footer-lang a {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.30);
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: all .2s;
}
.footer-lang a:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

/* ── RTL support for Arabic ───────────────────────────────────────────────── */
[lang="ar"], [dir="rtl"] {
  direction: rtl;
  font-family: 'Geist', 'Segoe UI', Tahoma, sans-serif;
}
[dir="rtl"] .section-label::before { order: 1; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .section-label { flex-direction: row-reverse; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-lang, .nav-donate { display: none; }
  .nav-toggle {
     display: block; 
    position: absolute;
    top: 16px; right: 16px;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--green);
    padding: 16px 24px 28px;
    gap: 4px;
    z-index: 899;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-pad { padding: 56px 0; }
  .topbar { display: none; }
}
/*mobile*/
.menu-toggle, .menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile menu drawer */
/* Mobile menu drawer */

/* Active state */
.mobile-menu.active {
  right: 0;
  padding: 20px;
}

/* Ensure menu items stack vertically */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu ul li {
  width: 100%; /* full width row */
}

.mobile-menu ul li a {
  display: block; /* block-level link */
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05); /* subtle contrast row */
  border-radius: 4px;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}

.mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.15); /* stronger contrast on hover */
  color: #ffcc00;
}
@media (max-width: 992px) {

  .menu-toggle {
    display: block; /* show hamburger */
  }
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Close button */
.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Menu links */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.mobile-menu ul li {
  margin: 15px 0;
}

.mobile-menu ul li a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu ul li a:hover {
  color: #ffcc00;
}

/* Language switch inside drawer */
.mobile-menu .lang-switch {
  margin-top: auto; /* push to bottom */
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.mobile-menu .lang-switch a {
  color: #f1f1f1;
  margin: 0 8px;
  text-decoration: none;
}

.mobile-menu .lang-switch a:hover {
  color: #ffcc00;
}

/* Auth links inside drawer */
.mobile-menu .auth-links {
  margin-top: 10px;
  text-align: center;
}

.mobile-menu .auth-links a {
  color: #f1f1f1;
  text-decoration: none;
  margin: 0 10px;
}

.mobile-menu .auth-links a:hover {
  color: #ffcc00;
}
/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* hidden off-screen */
  width: 360px;
  height: 100%;
  background: #004d40; /* deep green */
  color: #fff;
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 12px rgba(0,0,0,0.4); /* depth shadow */
}

/* Active state */
.mobile-menu.active {
  right: 0;
}

/* Close button */
.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Menu items as vertical rows */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  
}

.mobile-menu ul li {
  margin: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05); /* subtle contrast row */
  border-radius: 4px;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.15); /* stronger contrast on hover */
  color: #ffcc00;
}

/* Language switch anchored at bottom */
.mobile-menu .lang-switch {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.mobile-menu .lang-switch a {
  display: inline-block;
  padding: 8px 12px;
  margin: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  color: #f1f1f1;
  text-decoration: none;
}

.mobile-menu .lang-switch a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffcc00;
}

/* Auth links */
.mobile-menu .auth-links {
  margin-top: 10px;
  text-align: center;
}

.mobile-menu .auth-links a {
  display: block;
  padding: 8px;
  margin: 6px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  color: #f1f1f1;
  text-decoration: none;
}

.mobile-menu .auth-links a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffcc00;
}
/* Overlay background */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* semi-transparent black */
  z-index: 998; /* just below the drawer */
  display: none; /* hidden by default */
}

/* Show overlay when menu is active */
.mobile-menu.active ~ .menu-overlay {
  display: block;
}
/* Prevent background scroll when menu is open */
body.lock-scroll {
  overflow: hidden;
  height: 100%;
}
#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: none; /* hidden by default */
  z-index: 1000;
  border-radius: 50%;
  padding: 0.75rem 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#scrollTopBtn i {
  font-size: 1.2rem;
}