/* ==========================================================================
   الرئيسية (قالب مشاريع) — إضافات أسس فقط، بدون تغيير شكل القالب
   ========================================================================== */

/* ---------- الهيرو: صورة ثابتة بدل الفيديو ---------- */
.hero-video-wrap img.hero-video {
  top: 0; left: 0; width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: cover; object-position: center;
  transform-origin: 50% 50%;
  animation: heroImgZoom 25s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.03);
}
@keyframes heroImgZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-video-wrap::after { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .hero-video-wrap img.hero-video { animation: none; } }
#top h1.hero-title { font-size: clamp(24px, 2.6vw, 38px) !important; }

/* شريط التحويل داخل الهيرو */
.hero-band { margin-top: 26px; color: #fff; }
.hero-band .hero-band-title { color: #fff; font-size: clamp(18px, 1.7vw, 24px); font-weight: 800; line-height: 1.6; margin: 0 0 8px; }
.hero-band .hero-band-title span { color: #d8c08a; }
.hero-band p { color: #f3eee4; font-size: 16px; line-height: 1.9; margin: 0 0 14px; }
.hero-band .hero-band-note { font-size: 14px; opacity: .9; margin: 12px 0 0; }
.hero-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-band-btn {
  display: inline-block; padding: 10px 28px; border-radius: 40px;
  background: #d8c08a; color: #1f1b14 !important; font-weight: 800; font-size: 16px;
  transition: transform .25s, background .25s;
}
.hero-band-btn.is-wa { background: transparent; color: #fff !important; border: 1px solid #d8c08a; }
.hero-band-btn:hover { transform: translateY(-2px); }

/* ---------- عناوين فرعية داخل نصوص الأقسام (نفس شكل نص القالب) ---------- */
.o-sub-title { font-size: 22px !important; font-weight: 800 !important; line-height: 1.6 !important; margin: 0 0 12px !important; color: inherit !important; }
.o-eyebrow-t { color: #d8c08a; font-weight: 700; letter-spacing: 1px; margin: 0 0 6px !important; }
.o-anchor { display: block; position: relative; top: -110px; visibility: hidden; height: 0; }

/* القيم: h2 بنفس حجم h3 القالب */
.our_values_slider .o-value-title { font-size: 1.75rem; font-weight: 700; line-height: 1.4; margin: 0 0 .5rem; color: inherit; }

/* منتجاتنا داخل قسم الإحصائيات */
.o-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 6px 0 10px; }
.o-prod { border-right: 3px solid #927f59; padding-right: 16px; }
.o-prod-title { font-size: 20px !important; font-weight: 800 !important; margin: 0 0 8px !important; color: inherit; }
.o-prod ul { margin: 0 0 8px; padding-right: 18px; }
.o-prod-link, .o-sec-btn {
  display: inline-block; padding: 7px 22px; border-radius: 30px; margin: 4px 0 4px 8px;
  background: #927f59; color: #fff !important; font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
  font-family: inherit; transition: background .25s;
}
.o-prod-link:hover, .o-sec-btn:hover { background: #3b3836; }
.o-sec-btn.is-wa { background: #25d366; }
@media (max-width: 767px) { .o-prods { grid-template-columns: 1fr; } }

/* روابط سريعة داخل قسم اطلب تمويلك */
.o-sec-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.o-sec-pills a { padding: 5px 14px; border: 1px solid #927f59; border-radius: 30px; font-size: 14px; color: #927f59; }
.o-sec-pills a:hover { background: #927f59; color: #fff; }
.o-lead-box { border-right: 3px solid #927f59; padding: 6px 14px 6px 0; margin: 0 0 14px; font-weight: 700; }

/* الأسئلة الشائعة داخل أعمدة القالب */
.grid_box_content .o-faq, #mission .o-faq, #board_of_directors .o-faq { margin-top: 6px; }
.o-tpl .o-faq__item { box-shadow: none; }
.o-tpl .o-faq__q { font-size: 16px; padding: 12px 18px 12px 50px; line-height: 1.7; }
.o-tpl .o-faq__a { font-size: 15px; line-height: 1.9; }
.o-tpl .o-faq__q h4 { font-size: inherit; font-weight: inherit; margin: 0; display: inline; }

/* مشاهدة المزيد */
.o-tpl .o-more { max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.o-tpl .o-more.is-open { max-height: none; }
.o-more-toggle { margin-top: 12px; }
.o-kw-more-wrap { text-align: center; padding: 0 20px 30px; max-width: 1140px; margin: 0 auto; }
.o-kw-title { font-size: 20px; font-weight: 800; margin: 24px 0 12px; }

/* تواصل معنا (صف الأيقونات بدل شعارات العملاء) */
.o-logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 10px 0 20px; }
.o-logo-box { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 150px; text-align: center; color: inherit; }
.o-logo-box[hidden] { display: none; }
.o-logo-box img { width: 90px; height: 90px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.o-logo-box:hover img { filter: none; opacity: 1; }
.o-logo-box h3 { font-size: 17px; font-weight: 700; margin: 0; color: inherit; }

/* نموذج التواصل (بدل الفورم) + الخريطة */
.o-contact-cta { display: flex; flex-direction: column; gap: 14px; }
.o-contact-cta #oss-grev { border-radius: 10px; }
.o-map-embed iframe { display: block; width: 100%; height: 450px; border: 0; }

/* الفوتر */
.o-footer-logo { display: block; width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 3px; margin: 0 0 10px; }
.o-footer-contact { color: #fff; font-size: 14px; line-height: 1.9; }
.o-footer-contact p { margin: 0 0 6px; }
.o-footer-contact-title { font-weight: 800; font-size: 16px; }
.o-footer-contact a { color: #d8c08a; }
.o-modal__title { color: #3b3836; font-size: 22px; font-weight: 800; margin: 0 0 12px; }

/* القوائم الفرعية في الهيدر (خدماتنا / المدن) */
#masthead .hfe-nav-menu .sub-menu { min-width: 220px; }
#masthead .hfe-nav-menu .sub-menu a.hfe-sub-menu-item { white-space: nowrap; }

/* الأيقونات الأربع: صور خلفية من مكتبة الصور بدل placeholder القالب */
.elementor-11 .elementor-element.elementor-element-d98f647:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
.elementor-11 .elementor-element.elementor-element-d98f647 > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../../img/stock/handshake-2.jpg"); }
.elementor-11 .elementor-element.elementor-element-1b9d41e:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
.elementor-11 .elementor-element.elementor-element-1b9d41e > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../../img/stock/office-night.jpg"); }
.elementor-11 .elementor-element.elementor-element-49ca193:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
.elementor-11 .elementor-element.elementor-element-49ca193 > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../../img/stock/money-gold-2.jpg"); }
.elementor-11 .elementor-element.elementor-element-4e5cbde:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
.elementor-11 .elementor-element.elementor-element-4e5cbde > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-image: url("../../img/stock/contract.jpg"); }

/* عدّادات منتجاتنا: أرقام أطول من أرقام القالب */
.facts_counter .elementor-counter-number-wrapper { font-size: 30px !important; line-height: 1.3 !important; white-space: nowrap; }
.facts_counter .elementor-counter-number-suffix { font-size: 16px; margin-right: 4px; }
.o-edu-list ul { padding-right: 18px; }

/* شبكة خدمات أسس (بدل شعارات المشاريع): اسم الخدمة ظاهر دايمًا */
figure.product_box figcaption a.explore_product { opacity: 1; font-size: 20px; font-weight: 800; line-height: 1.5; text-align: center; padding: 0 12px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
figure.product_box figcaption { position: absolute; inset: 0; justify-content: center; z-index: 2; }
figure.product_box figcaption a.explore_product { position: static; width: auto; top: auto; }

/* شريط «عليك متعثرات…» — قسم مستقل تحت البانر */
.hero-band-strip { background: #3b3327; color: #fff; padding: 38px 20px; border-top: 3px solid #d8c08a; }
.hero-band-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hero-band-text { flex: 1 1 auto; }
.hero-band-strip .hero-band-title { color: #fff; font-size: clamp(20px, 2vw, 28px); font-weight: 800; line-height: 1.6; margin: 0 0 8px; }
.hero-band-strip .hero-band-title span { color: #d8c08a; }
.hero-band-strip p { color: #f3eee4; font-size: 16px; line-height: 1.9; margin: 0; }
.hero-band-side { flex: 0 0 auto; text-align: center; }
.hero-band-strip .hero-band-note { font-size: 14px; opacity: .9; margin: 12px 0 0; }
@media (max-width: 900px) {
  .hero-band-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 20px; }
  .hero-band-actions { justify-content: center; }
}

/* البانر: عنوان كبير + الـH1 بشكل فقرة بيضا زي مشاريع («إبتكار يحاكي المستقبل» + الفقرة) */
#top .elementor-widget-wrap > .elementor-element { flex: 0 0 100%; width: 100%; max-width: 100%; }
#top h1.hero-lead { max-width: 450px; }
#top h1.hero-lead { color: #fff !important; font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1.9; margin: 0 0 .9rem; text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* منع الحركة يمين وشمال على الموبايل (قوايم الهيدر المخفية كانت بتطلع بره الشاشة) */
html, body { overflow-x: clip; }

/* العناوين الفرعية بنفس شكل عناوين مشاريع الفرعية (H3: ذهبي 24.5px وزن 500) */
.o-tpl .o-sub-title, .o-tpl .o-value-title, .o-tpl .o-prod-title, .o-tpl .o-kw-title {
  font-size: 24.5px !important; font-weight: 500 !important; color: #8f805e !important; line-height: 1.5; margin: 0 0 12px;
}
.o-tpl .white_text .o-sub-title, .o-tpl #message .o-sub-title { color: #fff !important; }


/* ===== قسم تقييماتنا على جوجل (بألوان وتنسيق مشاريع) ===== */
.o-reviews { background: #efebe6; padding: 90px 0 80px; }
.o-reviews .elementor-container { max-width: 1170px; margin: 0 auto; }
.o-rv-summary { display: flex; align-items: center; gap: 12px; margin: 6px 0 30px; flex-wrap: wrap; }
.o-rv-score { font-size: 42px; font-weight: 700; color: #8f805e; line-height: 1; }
.o-rv-stars { color: #f4b400; letter-spacing: 2px; font-size: 16px; }
.o-rv-stars-lg { font-size: 24px; }
.o-rv-count { color: #7a7a7a; font-size: 15px; }
.o-rv-slider { position: relative; }
.o-rv-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; scrollbar-width: thin; scrollbar-color: #8f805e transparent; }
.o-rv-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; background: #fff; border-radius: 6px; padding: 24px 24px 22px; box-shadow: 0 6px 22px rgba(59, 51, 39, .08); display: flex; flex-direction: column; }
.o-rv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.o-rv-head > div { flex: 1; min-width: 0; }
.o-rv-avatar { width: 44px; height: 44px; border-radius: 50%; background: #8f805e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: 0 0 44px; }
.o-rv-name { margin: 0 0 2px; font-weight: 700; color: #3b3836; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-rv-g { font: 700 20px/1 Arial, sans-serif; color: #4285f4; }
.o-rv-text { color: #555; font-size: 15px; line-height: 1.9; margin: 0 0 14px; flex: 1; }
.o-rv-reply { background: #f7f4ef; border-right: 3px solid #d8c08a; border-radius: 4px; padding: 10px 14px; }
.o-rv-reply p { margin: 0; color: #555; font-size: 14px; line-height: 1.8; }
.o-rv-reply .o-rv-reply-by { color: #8f805e; font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.o-rv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 3px; background: #8f805e; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.o-rv-prev { right: -52px; } .o-rv-next { left: -52px; }
.o-rv-nav:hover { background: #3b3327; }
.o-rv-cta { text-align: center; margin: 28px 0 0; }
.o-rv-btn { display: inline-block; background: #8f805e; color: #fff !important; padding: 12px 34px; font-weight: 600; font-size: 16px; border-radius: 3px; transition: background .2s; }
.o-rv-btn:hover { background: #3b3327; }
@media (max-width: 1280px) { .o-rv-prev { right: 0; } .o-rv-next { left: 0; } }
@media (max-width: 991px) { .o-rv-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 767px) { .o-reviews { padding: 60px 0; } .o-reviews .elementor-container { padding: 0 16px; } .o-rv-card { flex-basis: 86%; } .o-rv-nav { display: none; } }
.o-reviews .elementor-widget-wrap { display: block !important; width: 100%; }
.o-reviews .elementor-column { width: 100% !important; min-width: 0; }
.o-rv-slider, .o-rv-track { width: 100%; min-width: 0; max-width: 100%; }
.o-rv-cta { width: 100%; }
/* 5 تقييمات بس: على الكمبيوتر 3 ظاهرين والباقي بالأسهم */

/* الموبايل: القوايم المنسدلة المخفية كانت طالعة برا الشاشة (left:-29px) وبتعرّض الصفحة */
@media (max-width: 1024px) {
  .o-tpl .hfe-nav-menu .sub-menu { left: auto !important; right: 0 !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
}
/* لوجو جوجل جنب عنوان التقييمات */
.o-rv-title { display: inline-flex; align-items: center; gap: 14px; }
.o-rv-glogo { width: 40px; height: 40px; flex: 0 0 40px; }
@media (max-width: 767px) { .o-rv-glogo { width: 30px; height: 30px; flex-basis: 30px; } }
.o-rv-g { width: 22px; height: 22px; flex: 0 0 22px; }

/* ===== «خدمات أسس السداد» بدون صور: كروت نصية بألوان مشاريع ===== */
.o-svc-cards { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1170px; margin: 10px auto 0; padding: 0 15px; }
.o-svc-cards figure.product_box { width: auto; height: auto; min-height: 120px; margin: 0 !important; background: #fff !important; border: 1px solid #e6dfd2; border-top: 3px solid #8f805e; border-radius: 4px; display: flex; align-items: stretch; transition: transform .25s, box-shadow .25s, border-color .25s; animation: none !important; opacity: 1 !important; }
.o-svc-cards figure.product_box:before, .o-svc-cards figure.product_box:after { display: none !important; content: none !important; }
.o-svc-cards figure.product_box figcaption { position: static !important; inset: auto; width: 100%; padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; }
.o-svc-cards figure.product_box figcaption::before { content: attr(data-n); }
.o-svc-cards figure.product_box figcaption a.explore_product { position: static !important; opacity: 1 !important; top: auto !important; width: auto; margin: 0; padding: 0; text-align: right; color: #3b3836 !important; font-size: 18px; font-weight: 700; line-height: 1.6; text-shadow: none; }
.o-svc-cards figure.product_box figcaption a.explore_product::after { content: " ←"; color: #8f805e; transition: margin .25s; }
.o-svc-cards figure.product_box figcaption a.explore_product::before { content: ""; position: absolute; inset: 0; } /* الكارت كله يبقى لينك */
.o-svc-cards figure.product_box { position: relative; cursor: pointer; }
.o-svc-cards figure.product_box:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(59, 51, 39, .12); border-color: #d8c08a; }
.o-svc-cards figure.product_box:hover a.explore_product { color: #8f805e !important; }
.o-svc-cards figure.product_box figcaption img { display: none; }
@media (max-width: 1024px) { .o-svc-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .o-svc-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; } .o-svc-cards figure.product_box { min-height: 96px; } .o-svc-cards figure.product_box figcaption { padding: 16px 14px; } .o-svc-cards figure.product_box figcaption a.explore_product { font-size: 15px; } }
.o-svc-cards figure.product_box { min-height: 96px; }
.o-svc-cards figure.product_box figcaption { justify-content: center; align-items: flex-start; }
.o-svc-cards figure.product_box figcaption::before { content: none; display: none; }
