/**
 * تحسينات جمالية للصفحة الرئيسية - أصلان ASLAN
 * Aesthetic enhancements for the main website page
 */

/* ==========================================================================
   GLOBAL
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* مبدّل اللغة — يفتح نافذة (Bootstrap modal) */
.lang-switcher .lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher .lang-switcher__chev {
  display: inline-block;
  width: 0;
  height: 0;
  border-inline-start: 4px solid transparent;
  border-inline-end: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  margin-top: 2px;
}

/* نافذة اختيار اللغة */
.lang-picker-modal .modal-dialog {
  max-width: 360px;
}

.lang-picker-modal__content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.lang-picker-modal__header {
  background: linear-gradient(135deg, #7a6f52 0%, #948961 100%);
  color: #fff;
  padding: 1rem 1.25rem;
}

.lang-picker-modal__header .modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.lang-picker-modal__close {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.lang-picker-modal__body {
  padding: 0.5rem 0 1rem;
}

.lang-picker-modal__list li + li {
  border-top: 1px solid rgba(148, 137, 97, 0.12);
}

.lang-picker-modal__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  color: #2f353e;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-picker-modal__link:hover {
  background: rgba(148, 137, 97, 0.08);
  color: #7a6f52;
}

.lang-picker-modal__link.is-active {
  background: rgba(148, 137, 97, 0.12);
  color: #7a6f52;
  font-weight: 700;
  cursor: default;
}

.lang-picker-modal__check {
  color: #7a6f52;
  font-weight: 700;
  font-size: 1.1rem;
}

/* فوق هيدر القالب (z-index مرتفع في wsmenu) */
#langPickerModal {
  z-index: 10050 !important;
}

body > .modal-backdrop.show {
  z-index: 10040 !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

#hero-1 {
  background: linear-gradient(135deg, #7a6f52 0%, #948961 35%, #a89878 70%, #8b7d63 100%);
  background-color: #948961;
  padding-top: 160px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

#hero-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(0,0,0,0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

#hero-1 .container {
  position: relative;
  z-index: 1;
}

.hero-1-txt h2 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  letter-spacing: -0.5px;
}

.hero-1-txt p.p-xl {
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Hero CTA Button - Google Play */
#hero-1 .hero-1-txt button a.google_store,
#hero-1 .hero-1-txt button a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.95);
  color: #2c3e50;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

#hero-1 .hero-1-txt button {
  border: none;
  background: transparent;
  padding: 0;
}

#hero-1 .hero-1-txt button a.google_store:hover,
#hero-1 .hero-1-txt button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  background: #fff;
  color: #1d293f;
}

/* Hero image - subtle lift and shadow */
.hero-1-img img {
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.hero-1-img:hover img {
  transform: translateY(-4px);
}

/* Wave shape - smoother transition */
#hero-1 .wave-shape-bottom svg {
  filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.06));
}

/* ==========================================================================
   SECTION TITLES
   ========================================================================== */

.section-title.title-01 h2.h2-sm,
.sec_head h2,
.brands-title h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title.title-01 h2.h2-sm::after,
.sec_head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #948961, #a89878);
  border-radius: 2px;
}

[dir="rtl"] .section-title.title-01 h2.h2-sm::after,
[dir="rtl"] .sec_head h2::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.brands-title h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #948961, #a89878);
  border-radius: 2px;
}

.section-title .p-xl,
.sec_head p {
  margin-top: 16px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SERVICES (FEATURES) CARDS
   ========================================================================== */

#ourServices .fbox-2 {
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(148, 137, 97, 0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* شبكة الخدمات: أيقونات صغيرة، 12 في الصف على lg+ */
#ourServices .services-grid .fbox-2--compact {
  padding: 10px 6px;
  margin-bottom: 0;
}

#ourServices .thumb-services--sm {
  margin-left: auto;
  margin-right: auto;
  max-width: 44px;
  max-height: 44px;
}

#ourServices .thumb-services--sm img {
  display: block;
  width: 100%;
  max-width: 40px;
  max-height: 40px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

#ourServices .services-grid__title {
  font-size: 0.68rem;
  line-height: 1.25;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 0;
  word-break: break-word;
  hyphens: auto;
}

@media (min-width: 992px) {
  #ourServices .services-grid__title {
    font-size: 0.62rem;
  }
}

#ourServices .fbox-2:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(148, 137, 97, 0.15);
  border-color: rgba(148, 137, 97, 0.25);
}

#ourServices .thumb-services {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
}

#ourServices .fbox-2:hover .thumb-services {
  transform: scale(1.03);
}

#ourServices .fbox-2:hover .thumb-services img {
  transition: transform 0.25s ease;
}

#ourServices .fbox-txt-center h5 {
  color: #2f353e;
  margin-top: 16px;
  transition: color 0.2s ease;
}

#ourServices .fbox-2:hover .fbox-txt-center h5 {
  color: #7a6f52;
}

/* ==========================================================================
   ABOUT US - Content sections
   ========================================================================== */

#aboutUs .img-block img,
#content-2 .img-block img,
#content-3 .img-block img,
#content-2a .img-block img {
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

#aboutUs .btn-site.contact_us {
  border-radius: 10px;
  font-weight: 600;
  padding: 12px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#aboutUs .btn-site.contact_us:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(148, 137, 97, 0.35);
}

/* ==========================================================================
   TESTIMONIALS / REVIEWS
   ========================================================================== */

#customerReviews .review-1 {
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#customerReviews .review-1:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

#customerReviews .review-1-ico .flaticon-left-quote {
  color: rgba(148, 137, 97, 0.4);
}

.review-avatar img {
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   BRANDS / OUR CUSTOMERS
   ========================================================================== */

#ourCustomers .brand-logo {
  padding: 20px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

#ourCustomers .brand-logo:hover {
  background: rgba(148, 137, 97, 0.06);
  transform: scale(1.05);
}

#ourCustomers .brand-logo img {
  filter: grayscale(0.4);
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

#ourCustomers .brand-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */

#statistic .statistic-block {
  padding: 28px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#statistic .statistic-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(148, 137, 97, 0.12);
}

#statistic .statistic-block-digit .statistic-number {
  color: #7a6f52;
  font-weight: 700;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.section_contact {
  background: linear-gradient(180deg, #fbfbfd 0%, #f6f7f8 100%);
}

.sec-contact .form-contact .form-control {
  border-radius: 10px;
  border: 1px solid #e2e4e8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sec-contact .form-contact .form-control:focus {
  border-color: #948961;
  box-shadow: 0 0 0 3px rgba(148, 137, 97, 0.15);
  outline: none;
}

.section_contact .btn-site.contact_us {
  border-radius: 10px;
  font-weight: 600;
  padding: 12px 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.section_contact .btn-site.contact_us:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(148, 137, 97, 0.35);
  background: #7a6f52 !important;
}

.list-contact li {
  transition: transform 0.2s ease;
}

.list-contact li:hover {
  transform: translateX(4px);
}

[dir="rtl"] .list-contact li:hover {
  transform: translateX(-4px);
}

.list-contact li span.flaticon-map,
.list-contact li span.flaticon-email,
.list-contact li span.flaticon-smartphone {
  color: #948961;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer-1 {
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}

#footer-1 .bottom-footer-list a {
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}

#footer-1 .bottom-footer-list a:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */

hr.divider {
  opacity: 0.4;
  margin: 40px 0;
}

/* ==========================================================================
   HEADER - subtle enhancement on scroll
   ========================================================================== */

.header.tra-menu .wsmenu-list > li > a {
  transition: color 0.2s ease;
}

/* ==========================================================================
   BUTTONS GLOBAL (btn-site)
   ========================================================================== */

.btn-site.contact_us {
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-site.contact_us:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(148, 137, 97, 0.3);
}

/* ==========================================================================
   RTL adjustments for decorative elements
   ========================================================================== */

[dir="rtl"] .section-title .p-xl,
[dir="rtl"] .sec_head p {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   RESPONSIVE - Header & Menu
   ========================================================================== */

/* Mobile header: لون خلفية أبيض وواضح */
@media (max-width: 991px) {
  #header .wsmobileheader,
  .tra-menu .wsmobileheader,
  .white-menu .wsmobileheader {
    background-color: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  /* أيقونة الهامبرجر تكون داكنة على الخلفية البيضاء */
  .wsmobileheader .wsanimated-arrow span,
  .wsmobileheader .wsanimated-arrow span:before,
  .wsmobileheader .wsanimated-arrow span:after {
    background-color: #2f353e !important;
  }

  .wsmobileheader .smllogo {
    padding-left: 20px;
  }

  [dir="rtl"] .wsmobileheader .smllogo {
    padding-left: 0;
    padding-right: 20px;
  }

  /* لوحة المينو المنسدلة: خلفية بيضاء ونص مقروء */
  .wsmenu > .wsmenu-list {
    background-color: #fff !important;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .wsmenu > .wsmenu-list > li > a {
    color: #2f353e !important;
    padding: 14px 24px !important;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
  }

  .wsmenu > .wsmenu-list > li > a:hover {
    background-color: rgba(148, 137, 97, 0.08) !important;
    color: #7a6f52 !important;
  }

  /* روابط اللغة في المينو */
  .wsmenu > .wsmenu-list > li:last-child > a {
    border-bottom: none;
  }

  /* ضبط ارتفاع وعرض العناصر في الموبايل */
  .wsmenu > .wsmenu-list > li > .wsmenu-click {
    height: 52px;
  }
}

@media (max-width: 767px) {
  .wsmobileheader {
    height: 70px;
  }

  .wsmobileheader .smllogo {
    margin-top: 16px;
  }

  .wsmobileheader .smllogo img {
    max-height: 36px;
  }

  .wsanimated-arrow {
    padding: 12px 20px 12px 0;
    margin: 18px 20px 0 0;
  }

  [dir="rtl"] .wsanimated-arrow {
    margin: 18px 0 0 20px;
  }

  .wsmenu > .wsmenu-list > li > a {
    padding: 12px 20px !important;
  }
}

/* RTL للمينو في الموبايل */
@media (max-width: 991px) {
  [dir="rtl"] .header .wsmobileheader {
    text-align: right !important;
  }

  [dir="rtl"] .wsmenu > .wsmenu-list > li > a {
    text-align: right;
  }

  /* إبقاء لون الهامبرجر واضحاً عند فتح المينو */
  .wsactive .wsmobileheader .wsanimated-arrow span,
  .wsactive .wsmobileheader .wsanimated-arrow span:before,
  .wsactive .wsmobileheader .wsanimated-arrow span:after {
    background-color: #2f353e !important;
  }
}
