/* --- التحكم في الاتجاه حسب اللغة --- */
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* --- شاشة التحميل (Page Loader) --- */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #002317;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  width: 75px;
  height: 75px;
  object-fit: contain;
  z-index: 2;
  animation: loaderPulse 2s infinite ease-in-out;
}

.loader-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(200, 160, 93, 0.15);
  border-top: 3px solid #C8A05D;
  border-right: 3px solid #DAA96C;
  border-radius: 50%;
  animation: loaderSpin 1.1s linear infinite;
}

.loader-text {
  margin-top: 20px;
  color: #C8A05D;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: loaderFade 1.5s infinite ease-in-out;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes loaderFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- حركة التنقل السلس والانسيابي بين الصفحات --- */
body { 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Cairo', sans-serif; 
  background-color: #fcfcfc; 
  padding: 10px 20px; 
  min-height: 100vh;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

body.page-fade-out {
  opacity: 0;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

.main-container { 
  max-width: 1200px; 
  margin: 0 auto; 
} 

/* --- Navbar --- */ 
.header-navbar { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 15px; 
  padding: 10px 0; 
  background: transparent; 
  box-shadow: none; 
  margin-bottom: 15px;
  position: relative;
  z-index: 100;
  height: auto !important; 
} 

.brand-logo-link { 
  display: flex; 
  align-items: center; 
  text-decoration: none; 
  position: relative; 
  z-index: 110;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  width: auto !important;
} 

.site-logo { 
  height: 95px !important; 
  width: auto !important; 
  max-width: 100% !important;
  object-fit: contain !important; 
  display: block !important; 
  filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.12));
  transition: transform 0.3s ease, filter 0.3s ease;
  margin: 0 !important;
  transform: none !important;
} 

.site-logo:hover {
  transform: scale(1.03) !important;
}

.nav-links { 
  display: flex; 
  align-items: center;
  gap: 20px; 
  transition: all 0.3s ease;
} 

.nav-links .nav-menu-link { 
  position: relative; 
  text-decoration: none; 
  padding-bottom: 6px; 
  color: #003322; 
  font-size: 19px; 
  font-weight: bold; 
  transition: color 0.3s ease; 
  white-space: nowrap; 
} 

.nav-links .nav-menu-link.active::before, 
.nav-links .nav-menu-link:hover::before { 
  content: ""; 
  position: absolute; 
  bottom: -2px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 45px; 
  height: 1px; 
  background-color: #C8A05D; 
  z-index: 1; 
} 

.nav-links .nav-menu-link.active::after, 
.nav-links .nav-menu-link:hover::after { 
  content: ""; 
  position: absolute; 
  bottom: -3px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 15px; 
  height: 3px; 
  background-color: #003322; 
  border-radius: 2px; 
  z-index: 2; 
} 

/* زر تحويل اللغة */
.lang-switch-btn {
  background-color: #20453B;
  color: #ffffff;
  border: 1px solid #C8A05D;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch-btn:hover {
  background-color: #C8A05D;
  color: #003322;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(200, 160, 93, 0.3);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: #003322;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Banner --- */ 
.hero-banner-section { 
  width: 100%; 
  min-height: 360px; 
  margin: 0 auto 15px auto; 
  background-color: #ffffff; 
  background-size: cover; 
  background-repeat: no-repeat; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.06); 
  display: flex; 
  align-items: center; 
  justify-content: flex-start; 
  padding: 0 50px; 
  position: relative; 
  overflow: hidden; 
} 

html[dir="rtl"] .hero-banner-section {
  background-position: left center;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 0;

  clip-path: polygon(
    0% 0%, 
    100% 0%, 
    100% 100%, 
    20% 100%, 
    0% 60%
  );
}

html[dir="rtl"] .hero-banner-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    270deg, 
    #ffffff 0%, 
    rgba(255, 255, 255, 0.95) 35%, 
    rgba(255, 255, 255, 0.5) 65%, 
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

html[dir="ltr"] .hero-banner-section {
  background-position: right center;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 0;

  clip-path: polygon(
    0% 0%, 
    100% 0%, 
    100% 60%, 
    80% 100%, 
    0% 100%
  );
}

html[dir="ltr"] .hero-banner-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    90deg, 
    #ffffff 0%, 
    rgba(255, 255, 255, 0.95) 35%, 
    rgba(255, 255, 255, 0.5) 65%, 
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.hero-text-container { 
  max-width: 450px; 
  position: relative;
  z-index: 5; 
} 

.hero-main-title { 
  font-size: 28px; 
  font-weight: 700; 
  line-height: 1.3; 
  color: #20453B; 
  margin-bottom: 12px; 
} 

.hero-sub-description { 
  font-size: 14px; 
  font-weight: 600; 
  line-height: 1.6; 
  color: #555555; 
  margin-bottom: 18px; 
} 

.hero-action-buttons { 
  display: flex; 
  gap: 12px; 
  justify-content: flex-start; 
} 

.btn-gold-action { 
  width: 145px; 
  height: 44px; 
  background: #DAA96C; 
  border-radius: 22px; 
  border: none; 
  color: #ffffff; 
  font-size: 15px; 
  font-weight: bold; 
  font-family: 'Cairo', sans-serif;
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
} 

.btn-gold-action:hover { 
  background: #c5965b; 
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 18px rgba(218, 169, 108, 0.4);
} 

.btn-outline-green-action { 
  width: 145px; 
  height: 44px; 
  background: transparent; 
  border: 2px solid #20453B; 
  border-radius: 22px; 
  color: #20453B; 
  font-size: 15px; 
  font-weight: 600; 
  font-family: 'Cairo', sans-serif;
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
} 

.btn-outline-green-action:hover { 
  background-color: #20453B; 
  color: #ffffff; 
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 18px rgba(32, 69, 59, 0.3);
} 

/* --- شبكة المميزات --- */ 
.features-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 15px; 
  margin: 15px 0; 
} 

.feature-card-item { 
  height: 75px; 
  background: #FFFFFF; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); 
  border-radius: 20px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0 20px; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
} 

.feature-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-card-item img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-info h3 { font-size: 16px; color: #20453B; } 
.feature-info p { font-size: 12px; color: #6C6868; } 

/* --- قسم عن الشركة --- */ 
.about-company-box { 
  min-height: 160px; 
  background: #FFFFFF; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); 
  border-radius: 20px; 
  margin: 15px auto; 
  display: flex; 
  overflow: hidden; 
} 

.about-image-side { 
  width: 30%; 
  min-height: 160px; 
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
} 

.about-text-side { 
  width: 70%; 
  padding: 20px 30px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
} 

.about-box-title { color: #20453B; font-size: 18px; } 

.title-divide {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 12px 0;
}

.title-divide img {
  width: 140px; 
  height: auto; 
  object-fit: contain;
  display: block;
}

.about-box-desc { max-width: 650px; font-size: 13px; line-height: 1.6; color: #555; } 

/* --- شريط الشارات السريعة --- */ 
.quick-badges-bar { 
  height: 50px; 
  background: #FFFFFF; 
  border: 1px solid #C8A05D; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
  border-radius: 12px; 
  margin: 15px auto 0 auto; 
  display: flex; 
  justify-content: space-around; 
  align-items: center; 
  padding: 0 15px; 
} 

.badge-inline-item { 
  font-weight: 600; 
  font-size: 14px; 
  color: #20453B; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
} 

.badge-inline-item:hover {
  color: #C8A05D;
  background-color: rgba(200, 160, 93, 0.1);
  transform: translateY(-2px) scale(1.05);
}

.badge-inline-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.badge-inline-item:hover img {
  transform: rotate(10deg) scale(1.1);
}

/* --- زر الواتساب المثبت --- */
.whatsapp-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px; 
  width: 55px;
  height: 55px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .features-grid { 
    grid-template-columns: repeat(2, 1fr); 
  } 
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header-navbar {
    padding: 5px 0;
  }

  .brand-logo-link {
    display: flex !important;
    z-index: 102;
  }

  .site-logo {
    display: block !important;
    height: 65px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    gap: 15px;
    align-items: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-banner-section { 
    height: auto; 
    padding: 30px 20px; 
    justify-content: center; 
    clip-path: none !important;
    border-radius: 20px; 
    margin-top: 10px;
  } 

  .hero-banner-section::before {
    background: linear-gradient(
      180deg, 
      rgba(255, 255, 255, 0.95) 0%, 
      rgba(255, 255, 255, 0.8) 60%, 
      rgba(255, 255, 255, 0.3) 100%
    );
  }

  .hero-text-container { 
    text-align: center; 
    max-width: 100%;
  } 

  .hero-main-title { font-size: 22px; }
  .hero-sub-description { font-size: 13px; }

  .hero-action-buttons { 
    justify-content: center; 
    flex-direction: column;
    align-items: center;
  } 

  .btn-gold-action, .btn-outline-green-action {
    width: 100%;
    max-width: 250px;
  }

  .features-grid { 
    grid-template-columns: 1fr; 
  } 

  .about-company-box { 
    flex-direction: column; 
  } 

  .about-image-side { 
    width: 100%; 
    height: 140px; 
  } 

  .about-text-side { 
    width: 100%; 
    padding: 20px 15px;
  } 

  .quick-badges-bar {
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding: 12px 10px;
  }
}