/* ═══════════════════════════════════════════════
   GHAN — شبكة الهيدروجين الأخضر العربية
   Stylesheet v2.0 — Arabic RTL Primary
   ═══════════════════════════════════════════════ */

:root {
  --primary: #0A6847;
  --primary-dark: #064E32;
  --primary-light: #0E8C5F;
  --secondary: #1B5E20;
  --accent: #C5A028;
  --accent-light: #D4AF37;
  --navy: #0d1b2a;
  --dark: #1a1a2e;
  --text: #2a2a2a;
  --text-light: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #f8faf8;
  --bg-dark: #0d1b2a;
  --border: #e0e8e0;
  --gradient-green: linear-gradient(135deg, #0A6847 0%, #1B5E20 50%, #064E32 100%);
  --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #0A6847 60%, #1B5E20 100%);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Cairo', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  direction: rtl;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; color: var(--dark); }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-light { color: var(--text-light); }
.subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin: 0 auto 2rem; }

/* ── Navigation ── */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar__logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.navbar__logo img { height: 42px; }
.navbar__logo span { font-weight: 700; font-size: 1.1rem; color: var(--primary-dark); }
.navbar__links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.navbar__links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.navbar__links a:hover, .navbar__links a.active { color: var(--primary); }
.navbar__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.navbar__cta {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.navbar__cta:hover { background: var(--primary-dark); }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-right: 0.5rem;
}
.lang-toggle a {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
}
.lang-toggle a.lang-active {
  background: var(--primary);
  color: white;
}
.lang-toggle a:not(.lang-active):hover {
  background: var(--bg-alt);
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ── Hero Section ── */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197,160,40,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero h1 { color: white; font-size: 3rem; margin-bottom: 1.2rem; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; line-height: 1.8; max-width: 600px; }
.hero__tagline { color: var(--accent-light) !important; font-weight: 600; font-style: italic; font-size: 1.1rem !important; margin-top: 0.5rem; }
.hero__actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
}
.btn-primary { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.btn-primary:hover { background: #b8901f; transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-green { background: var(--primary); color: white; }
.btn-green:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-white { background: white; color: var(--primary-dark); }
.btn-white:hover { background: #f0f0f0; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: white; }
.section--dark h2, .section--dark h3 { color: white; }
.section__header { text-align: center; margin-bottom: 3rem; }
.section__header h2 { position: relative; display: inline-block; }
.section__header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  color: white;
}
.card h3 { color: var(--primary-dark); }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.stat__number { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat__label { font-size: 0.95rem; color: var(--text-light); margin-top: 0.3rem; }
.section--dark .stat__label { color: rgba(255,255,255,0.7); }

/* ── Values Grid ── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.value-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-sm);
  border-right: 4px solid var(--primary);
  border-left: none;
  box-shadow: var(--shadow);
}
.value-item__icon { font-size: 1.5rem; flex-shrink: 0; }
.value-item h4 { color: var(--primary-dark); margin-bottom: 0.3rem; }
.value-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ── Team ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--primary);
  background: #eee;
}
.team-card__placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  border: 4px solid var(--accent);
}
.team-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 0.25rem; }
.team-card__role { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.team-card__bio { font-size: 0.88rem; color: var(--text-light); margin-top: 0.5rem; line-height: 1.7; }

/* ── CTA Section ── */
.cta-section {
  background: var(--gradient-green);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 2rem; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: white; margin-bottom: 1rem; font-size: 1rem; }
.footer__brand p { font-size: 0.9rem; line-height: 1.7; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer__links a:hover { color: var(--accent-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__astf { display: flex; align-items: center; gap: 0.5rem; }
.footer__astf img { height: 28px; opacity: 0.7; }
.footer__dev {
  text-align: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info__item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--primary);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Cairo', 'Inter', sans-serif;
  transition: var(--transition);
  direction: rtl;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,104,71,0.1);
}

/* ── SDG Section ── */
.sdg-grid { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.sdg-badge {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3rem 0; }
  .lang-toggle { margin-right: 0; }
}
