/* ============================================
   hero-v2.css — Hero Section المبهر
   Full-Width Image + Wave + Overlapping Cards
   ============================================ */

/* ==========================================
   HERO V2 — Full Screen
   ========================================== */
.hero-v2 {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;  /* مهم للـ Cards اللي بتطلع من تحت */
}

/* ---- الصورة الكاملة في الخلفية ---- */
.hero-v2__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-v2__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ---- طبقة Overlay (تعتيم مع تدرج أخضر-أزرق) ---- */
.hero-v2__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 47, 0.50) 0%,
    rgba(13, 110, 100, 0.45) 40%,
    rgba(10, 80, 130, 0.60) 70%,
    rgba(8, 28, 42, 0.85) 100%
  );
}

/* ---- المحتوى النصي ---- */
.hero-v2__content {
  position: relative;
  z-index: 2;
  padding-top: 10vh;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  max-width: 760px;
}

/* ---- Badge ---- */
.hero-v2__badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-v2__badge svg {
  color: var(--clr-accent);
}

/* ---- العنوان الكبير ---- */
.hero-v2__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--font-black);
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-v2__title-accent {
  display: inline;
  background: linear-gradient(135deg, #f59e0b, #10c987);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* خط تحت الكلمة المميزة */
.hero-v2__title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #10c987);
  border-radius: 2px;
  animation: fadeInRight 0.8s ease 0.8s both;
}

/* ---- الوصف ---- */
.hero-v2__desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.9;
  max-width: 580px;
  animation: fadeInUp 0.7s ease 0.35s both;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  font-weight: 500;
}

/* ---- الأزرار ---- */
.hero-v2__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  animation: fadeInUp 0.7s ease 0.5s both;
}

.hero-v2__btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.hero-v2__btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* ==========================================
   WAVE DIVIDER
   ========================================== */
.hero-v2__wave {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-bottom: -2px;
  flex-shrink: 0;
}

.hero-v2__wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ==========================================
   OVERLAPPING STATS CARDS
   بتطلع فوق الـ Wave وتدخل في القسم التالي
   ========================================== */
.hero-v2__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  /* الخدعة: margin سالب يخلي الكاردات تطلع من الـ Hero */
  margin-top: -3.5rem;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 10;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-v2__card {
  background: linear-gradient(135deg, #0d9e6e 0%, #0b8fa8 60%, #0a7ab5 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 8px 40px rgba(13, 158, 110, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: var(--transition-bounce);
}

.hero-v2__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(13, 158, 110, 0.18);
  border-color: rgba(13, 158, 110, 0.25);
}

.hero-v2__card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-bounce);
}

.hero-v2__card:hover .hero-v2__card-icon {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1) rotate(-5deg);
}

.hero-v2__card-icon svg {
  width: 24px;
  height: 24px;
  color: white;
  transition: var(--transition-base);
}

.hero-v2__card:hover .hero-v2__card-icon svg {
  color: white;
}

/* أيقونة ذهبية */
.hero-v2__card-icon--gold {
  background: rgba(255, 255, 255, 0.20);
}

.hero-v2__card-icon--gold svg {
  color: #fde68a;
}

.hero-v2__card:hover .hero-v2__card-icon--gold {
  background: rgba(255, 255, 255, 0.35);
}

.hero-v2__card:hover .hero-v2__card-icon--gold svg {
  color: white;
}

/* أيقونة زرقاء */
.hero-v2__card-icon--blue {
  background: rgba(255, 255, 255, 0.20);
}

.hero-v2__card-icon--blue svg {
  color: #bae6fd;
}

.hero-v2__card:hover .hero-v2__card-icon--blue {
  background: rgba(255, 255, 255, 0.35);
}

.hero-v2__card:hover .hero-v2__card-icon--blue svg {
  color: white;
}

.hero-v2__card-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  color: white;
  line-height: 1;
  margin-bottom: var(--space-1);
  -webkit-text-fill-color: white;
}

.hero-v2__card-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-v2__cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -2rem;
  }
}

@media (max-width: 768px) {
  .hero-v2 {
    min-height: 80vh;
  }

  .hero-v2__content {
    padding-bottom: 4rem;
  }

  .hero-v2__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-v2__desc {
    font-size: var(--text-base);
  }

  .hero-v2__cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -1.5rem;
    gap: var(--space-3);
  }

  .hero-v2__card {
    padding: var(--space-4);
  }

  .hero-v2__card-number {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .hero-v2__cards {
    grid-template-columns: 1fr 1fr;
  }

  .hero-v2__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-v2__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
