/* ===================== تعريف المتغيرات (الألوان والأبعاد) ===================== */
:root {
  --primary: #ff8c00;
  --primary-dark: #e67e22;
  --secondary: #ffb703;
  --bg-body: #f0f2f5;
  --surface: #ffffff;
  --text-main: #050505;
  --text-sub: #65676b;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===================== أساسيات الصفحة ===================== */
body {
  background-color: var(--bg-body);
  font-family: "Cairo", sans-serif;
  margin: 0;
  padding-bottom: 90px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* إخفاء شريط التمرير للمتصفح بالكامل لمظهر أنيق */
::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* ===================== 1. شاشة الترحيب (Intro) ===================== */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* خلفية برتقالية بتدرج لوني فخم */
  background: linear-gradient(135deg, #ff8c00, #ff5722);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff; /* النص أبيض */
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}

/* كلاس للإخفاء */
.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-scene {
  display: none;
  text-align: center;
  padding: 0 20px;
  /* حركة ظهور ناعمة */
  animation: slideUpFade 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.intro-scene.active {
  display: block;
}

/* الأيقونات */
.intro-icon-lg {
  font-size: 5.5rem;
  margin-bottom: 25px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2)); /* ظل خفيف للأيقونة */
  color: #fff !important; /* إجبار اللون الأبيض */
}

.intro-logo {
  width: 140px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.intro-text {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 15px;
  line-height: 1.4;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.intro-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 600;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* حركة النصوص */
@keyframes slideUpFade {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.discount-ticker-container {
  background: #222;
  color: #fff;
  height: 40px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--secondary);
}

.discount-track {
  display: flex;
  white-space: nowrap;
  animation: tickerMove 30s linear infinite;
}

.discount-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.rotating-badge {
  color: var(--secondary);
  font-size: 1rem;
  animation: spin 4s linear infinite;
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  } /* RTL Movement */
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ===================== 3. هيرو سلايدر ===================== */
.hero-slider-section {
  margin: 10px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  height: 220px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #ddd;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  animation: zoomSlow 15s infinite alternate;
}

@keyframes zoomSlow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 3;
}
.hero-content {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 4;
  color: #fff;
  text-align: right;
}
.hero-content h2 {
  margin: 0;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.hero-content p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===================== 4. شبكة الخدمات ===================== */
.services-grid-section {
  padding: 5px 10px;
}

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

.service-card {
  background: var(--surface);
  padding: 12px 5px;
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.service-card:active {
  background: #f9f9f9;
  transform: scale(0.98);
}

.serv-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* ألوان الأيقونات المحدثة لتناسب البرتقالي */
.serv-icon.orange_theme {
  background: linear-gradient(135deg, #ff9800, #e65100);
}
.serv-icon.red {
  background: linear-gradient(135deg, #ff7043, #d84315);
} /* برتقالي محمر */
.serv-icon.blue {
  background: linear-gradient(135deg, #42a5f5, #1565c0);
}
.serv-icon.green {
  background: linear-gradient(135deg, #66bb6a, #2e7d32);
}
.serv-icon.purple {
  background: linear-gradient(135deg, #ab47bc, #6a1b9a);
}
.serv-icon.orange {
  background: linear-gradient(135deg, #ffa726, #ef6c00);
}
.serv-icon.black {
  background: linear-gradient(135deg, #424242, #000000);
}

.service-card h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ===================== 5. الأقسام المتحركة ===================== */
.scrolling-section {
  margin-top: 20px;
  background: #fff;
  padding-top: 15px;
  padding-bottom: 20px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 15px;
}
.section-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-all-btn {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  background: rgba(255, 140, 0, 0.05); /* خلفية برتقالية شفافة */
  padding: 5px 10px;
  border-radius: var(--radius-btn);
}

.scroll-track-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-track-container::-webkit-scrollbar {
  display: none;
}

.scroll-track {
  display: inline-flex;
  gap: 12px;
  padding: 0 15px;
}

/* ===================== 6. تصميم بطاقة الفيسبوك البرتقالية ===================== */
.fb-card {
  display: inline-block;
  width: 260px;
  min-width: 260px;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid #e4e6eb;
  position: relative;
  text-align: right;
  white-space: normal;
  vertical-align: top;
}

.fb-card-cover {
  width: 100%;
  height: 120px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  position: relative;
}
.fb-card-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.4)
  );
}

.cover-overlay-text {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary); /* برتقالي */
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.discount-badge.new {
  background: var(--secondary);
  color: #000;
}
.discount-badge.blue {
  background: #2196f3;
}
.discount-badge.orange_alt {
  background: #ff5722;
}

.fb-card-body {
  position: relative;
  padding: 12px;
  padding-top: 45px;
}

.fb-profile-img {
  position: absolute;
  top: -40px;
  right: 12px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: #fff;
  overflow: hidden;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.fb-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-stars {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.price-text {
  color: var(--primary); /* برتقالي */
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0;
}

/* ===================== 7. بنرات الانضمام المحدثة ===================== */
.join-us-container {
  padding: 10px 15px;
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.join-banner {
  background: linear-gradient(135deg, #333, #555);
  border-radius: var(--radius-card);
  padding: 15px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.join-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.join-banner.driver {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
}
.join-banner.partner {
  background: linear-gradient(135deg, #ff8c00, #e65100);
} /* تحويل للأورنج */

.join-text h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}
.join-text p {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 400;
}
.join-icon {
  font-size: 2rem;
  opacity: 0.8;
}

/* ===================== التجاوب ===================== */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-slider-section {
    height: 350px;
    margin: 20px;
  }
  .fb-card {
    width: 300px;
    min-width: 300px;
    transition: transform 0.3s;
  }
  .fb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  .join-us-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================== تعديل حجم اللوغو الجديد ===================== */
.h-logo-img {
  height: 73px !important;
  width: auto !important;
  max-height: none !important;
  object-fit: contain;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    1fr
  ); /* هنا صلحناها عشان يعرض مربعين بس جنب بعض */
  gap: 15px; /* المسافة بين المربعين */
  padding-right: 25px; /* المسافة من اليمين */
  padding-left: 25px; /* المسافة من الشمال */
}
