/* ==============================
   إعادة تعيين أساسية
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 90px;
  direction: rtl;
}

html, body {
  height: 100%;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  background: #f8f9fa;
  color: #222;
  scroll-behavior: smooth;
}

body {
  padding-top: 75px;
  font-size: 16px;
  overflow-x: hidden;
}

/* ==============================
   Navbar
============================== */
.navbar {
  background: linear-gradient(90deg, #610101 0%, #e00a0a 100%);
  box-shadow: 0 2px 5px rgba(245, 2, 2, 0.796);
  z-index: 1030;
}

.navbar .nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 100px;
  transition: all 0.4s;
  cursor: pointer;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #e00a0a;
  background-color: transparent;
}

.navbar .nav-link.active {
  color: #e00a0a;
  background-color: transparent;
  font-weight: bold;
}

.navbar .btn-hotline {
  background-color: #5cb85c;
  color: white;
  font-weight: bold;
  border-radius: 100px;
  padding: 8px 25px;
  transition: all 0.3s;
}

.navbar .btn-hotline:hover {
  background-color: #218838;
  transform: scale(1.1);
}

.navbar .btn-hotline i {
  pointer-events: none;
}

/* ==============================
   Header / الهيدر
============================== */
header {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  color: white;
  padding: 20px 10px;
  background-image: url('../images/header-bg.jpg');
  background-size: cover;
  background-position: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header * {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 2rem;
  padding-top: 15px;
}

header .lead {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.btn-curved {
  background-color: #e00a0a;
  color: white;
  font-weight: bold;
  border-radius: 100px;
  padding: 8px 25px;
  transition: all 0.3s;
}

.btn-curved:hover {
  background-color: #ff4f41;
}

/* ==============================
   الأقسام العامة
============================== */
section, #services, #contact, #faq, #about {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
  scroll-margin-top: 90px;
}

/* ==============================
   الكروت والقيم والشهادات
============================== */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 25px;
  margin-bottom: 15px;
}

.logo-small {
  width: 45px;
  height: 45px;
  background: #fff;
  color: #e00a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.values-section {
  padding: 30px 15px;
  background: #f9f9f9;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.value-box {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-box h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #c0392b;
}

.value-box p {
  font-size: 13px;
  line-height: 1.4;
  color: #444;
}

.value-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.testimonial-card {
  background-color: #fdfdfd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  align-items: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.stars {
  color: #ffcc00;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* ==============================
   قسم الخدمات (الصورة على اليمين والنص RTL)
============================== */
#services .service-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-direction: row; /* الصورة على اليمين والنص على الشمال */
  text-align: right; /* النص يظهر من اليمين لليسار */
}

#services .service-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

#services .service-item .service-text {
  flex: 1;
  direction: rtl; /* لضبط النص العربي */
}

#services .service-item h3 {
  color: #e00a0a;
  font-weight: bold;
  margin-bottom: 10px;
}

#services .service-item p {
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Media Queries لتغيير الترتيب في الشاشات الصغيرة */
@media (max-width: 992px) {
  #services .service-item {
    flex-direction: column; /* الصور فوق والنص تحت */
    text-align: center;
  }

  #services .service-item img {
    max-width: 350px;
    margin-bottom: 10px;
  }

  #services .service-item .service-text {
    order: unset;
    direction: rtl; /* النص يبقى RTL حتى في الموبايل */
    text-align: center;
  }
}

/* ==============================
   قسم التواصل
============================== */
#contact .contact-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin: 15px auto;
}

#contact .phone-list,
#contact .landline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

#contact .phone-list li,
#contact .landline-list li {
  background: #e00a0a;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: bold;
}

.accordion-button {
  background-color: #e00a0a;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  margin-bottom: 3px;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  background-color: #f1f5f9;
  color: #333;
  border-radius: 0 0 10px 10px;
  padding: 10px;
}

/* ==============================
   الأزرار العامة والاتصال العائم
============================== */
.hotline {
  font-size: 16px;
  margin: 5px 0;
}

.btn-hotline {
  background-color: #5cb85c;
  color: white;
  font-weight: bold;
  border-radius: 100px;
  padding: 8px 25px;
  transition: all 0.3s;
}

.btn-hotline:hover {
  background-color: #4cae4c;
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  z-index: 9999;
  box-shadow: 0 6px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.floating-btn:hover {
  transform: scale(1.15);
}

.call-btn {
  left: 20px;
  background-color: #dc3545;
}

.whatsapp-btn {
  right: 20px;
  background-color: #25d366;
}

/* ==============================
   الخريطة التفاعلية
============================== */
.map-container {
  width: 100%;
  max-width: 600px;
  height: 200px;
  margin: 20px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==============================
   Footer
============================== */
footer {
  background: #c23333;
  color: #fff;
  text-align: center;
  padding: 5px 5px;
}

/* ==============================
   تأثيرات عامة
============================== */
.fade {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   Media Queries عامة
============================== */
@media (max-width: 1200px) {
  section, #services, #contact, #faq, #about {
    padding: 20px 10px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }

  header .lead {
    font-size: 1rem;
  }

  #services .service-item img {
    max-width: 300px;
  }

  #contact .contact-image {
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 1.4rem;
  }

  header .lead {
    font-size: 0.9rem;
  }

  section, #services, #contact, #faq, #about {
    padding: 10px 5px;
  }

  #services .service-item img,
  #contact .contact-image {
    width: 100%;
    height: auto;
  }
}
