/* منصة القائد — تحسينات عامة للموقع مع قالب Hello Elementor: الترويسة، الصفحات النظامية، نموذج الطلب، زر واتساب، الروابط السفلية. */

/* الترويسة: شعار بحجم معقول على كل الشاشات */
.site-header .custom-logo, .site-header .site-logo img, .site-branding img { max-height: 52px; width: auto; height: auto; }
.site-header { padding-block: 10px; }
@media (max-width: 767px) {
  .site-header .custom-logo, .site-header .site-logo img, .site-branding img { max-height: 40px; }
  .site-header { padding-block: 6px; padding-inline: 16px; }
  /* هوامش المحتوى في أقسام إلمنتور على الجوال */
  .elementor-section .elementor-container, .e-con > .e-con-inner { padding-inline: 4px; }
}

/* الصفحات النظامية والعلمية */
.q-doc { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; font-size: 17px; line-height: 1.85; color: #141A33; direction: rtl; text-align: right; }
.q-doc h2 { font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-size: 21px; color: #1E2A5A; margin: 32px 0 8px; line-height: 1.4; }
.q-doc p, .q-doc ul, .q-doc ol { margin: 0 0 12px; }
.q-doc ul, .q-doc ol { padding-inline-start: 22px; }
.q-doc li { margin-bottom: 6px; }
.q-doc .q-muted { color: #5B6280; font-size: 14px; }
.q-doc a { color: #1E2A5A; text-decoration: underline; text-underline-offset: 3px; }
body.page .entry-title, body.page .page-header .entry-title { font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; color: #1E2A5A; text-align: right; }

/* نموذج «اطلب عرضًا» */
.qayd.q-lead { max-width: 720px; margin: 0 auto; padding: 24px; gap: 16px; text-align: right; box-shadow: 0 8px 30px rgba(20, 26, 51, .08); }
.qayd.q-lead [hidden] { display: none !important; }
.qayd .q-kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qayd .q-kinds legend { font-family: var(--q-display); color: var(--q-ink); font-size: 15px; margin-bottom: 8px; padding: 0; width: 100%; }
.qayd .q-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--q-line); border-radius: 999px; padding: 8px 16px; cursor: pointer; color: var(--q-ink); font-size: 15px; min-height: 44px; }
.qayd .q-chip input { min-height: 0; margin: 0; accent-color: var(--q-night); }
.qayd .q-chip:has(input:checked) { border-color: var(--q-night); background: var(--q-tint); font-weight: 600; }
.qayd .q-lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qayd .q-lead-grid .q-wide { grid-column: 1 / -1; }
.qayd .q-f span { color: var(--q-ink); font-size: 14px; }
.qayd.q-lead input:not([type=radio]):not([type=checkbox]), .qayd.q-lead textarea { width: 100%; min-height: 46px; font-size: 16px; border-radius: 10px; }
.qayd .q-agree { display: flex; gap: 8px; align-items: flex-start; color: var(--q-ink); font-size: 14px; }
.qayd .q-agree input { min-height: 0; margin-top: 6px; accent-color: var(--q-night); }
.qayd.q-lead .q-btn { min-height: 48px; font-size: 16px; justify-self: start; padding-inline: 28px; }
.qayd .q-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.qayd .q-lead-msg:empty { display: none; }
.qayd .q-lead-msg { padding: 10px 14px; border-radius: 10px; background: var(--q-tint); }
.qayd .q-lead-msg.q-ok { background: var(--q-good-bg); color: var(--q-good); font-weight: 600; }
.qayd .q-lead-msg.q-bad { background: var(--q-crit-bg); color: var(--q-crit); }
@media (max-width: 600px) {
  .qayd.q-lead { padding: 18px 16px; }
  .qayd .q-lead-grid { grid-template-columns: minmax(0, 1fr); }
  .qayd.q-lead .q-btn { width: 100%; }
}

/* الروابط السفلية */
.qayd-legal { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; align-items: center; padding: 18px 16px 22px; background: #141A33; color: #C9CEE3;
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; font-size: 14px; direction: rtl; }
.qayd-legal a { color: #FFFFFF; text-decoration: none; padding: 6px 2px; }
.qayd-legal a:hover, .qayd-legal a:focus-visible { text-decoration: underline; }
.qayd-legal .qayd-legal-copy { flex-basis: 100%; text-align: center; color: #9AA1BF; font-size: 13px; }

/* زر واتساب العائم */
.qayd-wa { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 9999; display: inline-flex; align-items: center; gap: 8px; background: #1F8A4C; color: #fff !important;
  border-radius: 999px; padding: 10px 16px 10px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); text-decoration: none; font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; font-size: 15px; font-weight: 600; min-height: 48px; }
.qayd-wa:hover { filter: brightness(1.08); }
.qayd-wa:focus-visible { outline: 3px solid #F2A900; outline-offset: 2px; }
@media (max-width: 600px) { .qayd-wa span { display: none; } .qayd-wa { padding: 12px; } }
@media print { .qayd-wa, .qayd-legal { display: none; } }

/* تذييل القالب الافتراضي بالإنجليزية: يغني عنه شريط الروابط العربي */
.site-footer .copyright { display: none; }
