/* ==========================================================
   دار الفرقان الكريم لرعاية الأيتام - تصميم الواجهة التفاعلية
   forkankarem.com | مشهرة برقم 505 لسنة 2001
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #0a1e3b;
  --primary-light: #16325c;
  --primary-dark: #050f1f;
  --gold: #d49033;
  --gold-hover: #b87720;
  --gold-light: #fdf6ec;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-light: #ecfdf5;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(10, 30, 59, 0.04);
  --shadow-md: 0 6px 16px rgba(10, 30, 59, 0.08);
  --shadow-lg: 0 12px 28px rgba(10, 30, 59, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: #fcfdfe;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* التيبوغرافي */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.4;
}

.font-amiri {
  font-family: 'Amiri', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

/* الحاوية العامة */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* الشريط العلوي Topbar */
.topbar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-info {
  display: flex;
  gap: 20px;
  align-items: center;
}
.topbar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-license {
  background: rgba(212, 144, 51, 0.15);
  color: var(--gold);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* شريط التنقل الرئيسي Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar-brand .logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(10, 30, 59, 0.2);
}
.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}
.brand-text p {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark);
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: var(--gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* الأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 30, 59, 0.25);
}
.btn-gold {
  background: linear-gradient(135deg, #d49033, #e5a44a);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(212, 144, 51, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #b87720, #d49033);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 144, 51, 0.4);
}
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--primary);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-light);
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 15px 32px;
  font-size: 1.1rem;
  border-radius: 14px;
}

/* البانر الرئيسي Hero */
.hero-section {
  background: linear-gradient(135deg, #07152b 0%, #0a1e3b 60%, #11284d 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 144, 51, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 144, 51, 0.2);
  color: #f3c788;
  border: 1px solid rgba(212, 144, 51, 0.4);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title {
  color: var(--white);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-title span {
  color: var(--gold);
  position: relative;
}
.hero-desc {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 30px;
  max-width: 580px;
}
.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* بوكس التبرع السريع بالهيرو */
.hero-donate-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.donate-box-title {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.donate-box-subtitle {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.amount-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.amount-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 12px 6px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
}
.amount-pill:hover, .amount-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--white);
}

.custom-amount-wrap {
  position: relative;
  margin-bottom: 18px;
}
.custom-amount-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 50px 12px 18px;
  color: var(--white);
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 700;
  outline: none;
}
.custom-amount-wrap input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}
.custom-amount-wrap .currency-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 700;
}

/* بطاقات الإحصائيات الأثرية */
.stats-strip {
  background: var(--white);
  padding: 40px 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  border-left: 1px solid var(--border);
  padding: 0 15px;
}
.stat-item:last-child {
  border-left: none;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.stat-number span {
  color: var(--gold);
}
.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
}

/* الأقسام العامة */
.section {
  padding: 80px 0;
}
.section-bg {
  background: var(--light-gray);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: inline-block;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-desc {
  color: var(--gray);
  font-size: 1.05rem;
}

/* بطاقات الحملات */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.campaign-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 144, 51, 0.4);
}
.campaign-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  position: relative;
  background: #e2e8f0;
}
.campaign-cat {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}
.campaign-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.campaign-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary);
}
.campaign-desc {
  font-size: 0.92rem;
  color: var(--gray);
  margin-bottom: 20px;
  flex: 1;
}
.progress-bar-wrap {
  margin-bottom: 18px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.progress-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f59e0b);
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* بطاقات كفالة الأيتام */
.orphans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.orphan-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s;
}
.orphan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.orphan-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid #fef3c7;
}
.orphan-code {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.orphan-meta {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 14px;
}
.orphan-cost {
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* الآية القرآنية الكريمة */
.verse-banner {
  background: linear-gradient(135deg, #091a33, #0f2b54);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.verse-text {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #fef08a;
  max-width: 900px;
  margin: 0 auto 15px;
}
.verse-source {
  font-size: 1.1rem;
  color: #93c5fd;
  font-weight: 600;
}

/* معرض الصور */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 59, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--white);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* الفوتر */
.footer {
  background: #061122;
  color: #94a3b8;
  padding: 70px 0 25px;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--gold);
  padding-right: 5px;
}
.bank-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.bank-badge-title {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}
.bank-badge-num {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  direction: ltr;
  text-align: right;
}
.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

/* زر الواتساب العائم وزر التبرع */
.floating-actions {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 26px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.3s;
}
.floating-whatsapp {
  background: #25d366;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.floating-donate {
  background: var(--gold);
}
.floating-donate:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(212, 144, 51, 0.5);
}

/* استجابة الشاشات الصغيرة Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-item {
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .amount-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}
