/* =========================================
   سراي المتحدة لاستيراد السيارات وقطع غيارها
   ألوان الشعار: أزرق #2574BA  -  أخضر #40AA3E
   ========================================= */

:root {
  --blue: #2574BA;
  --blue-dark: #174E80;
  --green: #40AA3E;
  --green-dark: #2C7F2B;
  --dark: #0F1B2B;
  --text: #2B3440;
  --muted: #6B7685;
  --light: #F3F7FB;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 43, 0.08);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }

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

/* ===== الأزرار ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  transition: transform .25s, box-shadow .25s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 116, 186, .35);
}
.btn-small { padding: 8px 22px; font-size: 14px; }

/* ===== الهيدر ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { height: 58px; }
.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}
.brand-name::after {
  content: "";
  display: block;
  height: 3px;
  width: 50%;
  background: var(--green);
  border-radius: 3px;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-weight: 600;
  position: relative;
  transition: color .2s;
}
.nav a:hover { color: var(--blue); }
.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width .25s;
}
.nav a:hover::after { width: 100%; }

/* ===== السلايدر (CSS فقط) ===== */
.slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--dark);
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  opacity: 0;
  animation: fade 15s infinite;
}
/* الشعار كعلامة مائية خلف كل سلايد */
.slide::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  background: url("images/logo.png") no-repeat center / contain;
  opacity: .12;
}
.s1 { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--green) 130%); animation-delay: 0s; }
.s2 { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, var(--blue) 130%); animation-delay: 5s; }
.s3 { background: linear-gradient(135deg, var(--dark) 0%, var(--blue-dark) 60%, var(--green-dark) 120%); animation-delay: 10s; }

@keyframes fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}

.slide-content {
  position: relative;
  max-width: 750px;
  padding: 0 20px;
  animation: up 15s infinite;
  animation-delay: inherit;
}
@keyframes up {
  0%   { transform: translateY(30px); }
  6%   { transform: translateY(0); }
  100% { transform: translateY(0); }
}
.slide h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
}
.slide p {
  font-size: 20px;
  opacity: .92;
  margin-bottom: 28px;
}
.slide .btn {
  background: var(--white);
  color: var(--blue);
}

/* نقاط السلايدر */
.dots {
  direction: ltr;
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  animation: dot 15s infinite;
}
.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 5s; }
.dots span:nth-child(3) { animation-delay: 10s; }
@keyframes dot {
  0%, 33%   { background: var(--white); width: 30px; border-radius: 10px; }
  34%, 100% { background: rgba(255, 255, 255, .4); width: 12px; border-radius: 50%; }
}

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

.title {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.title.center { text-align: center; margin-bottom: 50px; }
.title.center::after { right: 50%; transform: translateX(50%); }

/* ===== من نحن ===== */
.about {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-text { flex: 1.3; }
.about-text p { font-size: 17px; color: var(--muted); }
.about-text strong { color: var(--blue); }
.about-img {
  flex: 1;
  height: 360px;
  border-radius: 24px;
  background: url("images/logo.png") no-repeat center / 62% , var(--light);
  border: 2px solid #E3EBF3;
}
.stats {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}
.stats div {
  flex: 1;
  background: var(--white);
  border: 1px solid #E3EBF3;
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stats b {
  display: block;
  font-size: 28px;
  color: var(--green);
}
.stats span { font-size: 14px; color: var(--muted); }

/* ===== الخدمات ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform .3s, border-color .3s;
}
.card:nth-child(even) { border-top-color: var(--green); }
.card:hover { transform: translateY(-8px); }
.card .icon {
  font-size: 40px;
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: var(--light);
}
.card h3 { color: var(--dark); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== شريط الماركات المتحرك ===== */
.marquee {
  overflow: hidden;
  direction: ltr;
  background: linear-gradient(90deg, var(--blue), var(--green));
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 25s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  padding: 0 40px;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, .3);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== تواصل معنا ===== */
.contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.contact-box {
  background: var(--white);
  padding: 35px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.contact-box:hover { transform: translateY(-6px); }
.contact-box .icon { font-size: 38px; margin-bottom: 8px; }
.contact-box h3 { color: var(--blue); }
.contact-box p { font-size: 17px; font-weight: 600; color: var(--dark); word-break: break-word; }

/* ===== الفوتر ===== */
.footer {
  background: var(--dark);
  color: #B9C3CF;
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}
.footer .logo {
  height: 80px;
  margin-bottom: 12px;
  background: var(--white);
  border-radius: 16px;
  padding: 8px;
}

.footer-contact { margin-bottom: 8px; font-size: 15px; }
.footer-contact a { color: var(--white); }
.footer-contact a:hover { color: var(--green); }

/* ===== زر الواتساب العائم ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  z-index: 200;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== الجوال ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .cards, .contact { grid-template-columns: repeat(2, 1fr); }
  .about { flex-direction: column; }
  .about-img { width: 100%; height: 260px; }
  .slide h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .header-inner { height: 68px; }
  .brand .logo { height: 46px; }
  .brand-name { font-size: 18px; }
  .slider { height: 480px; }
  .slide h1 { font-size: 26px; }
  .slide p { font-size: 16px; }
  .slide::before { width: 260px; height: 260px; left: 50%; transform: translate(-50%, -50%); }
  .cards, .contact { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .section { padding: 60px 0; }
  .title { font-size: 28px; }
}
