/* ===============================
   RESET + BASE
================================ */
*{
  box-sizing: border-box;
  font-family: Tahoma, Arial, sans-serif;
}

body{
  margin: 0;
  background: #f5f5f5;
  color: #0f172a;
}

/* العربية فقط */
html[lang="ar"] body{
  direction: rtl;
}

/* الإنجليزية فقط */
html[lang="en"] body,
html[lang="en-US"] body{
  direction: ltr;
}


/* ===============================
   HERO
================================ */
.hero{
  background:
    linear-gradient(rgba(19,32,48,.7), rgba(19,32,48,.7)),
    var(--hero-image, url("images/hero.jpg")) center / cover no-repeat;
  padding: 80px 0;
  color: #fff;
}

.hero-container{
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

/* ===============================
   HERO TEXT
================================ */
.hero-text{
  flex: 1;
}

.hero-text h1{
  font-size: 32px;
  line-height: 1.6;
  margin: 0;
}

.hero-text h1 span{
  color: #da250d;
}

.hero-text p{
  margin: 20px 0 28px;
  font-size: 16px;
  line-height: 1.7;
}

.cta-btn{
  display: inline-block;
  background: #da250d;
  color: #fff;
  padding: 14px 34px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: .25s;
}

.cta-btn:hover{
  opacity: .9;
}

/* ===============================
   FORM
================================ */
.hero-form{
  flex: 1;
  max-width: 420px;
  width: 100%;
  background: #fff;
  color: #000;
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.hero-form h3{
  text-align: center;
  margin-bottom: 18px;
}

.hero-form input{
  width: 100%;
  padding: 13px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
}

.hero-form input:focus{
  border-color: #da250d;
}

.hero-form button{
  width: 100%;
  padding: 14px;
  background: #da250d;
  border: none;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

/* ===============================
   PHONE FIELD
================================ */
.phone-field{
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
}

.phone-field:focus-within{
  border-color: #da250d;
}

.country-box{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  cursor: pointer;
  border-left: 1px solid #eee;
}

.country-box img{
  width: 22px;
  height: 14px;
}

.arrow{
  font-size: 12px;
}

.phone-input{
  flex: 1;
  border: none;
  padding: 13px;
  outline: none;
  font-size: 14px;
}

/* ===============================
   COUNTRY DROPDOWN
================================ */
.country-dropdown{
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  border-radius: 0 0 12px 12px;
  display: none;
  z-index: 999;
  max-height: 300px;
  overflow: hidden;
}

.country-dropdown input{
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #eee;
  outline: none;
}

.country-dropdown ul{
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.country-dropdown li{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.country-dropdown li:hover{
  background: #f5f5f5;
}

/* ===============================
   STATS
================================ */
.stats{
  background: #ffffff;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  text-align: center;
}

.stats div{
  font-size: 26px;
  font-weight: bold;
}

.stats span{
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* ===============================
   SERVICES
================================ */
.services-section{
  padding: 80px 20px;
  background: #f7f9fc;
}

.section-head{
  text-align: center;
  margin-bottom: 50px;
}

.section-label{
  font-size: 28px;
  font-weight: bold;
  color: #da250d;
}

.services-grid{
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card{
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: .3s ease;
  text-align: center;
}

.service-card:hover{
  transform: translateY(-6px);
}

.service-card img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.service-card h3{
  margin: 0 0 10px;
  font-size: 18px;
}

.service-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* ===============================
   WHATSAPP
================================ */
.whatsapp-float{
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}

.whatsapp-btn{
  width: 55px;
  height: 55px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-btn svg{
  width: 28px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px){
  .hero-text h1{
    font-size: 28px;
  }
}

@media (max-width: 768px){
  .hero{
    padding: 60px 0;
    text-align: center;
  }

  .hero-container{
    flex-direction: column;
  }

  .hero-text h1{
    font-size: 22px;
  }

  .hero-text p{
    font-size: 14px;
  }

  .cta-btn{
    padding: 12px 26px;
    font-size: 14px;
  }
}

@media (max-width: 480px){
  .hero{
    padding: 45px 0;
  }

  .hero-text h1{
    font-size: 20px;
  }

  .hero-form{
    padding: 20px;
    border-radius: 14px;
  }

  .hero-form input,
  .phone-input{
    padding: 11px;
    font-size: 14px;
  }

  .whatsapp-float{
    bottom: 15px;
    left: 15px;
  }
}
/* تعطيل أي Hover على زر واتساب */
.hero .cta-btn,
.hero .cta-btn:hover,
.hero .cta-btn:focus,
.hero .cta-btn:active{
  background-color: #da250d !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}
.form-error{
  display: none;
  background: #fee2e2;
  color: #991b1b;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  text-align: center;
}
.country-box.error{
  border: 1px solid #dc2626;
  border-radius: 6px;
}
/* ===============================
   FORM VALIDATION (IMPROVED)
================================ */

/* رسالة الخطأ */
.form-error{
  display: none;
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
  animation: fadeInError .25s ease-in-out;
}

/* أنيميشن خفيفة */
@keyframes fadeInError{
  from{
    opacity: 0;
    transform: translateY(-4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* تلوين حقل البلد عند الخطأ */
.country-box.error{
  border: 1px solid #dc2626 !important;
  border-radius: 6px;
  background: #fff5f5;
}

/* (اختياري) تلوين أي input فيه خطأ */
input.input-error{
  border-color: #dc2626 !important;
  background: #fff5f5;
}

/* منع تداخل لون الفوكس مع الخطأ */
input.input-error:focus{
  border-color: #dc2626 !important;
}
