/* =====================================================
   المستحدث الأول لاستيراد السيارات وقطع غيارها
   ألوان الشعار:
   أزرق كحلي  #0D47A1
   أحمر       #D32F2F
   رمادي      #757575
   أبيض فاتح  #F5F5F5
   ===================================================== */

:root {
  --blue: #0D47A1;
  --navy: #0A2A5E;
  --red: #D32F2F;
  --gray: #757575;
  --light: #F5F5F5;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  color: #222;
  background: var(--white);
  line-height: 1.8;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
}

/* ===== الشريط العلوي ===== */
.topbar {
  background: var(--navy);
  color: var(--light);
  font-size: 14px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== الهيدر ===== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}
.brand img { height: 55px; width: auto; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; }

/* ===== الأزرار ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  transition: 0.3s;
}
.btn-sm { padding: 8px 22px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #b71c1c; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue); }

/* ===== السلايدر (CSS فقط) ===== */
.slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  direction: ltr;              /* للتحكم في حركة السلايدات */
}
.slides {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slide 15s infinite;
}
.slider:hover .slides,
.slider:hover .dot { animation-play-state: paused; }

.slide {
  width: 33.3333%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

/* خلفيات السلايدات بألوان الشعار */
.slide-1 { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 65%, #1565C0 100%); }
.slide-2 { background: linear-gradient(120deg, #0B1F45 0%, var(--navy) 55%, var(--blue) 100%); }
.slide-3 { background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 60%, #8E1B1B 100%); }

/* أشكال زخرفية: خط الشعار الدائري */
.slide::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 260px;
  border: 14px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(211, 47, 47, 0.55);
  border-radius: 50%;
  left: -150px;
  top: 40px;
  transform: rotate(-12deg);
}
.slide::after {
  content: "⚙";
  position: absolute;
  font-size: 380px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  left: 4%;
  bottom: -90px;
}

.slide-content {
  direction: rtl;
  text-align: right;
  position: relative;
  z-index: 2;
}
.tag {
  display: inline-block;
  background: var(--red);
  padding: 4px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.slide h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}
.slide p {
  font-size: 19px;
  max-width: 560px;
  color: #dfe7f5;
  margin-bottom: 26px;
}
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }

@keyframes slide {
  0%, 28%   { transform: translateX(0); }
  33%, 61%  { transform: translateX(-33.3333%); }
  66%, 95%  { transform: translateX(-66.6666%); }
  100%      { transform: translateX(0); }
}

/* مؤشرات السلايدر */
.dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: dot 15s infinite;
}
.d2 { animation-delay: 5s; }
.d3 { animation-delay: 10s; }
@keyframes dot {
  0%, 30%   { background: var(--red); width: 30px; border-radius: 6px; }
  33%, 100% { background: rgba(255, 255, 255, 0.4); width: 12px; }
}

/* ===== الأقسام ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--light); }

.title {
  font-size: 34px;
  color: var(--navy);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
}
.title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(to left, var(--red) 50%, var(--blue) 50%);
  border-radius: 2px;
}
.title.center { text-align: center; }
.title.center::after { right: 50%; transform: translateX(50%); }
.title.light { color: var(--white); }

/* من نحن */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text p { color: #444; margin-bottom: 14px; font-size: 17px; }
.about-text strong { color: var(--blue); }
.about-logo {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 35px rgba(13, 71, 161, 0.15);
  border-bottom: 5px solid var(--red);
}

.stats { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 110px;
  text-align: center;
  background: var(--light);
  border-radius: 12px;
  padding: 14px 8px;
}
.stat b {
  display: block;
  font-size: 36px;
  font-style: italic;
  color: var(--blue);
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.2;
}
.stat b.red { color: var(--red); }
.stat span { font-size: 14px; color: var(--gray); font-weight: 600; }

/* خدماتنا */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 22px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--blue);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  border-top-color: var(--red);
  box-shadow: 0 14px 30px rgba(13, 71, 161, 0.18);
}
.icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.card h3 { color: var(--navy); margin-bottom: 8px; font-size: 20px; }
.card p { color: var(--gray); font-size: 15px; }

/* لماذا نحن */
.why {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-item {
  text-align: center;
  padding: 26px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}
.why-item:hover { background: var(--red); border-color: var(--red); }
.why-item span { font-size: 34px; display: block; margin-bottom: 6px; }
.why-item h4 { font-size: 19px; }
.why-item p { color: #cfd9ec; font-size: 14px; }
.why-item:hover p { color: var(--white); }

/* اتصل بنا */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-box p { word-break: break-word; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.contact-box {
  text-align: center;
  background: var(--light);
  padding: 34px 20px;
  border-radius: 16px;
  transition: 0.3s;
  border-bottom: 4px solid transparent;
}
.contact-box:hover {
  background: var(--white);
  border-bottom-color: var(--red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.contact-box h4 { color: var(--navy); font-size: 20px; }
.contact-box p { color: var(--gray); font-weight: 600; font-size: 17px; }

/* الفوتر */
.footer {
  background: #071A3D;
  color: #b9c4d8;
  text-align: center;
  padding: 26px 0;
  font-size: 14px;
  border-top: 4px solid var(--red);
}
.footer .slogan {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

/* زر واتساب العائم */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 200;
  transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== التجاوب مع الشاشات الصغيرة ===== */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 16px; font-size: 14px; }
  .cards, .why-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .slide h1 { font-size: 34px; }
}

@media (max-width: 560px) {
  .slider { height: 480px; }
  .slide h1 { font-size: 27px; }
  .slide p { font-size: 16px; }
  .cards, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  .title { font-size: 27px; }
  .section { padding: 55px 0; }
}
