/* Barmajna company pages: dark navy theme, same palette as the portfolio */
body, .qrt-app, .qrt-dynamic-content { background: #0f1520 !important; }
.qrt-app .qrt-content .qrt-content-frame, .qrt-app .qrt-content .qrt-half-content-frame { background: #161d2a !important; box-shadow: 0 1px 2px rgba(0,0,0,.45) !important; }
.qrt-content-frame h1, .qrt-content-frame h2, .qrt-content-frame h3, .qrt-content-frame h4, .qrt-content-frame h5, .qrt-content-frame h6 { color: #f3f7fc !important; }
.qrt-content-frame .qrt-text, .qrt-content-frame p, .qrt-content-frame li, .qrt-content-frame span { color: #8a96a8; }
.qrt-counter-frame .qrt-counter-box .qrt-counter, .qrt-counter-frame .qrt-counter-box .qrt-counter-plus { color: #f3f7fc !important; }
.qrt-table li h5 { color: #f3f7fc !important; }
.qrt-table li span, .qrt-table li a { color: #8a96a8 !important; }
.qrt-table li a:hover { color: #1a86ff !important; }
.qrt-price { background: linear-gradient(159deg, #222c3e 0%, #1c2433 100%) !important; box-shadow: 0 3px 8px rgba(8,12,20,.35) !important; }
.qrt-price .qrt-price-body h5, .qrt-price .qrt-price-body .qrt-price-cost .qrt-number { color: #f3f7fc !important; }
.qrt-price .qrt-price-body .qrt-price-list li { color: #c9d3e0 !important; }
.qrt-price .qrt-price-body .qrt-price-list li.qrt-empty-item { color: #5f6b7d !important; }
.qrt-call-to-action { background: #222c3e !important; }
.qrt-call-to-action h4 { color: #f3f7fc !important; }
.qrt-icon-box h4 { color: #f3f7fc !important; }
.qrt-form-field input, .qrt-form-field textarea { background: #222c3e !important; color: #f3f7fc !important; box-shadow: none !important; }
.qrt-form-field input::placeholder, .qrt-form-field textarea::placeholder { color: #8a96a8 !important; }
.qrt-contact-form label { background: #222c3e !important; color: #8a96a8 !important; }
.qrt-filter .qrt-work-category { background: #222c3e !important; color: #8a96a8 !important; }
.qrt-filter .qrt-work-category.qrt-current { color: #f3f7fc !important; }
.qrt-work-item, .qrt-work-item .qrt-work-descr { background: #222c3e !important; }
.qrt-work-item .qrt-work-descr h5 { color: #f3f7fc !important; }
.qrt-work-item .qrt-work-descr .qrt-text { color: #8a96a8 !important; }
.bm-note { color: #8a96a8 !important; opacity: 1; }
.bm-form-btns .qrt-btn-border { background: transparent !important; border-color: #8a96a8 !important; color: #f3f7fc !important; }
.bm-form-btns .qrt-btn-border span { color: #f3f7fc !important; }
.qrt-banner-ratio.bm-square .qrt-work-cover-frame { background: #0f1520 !important; }
.qrt-form-field { background: #222c3e !important; }
.qrt-btn.qrt-btn-color span, .qrt-btn.qrt-btn-color i { color: #fff !important; }
/* scroll bars hidden everywhere (wheel, touch and keyboard scrolling still work) */
.native-scroll, .qrt-info, .qrt-menu, .qrt-content, .qrt-dynamic-content, html, body { scrollbar-width: none; -ms-overflow-style: none; }
.native-scroll::-webkit-scrollbar, .qrt-info::-webkit-scrollbar, .qrt-menu::-webkit-scrollbar, .qrt-content::-webkit-scrollbar, html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* same card look as the portfolio: navy gradient panels with a soft shadow */
.qrt-app .qrt-top-bar, .qrt-app .qrt-left-bar { background: linear-gradient(159deg, #222c3e 0%, #1c2433 100%) !important; box-shadow: 0 3px 8px rgba(8,12,20,.25) !important; }
.qrt-icon-box, .qrt-counter-frame, .qrt-team-member, .bm-founder { background: linear-gradient(159deg, #222c3e 0%, #1c2433 100%); box-shadow: 0 3px 8px rgba(8,12,20,.25); padding: 28px 30px; }
.qrt-counter-frame { margin-bottom: 30px; }
.bm-founder { padding: 24px; }
.qrt-call-to-action { background: linear-gradient(159deg, #222c3e 0%, #1c2433 100%) !important; box-shadow: 0 3px 8px rgba(8,12,20,.25); }
.qrt-contact-form, .qrt-table { background: transparent; }
.qrt-app .qrt-info { background: #161d2a !important; }
.qrt-app .qrt-info h5, .qrt-app .qrt-info span, .qrt-app .qrt-info a { color: #c9d3e0; }
.qrt-banner .qrt-image-frame:after, .qrt-half-banner .qrt-image-frame:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,21,32,.35), rgba(15,21,32,.65)); }
/* icons sit in a dark square in the card's top-right corner, like the portfolio's zoom tab */
.qrt-icon-box { position: relative; overflow: hidden; padding-top: 30px; }
.qrt-icon-box .bm-icon { position: absolute; top: 0; right: 0; margin: 0; width: 58px; height: 58px; border-radius: 0; background: #0f1520; color: #fff; font-size: 18px; box-shadow: none; }
.qrt-icon-box h4 { margin-top: 0; padding-right: 50px; }
.row > [class*="col-"] > .qrt-icon-box { height: calc(100% - 40px); }
/* blue corner icons everywhere (What we do, How we work, Services) and blue small buttons such as "View portfolio" */
.qrt-icon-box .bm-icon { background: #1a86ff !important; color: #fff !important; }
.qrt-btn.qrt-btn-sm { background: #1a86ff !important; border-color: #1a86ff !important; }
.qrt-btn.qrt-btn-sm span, .qrt-btn.qrt-btn-sm i { color: #fff !important; }
.qrt-btn.qrt-btn-sm:hover { background: #3b9bff !important; }

.native-scroll { scroll-behavior: smooth; }
/* language switcher state */
.qrt-change-language .qrt-leng.qrt-active { color: #fff; }
/* Arabic: right-to-left layout and an Arabic-capable font */
[lang="ar"] body, [lang="ar"] .qrt-app * { font-family: 'Cairo', 'Josefin Sans', sans-serif !important; letter-spacing: 0 !important; }
[dir="rtl"] .qrt-icon-box .bm-icon { right: auto; left: 0; }
[dir="rtl"] .qrt-icon-box h4 { padding-right: 0; padding-left: 50px; }
[dir="rtl"] .qrt-content-frame, [dir="rtl"] .qrt-banner-title, [dir="rtl"] .qrt-half-banner .qrt-banner-title { text-align: right; }
[dir="rtl"] .qrt-table li span { text-align: left; }
[dir="rtl"] .qrt-price-list { padding-right: 0; }
/* keep the icon fonts when the Arabic font is applied */
[lang="ar"] .qrt-app .fas, [lang="ar"] .qrt-app .far, [lang="ar"] .qrt-app .fa { font-family: "Font Awesome 5 Free" !important; }
[lang="ar"] .qrt-app .fab { font-family: "Font Awesome 5 Brands" !important; }

/* a slightly larger logo in the top-left square */
.qrt-app .qrt-top-bar .qrt-symbol img { width: 46px !important; height: 46px !important; }

/* price list: even gap after the check mark, in either direction */
.qrt-price .qrt-price-body .qrt-price-list li:before { margin-right: 0 !important; margin-left: 0 !important; margin-inline-end: 10px; }

/* About page, Arabic: titles and text read right to left, the page layout stays as it is */
html[lang="ar"] .qrt-content-frame [dir="rtl"]:is(h3, h4, .qrt-text):not(.qrt-counter-frame *) { text-align: right; }
html[lang="ar"] .qrt-banner-title[dir="rtl"], html[lang="ar"] .qrt-banner-title [dir="rtl"] { text-align: right; }

/* ERP banner on the Products page */
.bm-erp-cta { margin-bottom: 0; }
/* TajerOS page: AI agent block */
.bm-agent { margin: 10px 0 0; }
.bm-agent-layout { display: grid; grid-template-columns: 1fr 3.4fr; gap: 16px; align-items: stretch; direction: ltr; }
.bm-agent-visual { background: #0f1520; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(8,12,20,.25); padding: 8px; }
.bm-agent-visual img { width: 100%; max-width: 220px; height: auto; display: block; }
.bm-agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bm-agent-tile { position: relative; background: linear-gradient(159deg, #222c3e 0%, #1c2433 100%); box-shadow: 0 3px 8px rgba(8,12,20,.25); padding: 22px 22px 22px 22px; padding-top: 70px; }
.bm-agent-tile i { position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #1a86ff; color: #fff; font-size: 17px; }
.bm-agent-tile h5 { margin: 0 0 6px; color: #f3f7fc; }
.bm-agent-tile span { display: block; color: #a9b4c4; font-size: 14px; line-height: 1.55; }
@media (max-width: 767px) { .bm-agent-layout { grid-template-columns: 1fr; } .bm-agent-visual { padding: 24px; } }
@media (max-width: 575px) { .bm-agent-grid { grid-template-columns: 1fr; } }
.bm-agent-visual img.bm-owl { image-rendering: pixelated; max-width: 260px; }
.bm-agent-visual, .bm-agent-visual img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bm-agent-visual img.bm-owl { pointer-events: none; }
[data-rv] span, a[data-rt] span { border-bottom: 1px dashed currentColor; cursor: pointer; }

/* ---- mobile and tablet: product grid, filter and spacing ---- */
.qrt-masonry-grid { min-height: 0 !important; }
@media (max-width: 992px) {
  .qrt-3-col .qrt-grid-sizer, .qrt-3-col .qrt-masonry-grid-item, .qrt-4-col .qrt-grid-sizer, .qrt-4-col .qrt-masonry-grid-item { width: 50%; }
  .qrt-filter { flex-direction: row !important; flex-wrap: wrap; gap: 8px; }
  .qrt-filter .qrt-work-category { margin: 0 !important; padding: 10px 14px; }
  .qrt-filter-frame { padding: 0 0 16px; }
}
@media (max-width: 575px) {
  .qrt-3-col .qrt-grid-sizer, .qrt-3-col .qrt-masonry-grid-item, .qrt-4-col .qrt-grid-sizer, .qrt-4-col .qrt-masonry-grid-item { width: 100%; }
  .qrt-masonry-grid { margin: 0 -10px; }
  .qrt-masonry-grid-item { padding: 8px 10px; }
}

/* contact form: the message box has no white / blue stripe beside its icon (same look as the other fields) */
.qrt-form-field textarea, .qrt-form-field textarea:focus, .qrt-form-field textarea.qrt-active { border-left: 0 !important; border-color: transparent !important; padding-left: 65px; outline: none; }
/* product filter chips fit a phone */
@media (max-width: 575px) { .qrt-filter .qrt-work-category { padding: 10px 11px; font-size: 11px; letter-spacing: .06em; } }

/* phones: tighter vertical rhythm */
@media (max-width: 767px) {
  .qrt-content-frame [style*="height:40px"], .qrt-content-frame [style*="height:50px"], .qrt-content-frame [style*="height:30px"] { height: 16px !important; }
  .qrt-content-frame [style*="margin-bottom:40px"] { margin-bottom: 24px !important; }
  .qrt-content-frame .qrt-mb-40 { margin-bottom: 24px !important; }
  .bm-agent-visual { padding: 14px; }
  .bm-agent-visual img, .bm-agent-visual img.bm-owl { max-width: 150px; }
  .bm-agent-tile { padding-top: 62px; }
}
