/* ==========================================================================
   Markera – Arabic / RTL overrides (loaded only on right-to-left pages)
   ========================================================================== */

@font-face {
	font-family: "Alexandria";
	src: url("../fonts/alexandria-arabic.woff2") format("woff2-variations"), url("../fonts/alexandria-arabic.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Readex Pro";
	src: url("../fonts/readex-arabic.woff2") format("woff2-variations"), url("../fonts/readex-arabic.woff2") format("woff2");
	font-weight: 160 700;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
	/* Arabic glyphs come from Alexandria / Readex Pro, Latin glyphs keep the brand fonts. */
	--font-display: "Alexandria", "Unbounded", "Segoe UI", Tahoma, sans-serif;
	--font-body: "Readex Pro", "Manrope", "Segoe UI", Tahoma, sans-serif;
}

body { line-height: 1.85; }

/* Arabic letters must never be spaced apart or upper-cased */
.eyebrow, .header-phone small, .fc-item small, .ic-label, .footer-title, .meta-strip small, .post-nav small, .fr-num {
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.eyebrow { font-size: .88rem; font-weight: 700; }
.footer-title { font-size: .98rem; }
.section-title, .hero-title, .page-title, .cta-title, .sr-title, .block-title,
.prose h1, .prose h2, .service-card h3, .post-card.is-lead .post-card-title, .deck-front strong, .counter-value, .fc-item strong {
	letter-spacing: 0;
}
.hero-title { line-height: 1.3; font-weight: 700; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem); }
.page-title { line-height: 1.35; font-weight: 700; }
.section-title, .cta-title { line-height: 1.4; font-weight: 700; }
.prose h2, .sr-title, .block-title { line-height: 1.5; font-weight: 700; }
.service-card h3 { font-weight: 600; }
.btn { font-weight: 700; }
.prose { line-height: 1.95; }

/* ---------- Mirrored decorations ---------- */
.eyebrow::before, .hero-title::after, .breadcrumbs li + li::before, .prose ul > li::before { transform: skewX(30deg); }
.breadcrumbs li + li::before { margin-right: 0; margin-left: 4px; }

.hero-strokes span { right: auto; left: -18%; transform: rotate(30deg); transform-origin: left center; }
.hero::before, .page-hero::before { inset: auto auto -60% -10%; }
.hero::after, .page-hero::after {
	mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}
.dash { transform: perspective(1400px) rotateY(8deg) rotateX(4deg); }
.dash-search { margin-left: 0; margin-right: 12px; }
.fc-a { left: auto; right: -32px; }
.fc-b { right: auto; left: -18px; }
.strategy-visual .fc-c { left: auto; right: -24px; }
.stat-custom { right: auto; left: -10px; }
.stack-mark { right: auto; left: 28px; }
.media-badge { left: auto; right: -24px; }
.service-card::after { right: auto; left: -60px; }
.side-box.is-dark::before { right: auto; left: -90px; }
.deck-front::before { right: auto; left: -120px; }
.footer-glow { right: auto; left: -10%; }
.cta-panel::before { left: auto; right: -15%; }
.team-go { right: auto; left: 14px; }
.side-cta { right: auto; left: 18px; align-items: flex-start; }
.video-modal button { right: auto; left: 20px; }
.play .icon { margin-left: 4px; }

/* Arrow icons point the other way in RTL */
.icon-arrow-up-right, .icon-arrow-right, .icon-arrow-left { transform: scaleX(-1); }
.link-arrow:hover .icon, .service-card:hover .sc-more .icon { transform: scaleX(-1) translate(3px, -3px); }
.btn:hover .btn-icon { transform: rotate(-45deg); }
.newsletter button:hover { transform: rotate(45deg); }
.to-top .icon { transform: scaleX(-1) rotate(-45deg); }

/* ---------- Navigation ---------- */
.primary-nav .menu-item-has-children > a::after, .primary-nav .page_item_has_children > a::after { margin-left: 0; margin-right: 2px; }
.primary-nav .sub-menu, .primary-nav .children { left: auto; right: -8px; }
.primary-nav .sub-menu .sub-menu { left: auto; right: 100%; }
.header-actions .btn { padding-left: 8px; padding-right: 20px; }
.btn { padding: 8px 24px 8px 8px; }

/* ---------- Content ---------- */
.steps.is-cards .step { text-align: right; }
.mc-arrow { margin-left: 0; margin-right: auto; }
.toc-list .is-sub a { padding-left: 10px; padding-right: 28px; }
.pn-next { text-align: left; }
.prose ul > li { padding-left: 0; padding-right: 30px; }
.prose ul > li::before { left: auto; right: 4px; }
.prose ol > li { padding-left: 0; padding-right: 40px; }
.prose ol > li::before { left: auto; right: 0; }
.prose blockquote { border-left: 0; border-right: 5px solid var(--brand); }
.prose th, .prose td { text-align: right; }
.alignleft { float: right; margin: .3em 0 1em 1.6em; }
.alignright { float: left; margin: .3em 1.6em 1em 0; }
.acc-a { padding: 0 66px 24px 24px; }
.socials.is-footer { margin-left: 0; margin-right: auto; }
.footer-links a::before { margin-right: 0; margin-left: 0; }
.footer-links a:hover::before { margin-right: 0; margin-left: 8px; }
.hp { left: auto; right: -9999px; }

/* Numbers with symbols (01. / 30k+ / 98%) keep their Latin order */
.counter-value, .hero-proof strong, .fc-k, .rank, .price { direction: ltr; unicode-bidi: isolate; }
.counter-value { justify-content: flex-end; }
.step-num { display: block; }
.hero-proof strong { text-align: right; }

/* Keep Latin-only values (phone, email, URLs) left-to-right inside Arabic text */
.header-phone .hp-txt, .fc-item strong, .side-phone, .nav-phone, .cta-phone, .info-card .ic-big, .serp-lines b { direction: ltr; unicode-bidi: isolate; }
.header-phone .hp-txt small { direction: rtl; }
.fc-item strong, .info-card .ic-big { text-align: right; }

@media (max-width: 1280px) {
	.header-phone .hp-txt { display: none; }
}
@media (max-width: 1024px) {
	.header-actions { margin-left: 0; margin-right: auto; }
	.primary-nav .menu-item-has-children > a::after { margin-right: auto; }
	.primary-nav .sub-menu, .primary-nav .children { padding: 0 14px 12px 0; }
}
@media (max-width: 680px) {
	.stat-custom { left: auto; }
	.media-badge { right: auto; }
	.pn-next { text-align: right; }
	.acc-a { padding-right: 24px; }
	.socials.is-footer { margin-right: 0; }
}

@media (min-width: 1025px) {
	.side-cta { left: 0; right: auto; }
	.sc-btn { border-radius: 0 999px 999px 0; }
}

/* v2.3 – slightly smaller Arabic headings */
.hero-title { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.5rem); }
body.home .hero-title { font-size: clamp(30px, 22px + 1.6vw, 40px); line-height: 1.4; }
.section-title, .cta-title { font-size: clamp(24px, 19px + 1.1vw, 30px); line-height: 1.45; }
