/* === إعدادات عامة === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../assets/fonts/Tajawal/Tajawal-Regular.ttf') format('truetype');
  font-display: swap;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #FFFDF5; /* رملي فاتح */
  color: #1E2A38; /* كحلي داكن */
  line-height: 1.6;
  direction: rtl;
}

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

ul {
  list-style: none;
}

/* === Navbar === */
.navbar {
  background-color: #FFC107; /* ✅ أصفر */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px; /* تكبير الشعار */
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #1E2A38; /* كحلي */
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff; /* أبيض عند التحويم */
}

/* === Hero Section === */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-btn {
  background-color: #FFC107;
  color: #1E2A38;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background-color: #1E2A38;
  color: #fff;
}

/* === About Section with background === */
.about {
  position: relative;
  background-image: url('../assets/about-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.about-overlay {
  background-color: rgba(30, 42, 56, 0.85); /* كحلي شفاف */
  padding: 4rem 2rem;
  z-index: 2;
  position: relative;
}

.about .container {
  max-width: 1200px;
  margin: auto;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1 1 55%;
  color: #fff;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #FFC107;
  margin-bottom: 1rem;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #FFC107;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #f5f5f5;
}

.about-text blockquote {
  background-color: rgba(255, 255, 255, 0.1);
  border-right: 5px solid #FFC107;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #fff;
  margin: 1rem 0;
  border-radius: 8px;
}

.about-image {
  flex: 1 1 35%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
/* === Section Divider (Reusable) === */
#section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.5rem 0 2rem;
  justify-content: flex-start;
}

#section-divider::before,
#section-divider::after {
  content: '';
  display: block;
  border-radius: 50%;
}

#section-divider::before {
  width: 12px;
  height: 12px;
  background-color: #FFC107;
}

#section-divider::after {
  flex-grow: 1;
  height: 4px;
  border-radius: 5px;
  background-color: #FFC107;
}

/* ✅ عند وجود كلاس divider-dark — غيّر اللون للكحلي */
#section-divider.divider-dark::before,
#section-divider.divider-dark::after {
  background-color: #1E2A38;
}


/* === Services Section === */
.services {
  background-color: #f5f0e6;
  padding: 4rem 2rem;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  color: #1E2A38;
  margin-bottom: 1rem;
}

.services .container {
  max-width: 1200px;
  margin: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-8px) translateX(-4px);
  box-shadow: 6px 6px 0 #1E2A38; /* ظل كحلي داكن من تحت واليمين */
}

.service-card i {
  font-size: 42px;
  color: #FFC107;
  background-color: #1E2A38;
  padding: 18px;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: background 0.3s, transform 0.3s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* تحسين الهوفر للأيقونة */
.service-card:hover i {
  transform: scale(1.1);
  background-color: #000; /* أو حافظ على نفس اللون حسب الذوق */
}

.service-card h3 {
  font-size: 1.3rem;
  color: #1E2A38;
  margin: 0.5rem 0 0.75rem;
}

.service-card p {
    
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.service-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* ← هامش عمودي بسيط بين الزرين */
  margin-top: 1rem;
}

.service-btn {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  background-color: #FFC107;
  color: #1E2A38;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.9rem;
  border: none;
  transition: background 0.3s ease;
  text-decoration: none;
}

.service-btn:hover {
  background-color: #1E2A38;
  color: #fff;
}

/* === Location Section === */
.location {
  background-color: #1E2A38;
  padding: 5rem 2rem;
  text-align: center;
}

.location-card {
  background-color: #ffffff;
  max-width: 1200px;
  margin: auto;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: #1E2A38;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.location-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1E2A38;
}

.location-card h2 i {
  color: #FFC107;
  margin-left: 10px;
}

.location-card p {
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

.map-container {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === Contact Section === */
.contact {
  background-color: #f5f0e6;
  padding: 5rem 2rem;
  text-align: center;
}

.contact-card {
  background-color: #fff;
  max-width: 700px;
  margin: auto;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1E2A38;
}

.contact-card h2 i {
  color: #FFC107;
  margin-left: 10px;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-card select:invalid {
  color: #999;
}

.contact-card textarea {
  resize: vertical;
}

.whatsapp-btn {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.whatsapp-btn i {
  margin-left: 10px;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

/* === Footer === */
.footer {
  background-color: #1E2A38; /* كحلي داكن */
  color: #FFFDF5;
  padding: 60px 20px 30px;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #FFC107;
  font-weight: bold;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #FFFDF5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #FFC107;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  color: #FFFDF5;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #FFC107;
}

.footer-contact p {
  margin-top: 15px;
  font-size: 14px;
  color: #eee;
}

/* === Separator Line === */
.footer-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 30px 0;
}

/* === Footer Bottom (حقوق ومطور) === */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  color: #ccc;
}

.footer-bottom .rights {
  order: 2;
  text-align: right;
  flex: 1;
}

.footer-bottom .dev-note {
  order: 1;
  text-align: left;
  flex: 1;
}

.footer-bottom .dev-note a {
  color: #FFC107;
  font-weight: bold;
  text-decoration: none;
}

.footer-bottom .dev-note a:hover {
  text-decoration: underline;
}
/* === Why Choose Us Section (Centered RTL) === */
.why-choose-us {
  background-color: #1E2A38; /* أصفر رملي */
  color: #FFC107; /* كحلي داكن */
  padding: 60px 20px;
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  direction: rtl; /* ← اللغة من اليمين لليسار */
}

.why-choose-us .container {
  max-width: 1000px;
  margin: auto;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-title span {
  color: #ffffff;
}

.section-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  text-align: center;
}

.benefits-list li {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center; /* ← توسيط كامل */
  gap: 10px;
  flex-direction: row-reverse; /* ← أيقونة على اليمين والنص على اليسار */
}

.benefits-list i {
  color: #FFC107;
  font-size: 1.2rem;
}

.cta-button {
  background-color: #FFC107;
  color: #15232f;
  padding: 12px 30px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: 20px;
}

.cta-button:hover {
  background-color: #15232f;
  color: #ffffff; /* ← اجعل النص أبيض عند الهوفر */
}



/* === Responsive Design === */

/* 📱 شاشات الجوال والتابلت */
@media (max-width: 992px) {
  .navbar .container {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    position: relative;
  }

  /* ✅ زر الهمبرغر يظهر فقط هنا */
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: #1E2A38;
    cursor: pointer;
    z-index: 999;
  }

  /* ✅ إخفاء الروابط بشكل افتراضي */
  .nav-links {
    flex-direction: column;
    background-color: #FFC107;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 998;
    padding: 0;
  }

  /* ✅ عند التفعيل */
  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    padding: 1rem;
  }

  /* الروابط داخل القائمة */
  .nav-links a {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #1E2A38;
  }

  /* ✅ ترتيب العناصر: الشعار يمين، الزر يسار */
  .logo {
    order: 1;
  }

  .menu-toggle {
    order: 2;
  }

  .nav-links {
    order: 3;
  }

  /* بقية الأقسام */
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .hero-overlay p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .location-card {
    padding: 1.5rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }
}


/*مودال الخدمات*/
.custom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(30, 42, 56, 0.7);
}

.custom-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  color: #1E2A38;
  font-family: 'Tajawal', sans-serif;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  direction: rtl;
  text-align: right;
}

.custom-modal-content h2 {
  margin-top: 0;
  color: #1E2A38;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.custom-modal-content ul {
  padding-right: 1.2rem;
  margin: 0;
}

.custom-modal-content li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  left: 20px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
}


/* 📱 الشاشات الصغيرة جدًا (الموبايلات الصغيرة) */
@media (max-width: 576px) {
  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p,
  .section-description,
  .benefits-list li,
  .service-card p,
  .contact-card p {
    font-size: 0.95rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .cta-button,
  .hero-btn,
  .service-btn,
  .whatsapp-btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem;
  }

  .logo img {
    height: 32px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}

/* 💻 شاشات أكبر من 992px (سطح المكتب) */
@media (min-width: 993px) {
  /* إخفاء زر الهامبرغر تماماً */
  .menu-toggle {
    display: none !important;
  }

  /* إظهار القائمة بشكل طبيعي أفقي */
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    opacity: 1;
    max-height: none;
    padding: 0;
  }
}


/* 📱 الشاشات الصغيرة جدًا (الموبايلات الصغيرة) */
@media (max-width: 576px) {
  /* ... الكود السابق ... */

  .custom-modal-content {
    width: 90%;
    margin: 15% auto;
    padding: 1.2rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .custom-modal-content h2 {
    font-size: 1.2rem;
  }

  .custom-modal-content li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .close {
    font-size: 24px;
    top: 8px;
    left: 16px;
  }
}


/* زر واتساب عائم */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  font-size: 28px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  color: #fff;
}


