/* ==========================================================================
   شباب بلادي | Design System
   هوية بصرية: كحلي داكن (Navy) + ذهبي (Gold) + أبيض — طابع مؤسسي فاخر
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  /* -------- الألوان الأساسية (النظام الوحيد المصدري لكل الألوان) -------- */
  --primary-dark: #050a16;   /* الخلفية الأعمق */
  --primary:      #0b1730;   /* الكحلي الأساسي */
  --primary-mid:  #10203f;   /* كحلي متوسط للأقسام البديلة */
  --primary-light:#16264a;   /* كحلي أفتح للبطاقات */
  --blue:         #1e3a66;   /* أزرق كحلي ثانوي للحدود والتمييز */
  --gold:         #c9a227;   /* الذهبي الأساسي — Accent */
  --gold-light:   #e7cc6c;   /* ذهبي فاتح للـ hover والتوهج */
  --gold-dark:    #9c7d1c;   /* ذهبي غامق للتباين على الفاتح */
  --white:        #ffffff;   /* الأبيض للنصوص الأساسية */

  /* -------- درجات مشتقة (لا تُستخدم كألوان جديدة، بل كشفافيات من الأساس) -------- */
  --ink:          var(--white);
  --ink-soft:     rgba(255, 255, 255, 0.74);
  --ink-muted:    rgba(255, 255, 255, 0.5);
  --on-gold:      #16233f;   /* نص داكن فوق الذهبي */

  --border:        rgba(201, 162, 39, 0.16);
  --border-strong: rgba(201, 162, 39, 0.38);
  --divider:       rgba(255, 255, 255, 0.08);

  --card:       var(--primary-light);
  --card-alt:   var(--primary-mid);
  --success:    #2f9e6b;
  --error:      #d9534f;

  /* -------- الطباعة -------- */
  --font-display: 'Tajawal', 'Cairo', sans-serif;
  --font-body: 'Cairo', 'Tajawal', sans-serif;

  /* -------- القياسات -------- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-full: 999px;

  --shadow-gold: 0 18px 44px rgba(201, 162, 39, 0.16);
  --shadow-card: 0 20px 46px rgba(2, 6, 16, 0.35);
  --shadow-soft: 0 10px 24px rgba(2, 6, 16, 0.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
  --nav-h: 88px;
}

/* ==========================================================================
   إعادة الضبط
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--primary-dark);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(50% 38% at 15% -5%, rgba(201, 162, 39, 0.07), transparent 60%),
    radial-gradient(45% 32% at 100% 10%, rgba(30, 58, 102, 0.35), transparent 60%),
    var(--primary-dark);
  z-index: -2;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
svg { display: block; }
input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   عناصر مشتركة
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid var(--border-strong);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.1vw, 2.65rem);
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--ink);
}

.section-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.9;
}

.section-head { max-width: 700px; margin-inline: auto; text-align: center; margin-bottom: 64px; }
.section-head .section-desc { margin-inline: auto; }

.divider-gold {
  width: 64px; height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-bottom: 22px;
}

/* -------- نظام الأزرار: Primary / Secondary / Outline / Text -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--on-gold);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(201, 162, 39, 0.28); }
.btn-primary:focus-visible { outline-color: var(--white); }
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover { background: var(--primary-light); border-color: var(--gold); transform: translateY(-3px); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.08); color: var(--gold-light); transform: translateY(-3px); }

.btn-text {
  padding: 8px 4px;
  color: var(--gold-light);
  border-radius: 0;
  position: relative;
}
.btn-text::after {
  content: '';
  position: absolute;
  bottom: 2px; inset-inline: 4px;
  height: 1.5px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
[dir="ltr"] .btn-text::after { transform-origin: left; }
.btn-text:hover::after { transform: scaleX(1); }

.btn-lg { padding: 17px 40px; font-size: 1.02rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   شريط التنقل
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  height: 72px;
  background: rgba(5, 10, 22, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { border-radius: 50%; border: 1.5px solid var(--border-strong); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: 0.01em; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  border-radius: var(--radius-full);
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--gold-light); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 18px; right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.navbar-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lang-toggle:hover { box-shadow: 0 0 0 4px rgba(201,162,39,0.1); border-color: var(--gold); }
.lang-option { color: var(--ink-muted); transition: color 0.3s var(--ease); padding: 2px 4px; }
.lang-option.active { color: var(--gold-light); }
.lang-sep { color: var(--ink-muted); font-size: 0.75rem; }

.btn-nav { padding: 10px 24px; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block; height: 2px; width: 22px;
  background: var(--ink);
  margin-inline: auto;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--gold); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--gold); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 6000%; inset-inline: 0;
  background: rgb(5, 9, 20);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 28px 26px;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
}
.mobile-menu.open {top: 100%; max-height: 520px; padding: 16px 28px 28px; }
.mobile-link { padding: 14px 6px; font-weight: 600; border-bottom: 1px solid var(--divider); }
.mobile-link:hover { color: var(--gold-light); }
.mobile-cta { margin-top: 16px; width: 100%; }

.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(201,162,39,0.5);
}

/* ==========================================================================
   الصفحة الرئيسية — Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 66px);
  padding-bottom: 100px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201,162,39,0.10) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(55% 55% at 50% 25%, #000 15%, transparent 78%);
  mask-image: radial-gradient(55% 55% at 50% 25%, #000 15%, transparent 78%);
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.5;
}
.hero-blob-1 { width: 420px; height: 420px; background: rgba(30, 58, 102, 0.55); top: -120px; inset-inline-end: -100px; }
.hero-blob-2 { width: 320px; height: 320px; background: rgba(201, 162, 39, 0.16); bottom: -100px; inset-inline-start: -80px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-content { max-width: 560px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.28;
  margin-bottom: 22px;
  color: var(--ink);
}
.hero-title .accent-text { color: var(--gold-light); }
.hero-desc { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.9; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-beacon {
  position: absolute;
  top: 50%; left: 50%;
  width: 560px; height: 560px;
  transform: translate(-50%, -50%);
  z-index: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(201, 162, 39, 0.32) 0deg 4deg,
      transparent 4deg 18deg);
  -webkit-mask-image: radial-gradient(circle, transparent 56%, #000 58%, #000 66%, transparent 68%);
  mask-image: radial-gradient(circle, transparent 56%, #000 58%, #000 66%, transparent 68%);
  animation: rotateBeacon 30s linear infinite;
  pointer-events: none;
}
@keyframes rotateBeacon { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-image-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--card);
  box-shadow: var(--shadow-card);
  outline: 1px solid var(--border-strong);
  outline-offset: 8px;
  animation: floatY 6s ease-in-out infinite;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-image-wrap::before,
.hero-image-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.hero-image-wrap::before {
  width: 30%; height: 30%;
  background: var(--blue);
  top: -4%; inset-inline-end: -6%;
  box-shadow: var(--shadow-soft);
}
.hero-image-wrap::after {
  width: 22%; height: 22%;
  background: var(--gold);
  bottom: -2%; inset-inline-start: -4%;
  box-shadow: var(--shadow-soft);
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.chip-1 { top: 4%; inset-inline-start: -10%; animation: floatY 5s ease-in-out infinite; }
.chip-2 { bottom: 6%; inset-inline-end: -8%; animation: floatY 7s ease-in-out infinite reverse; color: var(--white); }

/* ==========================================================================
   الإحصائيات
   ========================================================================== */
.stats {
  position: relative;
  padding: 56px 0;
  border-block: 1px solid var(--divider);
  background: linear-gradient(180deg, transparent, rgba(201,162,39,0.04), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 8px; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.3vw, 2.7rem);
  color: var(--gold-light);
}
.stat-label { color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   من نحن
   ========================================================================== */
.about { padding: 130px 0; position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.about-visual { position: relative; }
.about-image-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--card);
  box-shadow: var(--shadow-card);
  background: var(--card);
}
.about-image { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-glow {
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(201,162,39,0.22), transparent 70%);
  filter: blur(40px);
  top: -40px; inset-inline-start: -40px;
  z-index: 0;
}

.check-list { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.check-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.02rem; }
.check-icon {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   الكورسات / مجالات التطوع
   ========================================================================== */
.services { padding: 60px 0 130px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  padding: 34px 28px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--divider);
  box-shadow: 0 14px 30px rgba(2,6,16,0.22);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-gold);
}
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  margin-bottom: 22px;
}
.service-card h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.8; }

/* ==========================================================================
   لماذا نحن
   ========================================================================== */
.why {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(160deg, var(--primary-mid), #0e1c39 65%, var(--primary-mid));
  overflow: hidden;
  border-block: 1px solid var(--divider);
}
.why-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,162,39,0.12), transparent 70%);
  top: -220px; inset-inline-end: -220px;
  z-index: 0;
}
.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.why-panel { position: sticky; top: 120px; align-self: start; }
.why-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.35rem); line-height: 1.42; margin-bottom: 24px; color: var(--ink); }
.why-quote {
  font-size: 1.08rem;
  color: var(--ink-soft);
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 20px;
  line-height: 1.95;
  font-style: normal;
}

.why-list { display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--divider); }
.why-item:last-child { border-bottom: none; padding-bottom: 0; }
.why-check {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  margin-top: 2px;
}
.why-item h4 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.why-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  margin: 120px auto;
  max-width: var(--container);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 88px 40px;
  text-align: center;
  background: linear-gradient(160deg, var(--primary-light), var(--blue));
  border: 1px solid var(--border-strong);
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,0.24), transparent 70%);
  top: -180px; left: 50%; transform: translateX(-50%);
  filter: blur(40px);
  z-index: 0;
}
.cta-shapes {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1.4px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(70% 100% at 50% 50%, #000, transparent 90%);
  mask-image: radial-gradient(70% 100% at 50% 50%, #000, transparent 90%);
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.85rem, 3.3vw, 2.6rem); margin-bottom: 18px; color: var(--ink); max-width: 720px; }
.cta-desc { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 34px; max-width: 540px; margin-inline: auto; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   صفحة فرعية — رأس صفحة (Contact / Volunteer)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(201,162,39,0.14), transparent 68%);
  top: -260px; left: 50%; transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.page-hero .eyebrow { justify-content: center; }
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--ink);
}
.page-hero-desc { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.9; max-width: 600px; margin-inline: auto; }
.page-hero-breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.page-hero-breadcrumb a { color: var(--ink-soft); transition: color .3s var(--ease); }
.page-hero-breadcrumb a:hover { color: var(--gold-light); }
.page-hero-breadcrumb span { color: var(--gold-light); }

/* ==========================================================================
   نماذج (Contact + Volunteer)
   ========================================================================== */
.form-section { padding: 20px 0 130px; position: relative; }

.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

/* بطاقة معلومات التواصل */
.info-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 120px;
}
.info-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.info-card > p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.85; margin-bottom: 30px; }

.info-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.info-item { display: flex; align-items: flex-start; gap: 16px; }
.info-item-icon {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
}
.info-item-text h5 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.info-item-text p, .info-item-text a { color: var(--ink-soft); font-size: 0.92rem; }
.info-item-text a:hover { color: var(--gold-light); }

.info-card .social-icons {font-size: 69px;padding-top: 22px; border-top: 1px solid var(--divider); }

/* بطاقة النموذج */
.form-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}
.form-card-head { margin-bottom: 30px; }
.form-card-head h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.form-card-head p { color: var(--ink-soft); font-size: 0.95rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field-group { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field-group.full { grid-column: 1 / -1; }

.field-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.field-label .req { color: var(--gold-light); }

.field-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--divider);
  color: var(--ink);
  font-size: 0.96rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field-control::placeholder { color: var(--ink-muted); }
.field-control:hover { border-color: var(--border-strong); }
.field-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201,162,39,0.04);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.12);
}
textarea.field-control { resize: vertical; min-height: 130px; }

select.field-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23c9a227' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 18px center;
  padding-inline-start: 42px;
}
[dir="rtl"] select.field-control { background-position: left 18px center; }
[dir="ltr"] select.field-control { background-position: right 18px center; padding-inline-start: 18px; padding-inline-end: 42px; }

.field-group.invalid .field-control {
  border-color: var(--error);
  background: rgba(217, 83, 79, 0.06);
}
.field-error {
  font-size: 0.82rem;
  color: var(--error);
  display: none;
  align-items: center;
  gap: 6px;
}
.field-group.invalid .field-error { display: flex; }
.field-hint { font-size: 0.8rem; color: var(--ink-muted); }

/* مجموعة اختيار المجال (chips) */
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-chip {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--divider);
  background: rgba(255,255,255,0.03);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.choice-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-chip:has(input:checked) {
  background: rgba(201,162,39,0.14);
  border-color: var(--gold);
  color: var(--gold-light);
}
.choice-chip:hover { border-color: var(--border-strong); }

.form-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.form-note { font-size: 0.85rem; color: var(--ink-muted); }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-top: 22px;
  font-size: 0.92rem;
  line-height: 1.7;
}
.form-status.show { display: flex; }
.form-status.success { background: rgba(47, 158, 107, 0.1); border: 1px solid rgba(47, 158, 107, 0.35); color: #a8e6c8; }
.form-status.error { background: rgba(217, 83, 79, 0.1); border: 1px solid rgba(217, 83, 79, 0.35); color: #f3b7b5; }
.form-status svg { flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   صفحة التطوع — إضافات (Benefits + Areas + Steps)
   ========================================================================== */
.benefits { padding: 20px 0 120px; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.benefit-card {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--divider);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.benefit-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.benefit-icon {
  width: 56px; height: 56px;
  margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  margin-bottom: 18px;
}
.benefit-card h4 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.benefit-card p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.75; }

.process { padding: 20px 0 120px; background: linear-gradient(160deg, var(--primary-mid), #0e1c39 65%, var(--primary-mid)); border-block: 1px solid var(--divider); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.process-step { position: relative; padding-inline-start: 4px; }
.process-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  margin-bottom: 12px;
}
.process-step h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.process-step p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.75; }

.external-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 80px 0 0; background: var(--primary-dark); border-top: 1px solid var(--divider); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-brand p { color: var(--ink-soft); margin-top: 16px; font-size: 0.95rem; line-height: 1.85; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h5 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.footer-col a { color: var(--ink-soft); font-size: 0.95rem; transition: color 0.3s var(--ease); width: fit-content; }
.footer-col a:hover { color: var(--gold-light); }
.social-icons { display: flex; gap: 12px; margin-top: 6px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-icon:hover { color: var(--gold-light); border-color: var(--border-strong); transform: translateY(-3px); }
.footer-bottom {
  padding: 26px 28px;
  border-top: 1px solid var(--divider);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   زر العودة للأعلى
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background .3s var(--ease), color .3s var(--ease);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); background: var(--gold); color: var(--on-gold); }

/* ==========================================================================
   الكشف عند التمرير
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   منطق البنية RTL / LTR
   ========================================================================== */
[dir="ltr"] .hero-title,
[dir="ltr"] .hero-desc { text-align: left; }

[dir="ltr"] .about-grid { grid-template-columns: 1.15fr 0.85fr; }
[dir="ltr"] .about-grid .about-visual { order: 2; }
[dir="ltr"] .about-grid .about-content { order: 1; }

[dir="ltr"] .why-grid { grid-template-columns: 1.1fr 0.9fr; }
[dir="ltr"] .why-grid .why-panel { order: 2; }
[dir="ltr"] .why-grid .why-list { order: 1; }

[dir="ltr"] .form-layout { grid-template-columns: 1.15fr 0.85fr; }
[dir="ltr"] .form-layout .info-card { order: 2; }
[dir="ltr"] .form-layout .form-card { order: 1; }

[dir="ltr"] .nav-link.active::after { left: 18px; right: 18px; }

/* ==========================================================================
   الاستجابة
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  [dir="ltr"] .hero-title, [dir="ltr"] .hero-desc { text-align: center; }
  .hero-visual { margin-top: 40px; }

  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  [dir="ltr"] .about-grid .about-visual,
  [dir="ltr"] .about-grid .about-content,
  .about-grid .about-visual,
  .about-grid .about-content { order: 0; }
  .about-image-frame { max-width: 420px; margin-inline: auto; }

  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  [dir="ltr"] .why-grid .why-panel,
  [dir="ltr"] .why-grid .why-list,
  .why-grid .why-panel,
  .why-grid .why-list { order: 0; }
  .why-panel { position: static; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }

  .form-layout { grid-template-columns: 1fr; }
  [dir="ltr"] .form-layout .info-card,
  [dir="ltr"] .form-layout .form-card,
  .form-layout .info-card,
  .form-layout .form-card { order: 0; }
  .info-card { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 36px); padding-bottom: 64px; }
  .hero-beacon { width: 380px; height: 380px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .about { padding: 84px 0; }
  .services { padding: 26px 0 84px; }
  .services-grid { grid-template-columns: 1fr; }

  .why { padding: 76px 0; }

  .cta { margin: 76px 18px; padding: 56px 22px; }

  .page-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 50px; }
  .form-section { padding: 10px 0 84px; }
  .form-card { padding: 30px 22px; }
  .info-card { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .container { padding-inline: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.3rem); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-image-wrap { width: 78vw; }
  .floating-chip { font-size: 0.72rem; padding: 8px 12px; }
  .chip-1 { top: 2%; inset-inline-start: -4%; }
  .chip-2 { bottom: 4%; inset-inline-end: -4%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 1.75rem; }

  .section-title { font-size: 1.55rem; }
  .cta-title { font-size: 1.5rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }

  .benefits-grid { grid-template-columns: 1fr; }

  .navbar-actions { gap: 8px; }
  .lang-toggle { padding: 6px 10px; font-size: 0.75rem; }

  .form-footer-row { flex-direction: column; align-items: stretch; }
  .form-footer-row .btn { width: 100%; }
}
/* form */
/* form - restyled to match site design system */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--divider);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  margin: 120px auto;
}

.title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
  display: flex;
  align-items: center;
  padding-inline-start: 34px;
}

.title::before, .title::after {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  inset-inline-start: 0;
  background-color: var(--gold);
}

.title::before {
  width: 28px;
  height: 28px;
  background-color: var(--gold);
}

.title::after {
  width: 28px;
  height: 28px;
  animation: pulse 1s linear infinite;
}

.message, .signin {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.signin {
  text-align: center;
  margin-top: 4px;
}

.signin a {
  color: var(--gold-light);
}

.signin a:hover {
  text-decoration: underline;
}

.flex {
  display: flex;
  width: 100%;
  gap: 14px;
}

.form label {
  position: relative;
  width: 100%;
}

.form label .input {
  width: 100%;
  padding: 18px 18px 8px 18px;
  outline: 0;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form label .input::placeholder { color: transparent; }

.form label .input:hover {
  border-color: var(--border-strong);
}

.form label .input:focus {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.04);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

.form label .input + span {
  position: absolute;
  inset-inline-start: 18px;
  top: 17px;
  color: var(--ink-muted);
  font-size: 0.95em;
  cursor: text;
  transition: 0.3s ease;
  pointer-events: none;
}

.form label .input:placeholder-shown + span {
  top: 17px;
  font-size: 0.95em;
}

.form label .input:focus + span,
.form label .input:valid + span {
  top: 8px;
  font-size: 0.72em;
  font-weight: 700;
}

.form label .input:focus + span {
  color: var(--gold-light);
}

.form label .input:valid + span {
  color: var(--gold-light);
}

.submit {
  border: none;
  outline: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 16px;
  border-radius: var(--radius-full);
  color: var(--on-gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  margin-top: 6px;
}

.submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(201, 162, 39, 0.28);
}

.submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .form {
    padding: 32px 24px;
    margin: 80px auto;
    border-radius: var(--radius-md);
  }
  .flex {
    flex-direction: column;
    gap: 18px;
  }
}
/* ==========================================================================
   شاشة التحميل (Preloader)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--primary-dark);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.35);
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--divider);
  border-top-color: var(--gold);
  border-inline-end-color: var(--gold-light);
  animation: preloaderSpin 0.9s linear infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

.preloader-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preloader-dots span {
  display: inline-block;
  animation: preloaderDots 1.4s infinite;
  animation-delay: calc(var(--dot-i) * 0.2s);
  opacity: 0.2;
}
.preloader-dots span:nth-child(1) { --dot-i: 0; }
.preloader-dots span:nth-child(2) { --dot-i: 1; }
.preloader-dots span:nth-child(3) { --dot-i: 2; }

@keyframes preloaderDots {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-ring { animation: none; border-top-color: var(--gold); }
  .preloader-dots span { animation: none; opacity: 1; }
}

/* يمنع ظهور شريط تمرير مزدوج أثناء التحميل */
body.is-loading { overflow: hidden; }

/* ==========================================================================
   ⭐ طبقة إضافية — تجربة أقرب لتطبيق جوال أصلي (Mobile App-Like Layer)
   لا تغيّر أي لون أو خط أو تصميم — فقط تُحسّن السلوك والاستجابة
   على الشاشات الصغيرة والمتوسطة، وتمنع أي تجاوز أفقي (overflow).
   ========================================================================== */

/* -------- حاوية مرنة تتدرّج بسلاسة بدل القفزات المفاجئة بين نقاط الكسر -------- */
.container {
  padding-inline: clamp(16px, 4vw, 28px);
}

/* -------- شبكة أمان عامة ضد أي تمرير أفقي غير مقصود -------- */
html, body { max-width: 100%; }

/* منع "انفجار" عناصر الشبكة/الفليكس بسبب نص طويل داخل عمود ضيق */
.hero-inner > *,
.about-grid > *,
.why-grid > *,
.services-grid > *,
.stats-grid > *,
.benefits-grid > *,
.process-grid > *,
.form-layout > *,
.form-grid > *,
.footer-grid > *,
.choice-group > *,
.navbar-inner > * {
  min-width: 0;
}

/* -------- التفاف آمن للعناوين والروابط والنصوص الطويلة (بدون قص) -------- */
.hero-title, .section-title, .page-hero-title, .cta-title, .why-title,
.footer-col a, .info-item-text a, .info-item-text p, .info-item-text h5,
.service-card p, .why-item p, .benefit-card p, .process-step p,
.field-label, .form-note {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* -------- منع تكبير iOS التلقائي عند لمس الحقول (شعور تطبيق أصلي حقيقي) -------- */
.field-control,
.form label .input,
select.field-control {
  font-size: max(16px, 0.96rem);
}

/* -------- تقليل وميض اللمس الافتراضي على الأجهزة اللمسية -------- */
a, button, .btn, .nav-link, .mobile-link, .choice-chip, .social-icon, .menu-toggle {
  -webkit-tap-highlight-color: transparent;
}

/* -------- دعم مناطق الأمان (النوتش/الحافة) على الأجهزة الحديثة -------- */
.navbar { padding-top: env(safe-area-inset-top, 0); }
.back-to-top { bottom: calc(28px + env(safe-area-inset-bottom, 0)); }
.footer-bottom { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0)); }
.mobile-menu.open { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0)); }

/* ==========================================================================
   نقطة كسر إضافية للهواتف الكبيرة/اللوحيات الصغيرة (≤600px)
   ========================================================================== */
@media (max-width: 600px) {
  /* شريط التنقل: يمنع تصادم اسم العلامة مع أزرار اللغة/القائمة على شاشة ضيقة */
  .navbar-inner { gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-name {
    font-size: clamp(1rem, 4.4vw, 1.2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-logo { flex-shrink: 0; }
  .navbar-actions { flex-shrink: 0; gap: 8px; }
  .lang-toggle { flex-shrink: 0; }
  .menu-toggle { flex-shrink: 0; width: 44px; height: 44px; }

  /* تكديس خطوات "كيف تعمل" بعمود واحد بدل عمودين ضيقين */
  .process-grid { grid-template-columns: 1fr; gap: 30px; }

  /* مساحات الأقسام تتدرّج بسلاسة عبر نقاط الكسر بدل القفزة المفاجئة */
  .hero { padding-top: calc(var(--nav-h) + clamp(24px, 6vw, 36px)); padding-bottom: clamp(48px, 10vw, 64px); }
  .about { padding-block: clamp(56px, 12vw, 84px); }
  .services { padding: clamp(20px, 5vw, 26px) 0 clamp(56px, 12vw, 84px); }
  .why { padding-block: clamp(56px, 12vw, 76px); }
  .benefits { padding: clamp(16px, 4vw, 20px) 0 clamp(64px, 14vw, 120px); }
  .process { padding: clamp(16px, 4vw, 20px) 0 clamp(64px, 14vw, 120px); }
  .form-section { padding: clamp(8px, 2vw, 10px) 0 clamp(56px, 12vw, 84px); }
  .page-hero { padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 40px)); padding-bottom: clamp(36px, 8vw, 50px); }
  .cta { margin: clamp(48px, 10vw, 76px) 16px; padding: clamp(40px, 9vw, 56px) 20px; }

  /* راحة لمس أفضل لعناصر القوائم والاختيارات دون تكبيرها بشكل غير ضروري */
  .mobile-link { padding: 15px 8px; min-height: 44px; display: flex; align-items: center; }
  .choice-chip { padding: 11px 16px; min-height: 40px; display: inline-flex; align-items: center; }
  .social-icon { width: 40px; height: 40px; }

  /* حواف داخلية أضيق قليلًا للبطاقات مع الحفاظ على نفس النمط البصري */
  .service-card, .benefit-card { padding-inline: clamp(18px, 5vw, 28px); }
  .form-card, .info-card { padding: clamp(26px, 6vw, 40px) clamp(18px, 5vw, 32px); }

  /* تصغير أيقونات التواصل الكبيرة تدريجيًا بدل قفزة واحدة */
  .info-card .social-icons { font-size: clamp(32px, 8vw, 69px); }

  /* إبقاء الصورة الدائرية والهالة داخل حدود الشاشة دون قصّ */
  .hero-image-wrap { width: min(76vw, 340px); }
  .hero-beacon { width: min(90vw, 380px); height: min(90vw, 380px); }
}

/* ==========================================================================
   نقطة كسر دقيقة للهواتف الصغيرة جدًا (320px–374px)
   ========================================================================== */
@media (max-width: 374px) {
  .container { padding-inline: 14px; }
  .hero-title { font-size: clamp(1.7rem, 9vw, 2rem); }
  .section-title { font-size: 1.4rem; }
  .cta-title { font-size: 1.35rem; }
  .stat-number { font-size: 1.5rem; }
  .btn { padding: 13px 22px; font-size: 0.9rem; }
  .btn-lg { padding: 15px 28px; }
  .form-card, .info-card { padding: 22px 16px; }
  .form { margin: 60px auto; padding: 26px 18px; }
  .floating-chip { font-size: 0.62rem; padding: 6px 10px; }
  .chip-1 { top: 1%; inset-inline-start: -2%; }
  .chip-2 { bottom: 2%; inset-inline-end: -2%; }
}

/* -------- انتقال أكثر سلاسة عبر نطاق الأجهزة اللوحية (601px–1024px) -------- */
@media (min-width: 601px) and (max-width: 1024px) {
  .container { padding-inline: clamp(24px, 4vw, 28px); }
}