/* ═══════════════════════════════════════════════
   VWBP CMS — Frontend Stylesheet
   متطوعون بلا حدود فلسطين
   ═══════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --gold:        #C8A420;
  --gold-light:  #E8C84A;
  --gold-dark:   #9A7A10;
  --dark:        #111111;
  --dark-2:      #1E1E1E;
  --dark-3:      #2A2A2A;
  --gray:        #6B6B6B;
  --gray-light:  #F5F4F0;
  --gray-mid:    #E0DED6;
  --white:       #FFFFFF;
  --text:        #222222;
  --text-muted:  #777777;
  --transition:  0.3s ease;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 40px rgba(0,0,0,0.12);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  direction: rtl;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ════════════════════════════
   NAVBAR
════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,164,32,0.2);
  transition: var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img { height: 48px; width: auto; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-ar {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}
.nav-logo-en {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--gold); background: rgba(200,164,32,0.1); }

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn-volunteer {
  padding: 9px 20px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-block;
}
.btn-volunteer:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-admin {
  padding: 8px 14px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-admin:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* Mobile nav dropdown */
.nav-menu.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 72px; right: 0; left: 0;
  background: rgba(17,17,17,0.99);
  padding: 12px 16px 20px;
  border-bottom: 1px solid rgba(200,164,32,0.2);
  gap: 4px;
}

/* ════════════════════════════
   HERO
════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(200,164,32,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(200,164,32,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,164,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,164,32,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 2rem 80px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(200,164,32,0.15);
  border: 1px solid rgba(200,164,32,0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255,255,255,0.62);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,164,32,0.3);
}

.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
}

/* ════════════════════════════
   SECTION COMMONS
════════════════════════════ */
section { padding: 90px 0; }

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

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
}
.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 10px;
  opacity: 0.45;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ════════════════════════════
   PROGRAMS GRID
════════════════════════════ */
#programs { background: var(--white); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.program-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.program-img {
  height: 180px;
  background: var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}
.program-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.program-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(200,164,32,0.1);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 12px;
}

.program-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.program-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
}

.program-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-mid);
  margin-top: auto;
}
.program-meta { font-size: 13px; color: var(--text-muted); }
.program-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.program-link:hover { color: var(--gold-dark); }

/* ════════════════════════════
   IMPACT
════════════════════════════ */
#impact {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.impact-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(200,164,32,0.08) 0%, transparent 70%);
  pointer-events: none;
}
#impact .section-title { color: var(--white); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.impact-card {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid rgba(200,164,32,0.15);
  border-radius: 16px;
  transition: var(--transition);
}
.impact-card:hover {
  background: rgba(200,164,32,0.05);
  border-color: rgba(200,164,32,0.3);
}
.impact-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.impact-num {
  font-size: 46px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.impact-label { font-size: 15px; color: rgba(255,255,255,0.58); }

/* ════════════════════════════
   NEWS (reuses programs-grid)
════════════════════════════ */
#news { background: var(--gray-light); }

/* ════════════════════════════
   VOLUNTEER / CTA
════════════════════════════ */
#volunteer { background: var(--white); }

.cta-box {
  background: var(--dark);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(200,164,32,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,164,32,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.cta-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 36px;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.85;
}

/* Volunteer form inputs */
.vol-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--white);
  transition: var(--transition);
  direction: rtl;
}
.vol-input::placeholder { color: rgba(255,255,255,0.38); }
.vol-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(200,164,32,0.18);
}
.vol-input option { color: var(--dark); background: var(--white); }

.btn-donate {
  padding: 14px 36px;
  background: transparent;
  color: var(--gold);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--gold);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}
.btn-donate:hover { background: var(--gold); color: var(--dark); }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.85;
  max-width: 280px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 10px;
}

/* ════════════════════════════
   ANIMATIONS
════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu       { display: none; }
  .hamburger      { display: flex; }
  .nav-actions .btn-admin { display: none; }
  .programs-grid  { grid-template-columns: 1fr; }
  .impact-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .cta-box        { padding: 48px 24px; }
  .hero-stats     { gap: 24px; }
  section         { padding: 64px 0; }
}

@media (max-width: 480px) {
  .impact-grid  { grid-template-columns: 1fr 1fr; }
  .hero-cta     { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .cta-title    { font-size: 24px; }
}
