/*
 * أقسام الصفحة الرئيسية: الانترو، من نحن، الشريط المتحرك،
 * تبويبات المنيو، الآراء، الفروع، نموذج الحجز، شريط الطلب.
 */

/* ------------------------------------------------------------------ */
/* من نحن                                                              */
/* ------------------------------------------------------------------ */

.dm-about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.dm-about__media {
  position: relative;
  padding-block-end: 40px;
  padding-inline-start: 40px;
}

.dm-about__img {
  margin: 0;
  border-radius: var(--dm-radius-lg);
  overflow: hidden;
  box-shadow: var(--dm-shadow);
}

.dm-about__img--main img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
}

.dm-about__img--small {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 46%;
  border: 8px solid #fff;
  border-radius: var(--dm-radius);
}

.dm-about__img--small img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/*
 * شارة سنوات الخبرة: لوحة داكنة بحافة ذهبية، لا دائرة ملوّنة.
 * الدائرة كانت تحبس النص العربي في 11.5 بكسل غير مقروء وتُجبره على
 * سطرين مكسورين، والشكل المستطيل يترك للنص مساحته ويطابق طابع
 * البوابة. الشارة تختفي وحدها إن أُفرغ الحقلان من اللوحة.
 */
.dm-about__badge {
  position: absolute;
  inset-block-start: 28px;
  inset-inline-start: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  padding: 18px 22px;
  border: 1px solid rgba(var(--dm-secondary-rgb), 0.45);
  border-radius: var(--dm-radius-sm);
  text-align: center;
  color: #fff;
  background: var(--dm-dark);
}

.dm-about__badge strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dm-secondary);
}

/* خط ذهبي رفيع يفصل الرقم عن وصفه بدل أن يتلاصقا. */
.dm-about__badge strong::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: 10px auto 0;
  background: rgba(var(--dm-secondary-rgb), 0.55);
}

.dm-about__badge span {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 560px) {
  .dm-about__badge {
    inset-block-start: 16px;
    min-width: 112px;
    padding: 14px 16px;
  }

  .dm-about__badge strong {
    font-size: 2.1rem;
  }
}

.dm-about__text {
  color: var(--dm-text-soft);
}

.dm-about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-block: 28px;
  padding-block: 24px;
  border-block: 1px dashed var(--dm-border);
}

.dm-about__stats li {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dm-primary);
}

.dm-about__stats span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dm-text-soft);
}

@media (max-width: 860px) {
  .dm-about__grid {
    grid-template-columns: 1fr;
  }

  .dm-about__media {
    max-width: 480px;
  }
}

/* ------------------------------------------------------------------ */
/* آراء العملاء                                                        */
/* ------------------------------------------------------------------ */

/* الخلفية اللونية تأتي من dm-section--alt؛ هنا ضبط الصورة الاختيارية فقط. */
.dm-reviews {
  background-size: cover;
  background-position: center;
}

.dm-reviews__slider {
  padding-block: 10px 8px;
}

.dm-reviews__slider .swiper-slide {
  height: auto;
}

/*
 * نقاط التنقّل بدل الأسهم: أهدأ بصريًا، ولا تزاحم الكروت على الجوال.
 * تُلوَّن النقطة النشطة باللون الأساسي القادم من اللوحة.
 */
.dm-reviews__dots {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.dm-reviews__dots .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0;
  border-radius: 999px;
  background: var(--dm-dark);
  opacity: 0.22;
  transition: width 0.3s var(--dm-ease), opacity 0.3s var(--dm-ease),
    background-color 0.3s var(--dm-ease);
}

.dm-reviews__dots .swiper-pagination-bullet:hover {
  opacity: 0.5;
}

/* النقطة النشطة تستطيل قليلًا فيسهل تمييزها دون ألوان إضافية. */
.dm-reviews__dots .swiper-pagination-bullet-active {
  width: 26px;
  background: var(--dm-primary);
  opacity: 1;
}

/* فوق خلفية داكنة للقسم تحتاج النقاط لونًا فاتحًا. */
.dm-reviews[style*="background-image"] .dm-reviews__dots .swiper-pagination-bullet {
  background: #fff;
}

/* ------------------------------------------------------------------ */
/* نموذج الحجز في الرئيسية                                             */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* شريط الطلب الأخير                                                   */
/* ------------------------------------------------------------------ */

/*
 * شريط «اطلب الآن» بطاقة قائمة بذاتها على خلفية بيضاء، لا شريطًا ممتدًا
 * بعرض الشاشة. كان لونه الداكن ملاصقًا للفوتر الداكن فيلتحمان في كتلة
 * واحدة لا يُعرف أين ينتهي القسم ويبدأ التذييل؛ الآن بينهما بياض واضح.
 */
.dm-cta {
  padding-block: clamp(60px, 8vw, 100px);
  text-align: center;
  background: var(--dm-bg);
}

.dm-cta__card {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 6vw, 84px) clamp(22px, 4vw, 60px);
  border-radius: var(--dm-radius-lg);
  color: #fff;
  background: var(--dm-dark) center / cover no-repeat;
}

.dm-cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--dm-overlay-rgb), 0.86);
}

/* المحتوى فوق طبقة التعتيم. */
.dm-cta__card > * {
  position: relative;
}

.dm-cta .dm-sec-head__title,
.dm-cta .dm-sec-head__text {
  color: #fff;
}

.dm-cta .dm-sec-head__title span {
  color: var(--dm-secondary);
}

.dm-cta .dm-sec-head__text {
  color: rgba(255, 255, 255, 0.78);
}

.dm-cta .dm-sec-head__eyebrow {
  color: var(--dm-secondary);
  background: rgba(255, 255, 255, 0.1);
}

.dm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.dm-cta__apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dm-cta__apps-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.66);
}

.dm-cta__apps ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dm-cta__apps a {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 52px;
  padding-inline: 14px;
  border-radius: var(--dm-radius-sm);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s var(--dm-ease);
}

.dm-cta__apps a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dm-cta__apps img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* قسم لماذا نحن                                                       */
/* ------------------------------------------------------------------ */

.dm-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 22px;
  border-radius: var(--dm-radius);
  text-align: center;
  transition: transform 0.3s var(--dm-ease), border-color 0.3s var(--dm-ease),
    background-color 0.3s var(--dm-ease);
}

@media (hover: hover) and (pointer: fine) { /* لا هوفر لازق على اللمس */
  .dm-feature:hover {
    transform: translateY(-4px);
  }
}

/* الأشكال الثلاثة التي تُختار من اللوحة. */
.dm-feature--plain {
  padding-inline: 12px;
}

.dm-feature--boxed {
  border: 1px solid var(--dm-border);
  background: #fff;
}

.dm-feature--boxed:hover {
  border-color: var(--dm-primary);
}

.dm-feature--filled {
  background: rgba(var(--dm-primary-rgb), 0.07);
}

.dm-feature--filled:hover {
  background: rgba(var(--dm-primary-rgb), 0.12);
}

.dm-feature__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-size: 1.45rem;
  color: var(--dm-primary);
  background: rgba(var(--dm-primary-rgb), 0.1);
  transition: color 0.3s var(--dm-ease), background-color 0.3s var(--dm-ease);
}

/* عند المرور تنقلب ألوان الأيقونة فيظهر أثر واضح بلا ظل. */
.dm-feature:hover .dm-feature__icon {
  color: var(--dm-btn-text);
  background: var(--dm-primary);
}

.dm-feature__title {
  margin: 0;
  font-size: 1.06rem;
  color: var(--dm-dark);
}

.dm-feature__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--dm-text-soft);
}

@media (max-width: 560px) {
  .dm-feature {
    padding: 24px 18px;
  }
}
