/* ============================================================
   وصال — الصفحة الرئيسية الجديدة (نمط كحلي/ذهبي/كريمي)
   ملف منفصل عن style.css الأساسي، يُحمَّل فقط في index.html
   ============================================================ */

:root {
  --navy: #16213f;
  --navy-2: #1c2b52;
  --navy-soft: #24345e;
  --gold: #c9a24d;
  --gold-light: #e2c583;
  --cream: #fbf7ee;
  --cream-2: #f3ecdc;
  --ink: #182238;
  --ink-muted: #5c6478;
  --line: #e9e1cd;
}

.home-page {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cairo', sans-serif;
}

.home-page .container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── الترويسة ── */
.home-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: #fffdf9; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; flex-wrap: wrap; gap: 12px;
}
.home-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.home-logo-img { height: 140px; width: auto; display: block; }
.home-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.home-logo-text .name { font-size: 21px; font-weight: 800; color: var(--navy); }
.home-logo-text .tag { font-size: 17px; color: var(--gold); font-weight: 800; }

.home-nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.home-nav-links a {
  text-decoration: none; color: var(--ink-muted); font-weight: 600; font-size: 17px;
  padding: 6px 2px; position: relative;
}
.home-nav-links a.active { color: var(--navy); }
.home-nav-links a.active::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: -4px; height: 2px; background: var(--gold);
}
.home-nav-actions { display: flex; align-items: center; gap: 10px; }
.home-lang {
  font-size: 13px; color: var(--navy); font-weight: 700; display: flex; align-items: center; gap: 4px;
  text-decoration: none; border: 1px solid var(--gold); border-radius: 20px; padding: 8px 16px; white-space: nowrap;
}
.home-login-btn {
  border: 1px solid var(--navy); color: var(--navy); background: transparent;
  padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  text-decoration: none; white-space: nowrap;
}
.home-signup-btn {
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  text-decoration: none; white-space: nowrap;
}

/* ── البطل (Hero) ── */
.home-hero {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  padding: 64px 28px 76px; max-width: 1160px; margin: 0 auto;
}
.home-hero-media { display: flex; justify-content: center; position: relative; }
.home-hero-media svg { width: 100%; max-width: 460px; height: auto; }
.home-hero-photo-frame {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 25px 50px rgba(22,33,63,0.18);
}
.home-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.2s ease-in-out; }
.home-hero-photo.active { opacity: 1; }
.home-hero-floating {
  position: absolute; bottom: 6%; left: -6%; background: #fff; border-radius: 16px;
  padding: 14px 18px; box-shadow: 0 18px 40px rgba(22,33,63,0.18); display: flex;
  align-items: center; gap: 12px; max-width: 220px;
}
.home-hero-floating .avatars { display: flex; }
.home-hero-floating .avatars span {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-inline-start: -10px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff;
}
.home-hero-floating .avatars span:first-child { margin-inline-start: 0; }
.home-hero-floating .info { text-align: right; }
.home-hero-floating .info b { display: block; font-size: 12.5px; color: var(--navy); font-weight: 700; }
.home-hero-floating .info span.count { font-size: 12px; color: var(--gold); font-weight: 800; }

.home-hero-content { text-align: right; }
.home-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--cream-2);
  color: var(--navy); font-size: 13px; font-weight: 700; padding: 8px 16px;
  border-radius: 30px; margin-bottom: 22px;
}
.home-badge svg { width: 15px; height: 15px; color: var(--gold); }

.home-hero-content h1 {
  font-size: 56px; line-height: 1.25; font-weight: 800; color: var(--navy); margin-bottom: 20px;
}
.home-hero-content p.lead {
  font-size: 16px; line-height: 1.95; color: var(--ink-muted); max-width: 480px; margin-bottom: 30px;
}

.home-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.home-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 30px; border-radius: 12px;
  font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1px solid transparent;
}
.home-btn svg { width: 17px; height: 17px; }
.home-btn-primary { background: var(--navy); color: #fff; }
.home-btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }

.home-trust-line {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-muted); font-weight: 600;
}
.home-trust-line svg { width: 14px; height: 14px; color: var(--gold); }

/* ── لماذا تختار وصال ── */
.home-section-title { text-align: center; margin-bottom: 40px; }
.home-section-title h2 { font-size: 36px; font-weight: 800; color: var(--navy); position: relative; display: inline-block; }
.home-section-title .rule {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px;
  color: var(--gold); font-size: 13px;
}
.home-section-title .rule::before, .home-section-title .rule::after {
  content: ""; width: 34px; height: 1px; background: var(--gold-light);
}

.home-why { padding: 70px 28px 20px; max-width: 1160px; margin: 0 auto; }
.home-why-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.home-why-card { text-align: center; padding: 8px 10px; }
.home-icon-circle {
  width: 66px; height: 66px; border-radius: 50%; background: var(--cream-2);
  border: 1px solid var(--gold-light); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.home-icon-circle svg { width: 28px; height: 28px; color: var(--navy); }
.home-why-card h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.home-why-card p { font-size: 13px; line-height: 1.8; color: var(--ink-muted); }

/* ── شريط الإحصائيات ── */
.home-stats {
  background: var(--navy); color: #fff; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.home-stat { text-align: center; padding: 36px 16px; border-inline-start: 1px solid rgba(255,255,255,0.12); }
.home-stat:first-child { border-inline-start: none; }
.home-stat svg { width: 26px; height: 26px; color: var(--gold-light); margin-bottom: 10px; }
.home-stat .num { font-size: 26px; font-weight: 800; color: var(--gold-light); margin-bottom: 4px; display: block; }
.home-stat .label { font-size: 12.5px; color: rgba(255,255,255,0.75); }

/* ── خطوات الرحلة ── */
.home-steps { padding: 76px 28px; max-width: 1160px; margin: 0 auto; }
.home-steps-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.home-step { flex: 1 1 200px; text-align: center; position: relative; padding: 0 10px; }
.home-step-icon {
  width: 58px; height: 58px; border-radius: 16px; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; position: relative;
}
.home-step-icon svg { width: 24px; height: 24px; color: var(--navy); }
.home-step-num {
  position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink-muted); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.home-step:nth-child(1) .home-step-num { background: var(--navy); }
.home-step h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.home-step p { font-size: 12.5px; line-height: 1.8; color: var(--ink-muted); max-width: 190px; margin: 0 auto; }
.home-step-arrow { align-self: center; color: var(--gold-light); flex: 0 0 auto; margin-top: 20px; }
.home-step-arrow svg { width: 20px; height: 20px; }

/* ── منصة آمنة تحترم قيمك ── */
.home-values { background: var(--cream-2); padding: 70px 28px; }
.home-values-inner { max-width: 1160px; margin: 0 auto; }
.home-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.home-value { text-align: center; }
.home-value svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
.home-value h3 { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.home-value p { font-size: 12.5px; color: var(--ink-muted); line-height: 1.7; }

/* ── قصص نجاح ── */
.home-testimonials { padding: 76px 28px 20px; max-width: 1160px; margin: 0 auto; }
.home-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
}
.home-testimonial .quote-mark { color: var(--gold-light); font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.home-testimonial p.text { font-size: 13.5px; line-height: 1.9; color: var(--ink); margin-bottom: 20px; min-height: 90px; }
.home-testimonial .who { display: flex; align-items: center; gap: 10px; }
.home-testimonial .avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.home-testimonial .who b { display: block; font-size: 13.5px; color: var(--navy); }
.home-testimonial .who .country { font-size: 12px; color: var(--ink-muted); }
.home-testimonial .stars { color: var(--gold); font-size: 12px; margin-top: 3px; }
.home-testimonials-more { text-align: center; margin-top: 30px; }
.home-testimonials-more a {
  display: inline-block; border: 1px solid var(--gold); color: var(--navy); font-weight: 700;
  font-size: 13.5px; padding: 12px 28px; border-radius: 10px; text-decoration: none;
}

/* ── قسم تحميل التطبيق ── */
.home-app { background: #e7f0f7; padding: 76px 28px; margin-top: 20px; }
.home-app-inner {
  max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 50px; align-items: center;
}
.home-app-media { display: flex; justify-content: center; }
.home-app-phones { display: flex; align-items: flex-end; gap: 24px; }
.home-app-phone-photo {
  height: 340px; width: auto; border-radius: 14px; display: block;
  box-shadow: 0 20px 40px rgba(22,33,63,0.18);
}
.home-app-phone-svg { width: 140px; height: auto; display: block; }
.home-app-content h2 { font-size: 34px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.home-app-content p.lead { font-size: 14.5px; color: var(--ink-muted); line-height: 1.9; margin-bottom: 18px; max-width: 440px; }
.home-app-features { list-style: none; margin-bottom: 24px; }
.home-app-features li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); padding: 5px 0; }
.home-app-features li svg { width: 16px; height: 16px; color: var(--navy); flex-shrink: 0; }
.home-app-content .cta-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.home-app-arrow-label {
  display: flex; align-items: center; gap: 12px; font-size: 27px; font-weight: 800;
  color: var(--gold); margin-bottom: 22px;
}
.home-app-arrow-label svg { width: 32px; height: 32px; }
.home-store-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.home-store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff;
  padding: 12px 24px; border-radius: 14px; text-decoration: none;
  box-shadow: 0 12px 26px rgba(22,33,63,0.28); border: 1px solid rgba(255,255,255,0.08);
}
.home-store-badge .store-icon { width: 32px; height: 32px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.store-sub { font-size: 11px; color: rgba(255,255,255,0.75); }
.store-main { font-size: 19px; font-weight: 700; font-family: Arial, sans-serif; }

/* ── تذييل الصفحة الرئيسية ── */
.home-footer-full { background: var(--navy); color: rgba(255,255,255,0.65); padding: 56px 28px 0; }
.home-footer-inner {
  max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 30px; padding-bottom: 40px;
}
.home-footer-col h4 { color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 16px; }
.home-footer-col p, .home-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; margin-bottom: 10px; }
.home-footer-col a:hover { color: #fff; }
.home-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.home-footer-logo-img { height: 140px; width: auto; display: block; }
.home-footer-brand .name { color: #fff; font-size: 18px; font-weight: 800; }
.home-footer-brand .tag { font-size: 15px; color: var(--gold-light); font-weight: 700; display: block; }
.home-footer-desc { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 16px; }
.home-footer-social { display: flex; gap: 10px; }
.home-footer-social a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; margin: 0;
}
.home-footer-social svg { width: 15px; height: 15px; color: #fff; }
.home-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); text-align: center; padding: 18px 0;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}

/* ── الاستجابة ── */
@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-content { text-align: center; }
  .home-hero-content p.lead { margin-inline: auto; }
  .home-hero-actions, .home-trust-line { justify-content: center; }
  .home-why-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-stat:nth-child(3) { border-inline-start: none; }
  .home-values-grid { grid-template-columns: repeat(2, 1fr); }
  .home-steps-row { flex-direction: column; }
  .home-step-arrow { transform: rotate(90deg); margin: 6px 0; }
  .home-nav-links { order: 3; width: 100%; justify-content: center; }
  .home-testimonials-grid { grid-template-columns: 1fr; }
  .home-app-inner { grid-template-columns: 1fr; text-align: center; }
  .home-app-content p.lead { margin-inline: auto; }
  .home-app-features { display: inline-block; text-align: right; }
  .home-store-badges { justify-content: center; }
  .home-footer-inner { grid-template-columns: 1fr 1fr; }
  .home-hero-floating { left: 4%; }
}
@media (max-width: 560px) {
  .home-why-grid { grid-template-columns: 1fr; }
  .home-values-grid { grid-template-columns: 1fr; }
  .home-hero-content h1 { font-size: 38px; }
  .home-footer-inner { grid-template-columns: 1fr; text-align: center; }
  .home-footer-brand { justify-content: center; }
  .home-footer-social { justify-content: center; }
  .home-hero-floating { position: static; margin: 16px auto 0; }
}