/* bundle of: /assets/css/preloader.css /assets/css/ui.css /assets/css/rtl.css?v=20261019 /assets/css/fonts.css?v=20261027 /assets/css/site-polish.css?v=20261123 */
/* ---- /assets/css/preloader.css ---- */
/* preloader.css — the home page's video-logo preloader for every inner page.
   Same look and timing as index.html (home-hero-anim.css + its inline failsafe). */
.preloader {
    position: fixed; inset: 0; z-index: 9999999;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg) none;
    animation: site-preloader-out 0.4s ease 6s forwards;   /* closes even if no script runs */
}
.preloader-logo:not([hidden]) {
    display: block; width: 250px; max-width: calc(100% - 32px); height: 100%; object-fit: contain;
}
.preloader.is-done {
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
@keyframes site-preloader-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* ---- /assets/css/ui.css ---- */
/* ==========================================================================
   ui.css — shared components and accessibility layer. Loaded LAST on every page.
   Uses tokens.css only. Sections: 1 Buttons · 2 Inputs · 3 Focus · 4 Hidden controls · 5 Reduced motion
   ========================================================================== */

/* 1. Buttons ---------------------------------------------------------------
   One button. Base classes: .theme-btn (template pages), .btn (generated pages),
   .cta-button (header). Variants: default = primary, .btn--outline (alias .btn-line),
   .btn--ghost. Sizes: .btn--sm / .btn--md / .btn--lg.
   States: hover, :focus-visible, :disabled / [aria-disabled="true"] / .is-disabled,
   loading = .is-loading or inside a form[aria-busy="true"].                   */
html body .theme-btn, html body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
html body .theme-btn, html body .btn, html body .cta-button {
  border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
/* primary */
html body .theme-btn:not(.btn--outline):not(.btn--ghost),
html body .cta-button,
html body .btn.btn-lime {
  background-color: var(--color-brand); color: var(--color-on-brand) !important; opacity: 1;
}
html body .theme-btn:not(.btn--outline):not(.btn--ghost):hover,
html body .cta-button:hover,
html body .btn.btn-lime:hover {
  background-color: var(--color-brand-hover); opacity: 1;
}
/* outline */
html body .theme-btn.btn--outline, html body .btn.btn--outline, html body .btn.btn-line {
  background-color: transparent; color: var(--color-text) !important; border: 1px solid var(--color-border-strong);
}
html body .theme-btn.btn--outline:hover, html body .btn.btn--outline:hover, html body .btn.btn-line:hover {
  border-color: var(--color-brand); color: var(--color-brand) !important;
}
/* ghost */
html body .theme-btn.btn--ghost, html body .btn.btn--ghost {
  background-color: transparent; color: var(--color-text) !important; border: 1px solid transparent;
}
html body .theme-btn.btn--ghost:hover, html body .btn.btn--ghost:hover {
  background-color: rgba(255, 255, 255, .06); color: var(--color-brand) !important;
}
/* sizes (opt-in, so existing layouts keep their padding) */
html body .btn--sm { min-height: 36px; padding: 8px 16px;  font-size: var(--fs-14); }
html body .btn--md { min-height: 48px; padding: 12px 28px; font-size: var(--fs-16); }
html body .btn--lg { min-height: 56px; padding: 16px 36px; font-size: var(--fs-18); }
/* disabled */
html body .theme-btn:disabled, html body .btn:disabled, html body .cta-button:disabled,
html body [aria-disabled="true"].theme-btn, html body [aria-disabled="true"].btn,
html body .theme-btn.is-disabled, html body .btn.is-disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}
/* loading */
html body .is-loading.theme-btn, html body .is-loading.btn,
html body form[aria-busy="true"] button[type="submit"] { position: relative; cursor: progress; }
html body .is-loading.theme-btn::after, html body .is-loading.btn::after,
html body form[aria-busy="true"] button[type="submit"]::after {
  content: ""; width: 14px; height: 14px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: ui-spin .7s linear infinite;
}
/* Sending: the submit button is disabled but should read as busy, not unavailable */
html body form[aria-busy="true"] button[type="submit"]:disabled { opacity: 1; cursor: progress; pointer-events: none; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

/* 2. Inputs ----------------------------------------------------------------
   .form-control (template forms, used by form-validator.js) and .ds-input/.ds-select
   share one look.                                                              */
html body .form-control, html body .ds-input, html body .ds-select {
  background-color: transparent; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-input);
  font-family: var(--font-body);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
html body .ds-input, html body .ds-select { background-color: var(--color-surface); }
html body .form-control::placeholder, html body .ds-input::placeholder { color: rgba(255, 255, 255, .3); }
html body .form-control:focus, html body .ds-input:focus, html body .ds-select:focus {
  outline: 0; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(var(--color-brand-rgb), .15);
}
html body .form-control[aria-invalid="true"], html body .ds-input[aria-invalid="true"] { border-color: var(--color-error); }
html body .form-control:disabled, html body .ds-input:disabled { opacity: .5; cursor: not-allowed; }

/* 3. Keyboard focus ---------------------------------------------------------
   Visible ring for keyboard users only (mouse clicks don't show it).            */
:where(a, button, [role="button"], input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring) !important; outline-offset: var(--focus-offset);
  border-radius: 4px;
}
html body .theme-btn:focus-visible, html body .btn:focus-visible, html body .cta-button:focus-visible {
  outline: var(--focus-ring) !important; outline-offset: var(--focus-offset); border-radius: var(--radius-btn);
}
/* inputs already show a green border + glow on focus */
:where(input, select, textarea).form-control:focus-visible,
:where(input, select, textarea).ds-input:focus-visible { outline-offset: 1px; }

/* 4. Checkbox / radio / toggle ----------------------------------------------
   Keep the real input reachable by keyboard and screen readers (was display:none). */
.ds-checkbox, .ds-radio, .ds-toggle {
  display: block !important; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ds-checkbox:focus-visible + .ds-checkbox-box,
.ds-radio:focus-visible + .ds-radio-circle,
.ds-toggle:focus-visible + .ds-toggle-slider { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 5. Reduced motion ---------------------------------------------------------
   Honour the visitor's OS setting site-wide. script.js also swaps the hero
   video for its final-frame still and skips the preloader video.              */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .preloader { display: none !important; }
  .hf-hero-video { display: none !important; }
  .hf-hero-still { display: block !important; width: 100%; height: auto; }
  .bg-lines span { height: 100% !important; }
}

/* Small phones (EN + AR): keep logo, language switch and icons from touching — 2026-10-13 */
.site-header .header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
@media (max-width: 479.98px) {
  .site-header .header-container { padding-left: 16px; padding-right: 16px; }
  .site-header .header-logo img { height: 20px; }
  .site-header .lang-switch { min-height: 36px; padding: 0 6px; gap: 4px; font-size: 13px; margin-inline-end: 0; }
  .site-header .search-link { width: 40px; height: 40px; margin-inline-end: 0; }
}

/* Language switch (EN ⇄ AR) in the header — added Oct 2026 */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; margin-inline-end: 2px; border-radius: 999px; font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1; color: var(--color-white); text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.lang-switch svg { flex: none; width: 18px; height: 18px; }
.lang-switch:hover, .lang-switch:focus-visible { opacity: 1; color: var(--color-brand); }
.lang-switch[lang="ar"] { font-family: var(--font-arabic); }

/* Header search icon + /search page — added Oct 2026 */
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline-end: 6px; color: inherit; opacity: .85; border-radius: 50%; }
.search-link:hover, .search-link:focus-visible { opacity: 1; }
.site-search { display: flex; gap: 12px; margin-top: 32px; max-width: 760px; }
.site-search input { flex: 1; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 17px; }
.site-search input:focus { outline: 2px solid var(--lime, #82ff00); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-count { opacity: .7; margin: 0 0 16px; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.search-results a { display: block; padding: 18px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; color: inherit; text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { border-color: var(--lime, #82ff00); }
.search-results h3 { margin: 0 0 6px; font-size: 19px; }
.search-results p { margin: 0 0 6px; opacity: .8; font-size: 15px; }
.search-results .url { font-size: 13px; color: var(--lime, #82ff00); }
@media (max-width: 600px) { .site-search { flex-direction: column; } }

/* Outlined display text (EN + AR): overlapping glyph contours draw seams through letters (A crossbars, e, g, joined Arabic).
   Fill with the band colour and paint the stroke underneath; the visible outer 1px matches the old 1px stroke. — 2026-10-18 */
body.home-figma .hf-big-ticker .marquee-item span { color: rgb(15, 14, 14); -webkit-text-stroke-width: 2px; paint-order: stroke fill; }
body.home-figma .hf-awards .award-box .tag { color: rgb(16, 19, 22); -webkit-text-stroke-width: 2px; paint-order: stroke fill; }
.awards-list-area .award-box .tag { color: rgb(22, 27, 34); -webkit-text-stroke-width: 2px; paint-order: stroke fill; }
body.home-figma .hf-awards .award-box:hover .tag, .awards-list-area .award-box:hover .tag { color: var(--color-white); }

/* Footer "Connect:" row — the icon row's 15px bottom margin pushed it off-centre from the label */
.main-footer .social-flow .social-style-one { margin-bottom: 0; }

/* ---- /assets/css/rtl.css?v=20261019 ---- */

/* rtl.css — Arabic pages (/ar/). Loaded after the site CSS on <html lang="ar" dir="rtl"> only. */
html[dir="rtl"] body,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] p, html[dir="rtl"] a, html[dir="rtl"] li, html[dir="rtl"] span, html[dir="rtl"] small,
html[dir="rtl"] button, html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea, html[dir="rtl"] label,
html[dir="rtl"] th, html[dir="rtl"] td, html[dir="rtl"] summary, html[dir="rtl"] dt, html[dir="rtl"] dd, html[dir="rtl"] strong, html[dir="rtl"] em {
    font-family: var(--font-arabic);
}
/* Arabic letters must join: no tracking, no forced case, slightly taller lines */
html[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; }
html[dir="rtl"] body { line-height: 1.75; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.35; }
html[dir="rtl"] .fa, html[dir="rtl"] .fas, html[dir="rtl"] .far, html[dir="rtl"] .fal, html[dir="rtl"] .fab { font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "Font Awesome 5 Brands" !important; }
html[dir="rtl"] .fab { font-family: "Font Awesome 5 Brands" !important; }

/* Text alignment follows the reading direction */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .text-left, html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-right, html[dir="rtl"] .text-end { text-align: left !important; }

/* Directional arrows point the other way */
html[dir="rtl"] .fa-arrow-right, html[dir="rtl"] .fa-long-arrow-right, html[dir="rtl"] .fa-angle-right,
html[dir="rtl"] .fa-angle-double-right, html[dir="rtl"] .fa-chevron-right, html[dir="rtl"] .fa-arrow-left { transform: scaleX(-1); display: inline-block; }

/* Header: logo left, actions right, as in English. Only the menu itself runs right-to-left. */
html[dir="rtl"] .site-header .header-container { direction: ltr; }
html[dir="rtl"] .site-header .header-nav { direction: rtl; }
html[dir="rtl"] .nav-sub { left: auto; right: -20px; text-align: right; }
html[dir="rtl"] .nav-link.active::after, html[dir="rtl"] .nav-drop-btn.active::after { left: auto; right: 0; }
@media (max-width: 1024px) {
  html[dir="rtl"] .header-nav > .nav-link, html[dir="rtl"] .nav-drop-btn { text-align: right; }
  html[dir="rtl"] .nav-sub { padding: 4px 12px 12px 0; }
}

/* Numbers, emails, phones and Latin brand names stay left-to-right inside Arabic text */
html[dir="rtl"] a[href^="mailto:"], html[dir="rtl"] a[href^="tel:"], html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"] { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] table td.num, html[dir="rtl"] table th.num { text-align: left; }


/* Home hero: the absolute-positioned composition keeps its English layout; let the Arabic subtitle wrap */
html[dir="rtl"] body.home-figma .hf-hero-sub { white-space: normal; max-width: 62%; }
html[dir="rtl"] body.home-figma .hf-hello, html[dir="rtl"] body.home-figma .hf-im, html[dir="rtl"] body.home-figma .hf-name { font-family: var(--font-arabic); }
html[dir="rtl"] body.home-figma .hf-hello { transform: translateY(12px); }
/* --- generated by mirror_hero.py: Arabic hero mirrored at every breakpoint --- */
html[dir="rtl"] body.home-figma .hf-hero-sub { left: auto; right: 40px; }
html[dir="rtl"] body.home-figma .hf-hello { left: auto; right: 27px; }
html[dir="rtl"] body.home-figma .hf-im { left: auto; right: 858px; }
html[dir="rtl"] body.home-figma .hf-name { left: 42px; right: auto; }
html[dir="rtl"] body.home-figma .hf-designation { left: auto; right: 109px; }
@media (max-width: 1199.98px) { html[dir="rtl"] body.home-figma .hf-hero-sub { left: auto; right: 0; } }
@media (max-width: 1199.98px) { html[dir="rtl"] body.home-figma .hf-hello { left: auto; right: -13px; } }
@media (max-width: 1199.98px) { html[dir="rtl"] body.home-figma .hf-im { left: auto; right: 593px; } }
@media (max-width: 1199.98px) { html[dir="rtl"] body.home-figma .hf-name { left: 0; right: auto; } }
@media (max-width: 1199.98px) { html[dir="rtl"] body.home-figma .hf-designation { left: auto; right: 74px; } }
@media (max-width: 991.98px) { html[dir="rtl"] body.home-figma .hf-im { left: 220px; right: auto; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-hero-sub { left: auto; right: 0; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-hello { left: auto; right: 0; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-im { left: auto; right: 239px; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-name { left: 17px; right: auto; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-designation { left: auto; right: 10px; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-hero-sub { left: auto; right: 0; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-hello { left: auto; right: 0; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-im { left: auto; right: calc(239 * var(--u)); } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-name { left: calc(17 * var(--u)); right: auto; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-designation { left: auto; right: calc(10 * var(--u)); } }

/* --- RTL layout fixes (2026-10-13) --- */
/* Hero: Arabic glyphs sit taller than Latin; clear the badge above "مرحباً" */
html[dir="rtl"] body.home-figma .hf-hello { transform: translateY(34px); line-height: 1.1; }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-hello { transform: translateY(14px); } }
html[dir="rtl"] body.home-figma .hf-hero-sub { max-width: none; white-space: nowrap; }
html[dir="rtl"] body.home-figma .hf-designation { flex-direction: row; }

/* Icons beside text: spacing goes on the reading side */
html[dir="rtl"] .icon-sm { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .sub-title i, html[dir="rtl"] .home-two .sub-title i { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .social-flow h4 { margin-right: 0; margin-left: 15px; }

/* Tickers: run the strip left-to-right so it stays full; each item still reads RTL */
html[dir="rtl"] .marquee-wrap, html[dir="rtl"] .marquee-inner { direction: ltr; }
html[dir="rtl"] .marquee-item { direction: rtl; unicode-bidi: isolate; }


/* Bootstrap is the LTR build: mirror the spacing utilities used on these pages */
html[dir="rtl"] .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .mr-auto { margin-right: 0 !important; margin-left: auto !important; }
html[dir="rtl"] .float-left { float: right !important; }
html[dir="rtl"] .float-right { float: left !important; }

/* Mid-width desktops: Arabic labels are wider, keep the menu clear of the logo */
@media (min-width: 1025px) and (max-width: 1299.98px) {
  html[dir="rtl"] .header-nav { gap: 22px; margin-inline: 24px; }
  html[dir="rtl"] .header-nav .nav-link, html[dir="rtl"] .nav-drop-btn { font-size: 15px; }
}

/* Mirror directional art and diagonal arrows so they point along the reading direction */
html[dir="rtl"] body.home-figma .hf-skill-art .hf-skill-man,
html[dir="rtl"] body.home-figma .hf-skill-arrow-art img { transform: scaleX(-1); }
html[dir="rtl"] body.home-figma .hf-skill-arrow-art { margin-right: 0; margin-left: 38px; }
@media (max-width: 991.98px) { html[dir="rtl"] body.home-figma .hf-skill-arrow-art { margin-left: 0; } }
html[dir="rtl"] .more-btn i { transform: rotate(-45deg); }
html[dir="rtl"] .details-btn { transform: rotate(45deg); }

/* Footer: logo row keeps the English layout (logo left, menu right); menu items still read RTL.
   Description text aligns right (Bootstrap is the LTR build, so text-lg-start meant left). */
@media (min-width: 768px) {
  html[dir="rtl"] .main-footer .row > * { order: 3; }
  html[dir="rtl"] .main-footer .row > :nth-child(1) { order: 2; }
  html[dir="rtl"] .main-footer .row > :nth-child(2) { order: 1; }
}
@media (min-width: 992px) {
  html[dir="rtl"] .main-footer .widget_text .text { text-align: right; }
  html[dir="rtl"] .main-footer .widget_social { display: flex; justify-content: flex-end; } /* flex-end = left in RTL; text-lg-end can't be overridden (layered !important) */ /* set on the child: Bootstrap's layered !important on the parent outranks unlayered !important */
}

/* Services: mirror the gaps the LTR template sets with margin-right */
html[dir="rtl"] .list-style-two li::before { flex: none; margin-right: 0; margin-left: 20px; }
html[dir="rtl"] .service-item .number { margin-right: 0; margin-left: 50px; }
html[dir="rtl"] .proof-scale .metric-items .service-item .number, html[dir="rtl"] .template-inner .t-main .proof-scale .metric-items .service-item .number { margin: 0 0 0 30px; direction: ltr; text-align: right; }
@media (max-width: 479.98px) { html[dir="rtl"] .proof-scale .metric-items .service-item .number, html[dir="rtl"] .template-inner .t-main .proof-scale .metric-items .service-item .number { margin: 0 0 16px; } }

/* ===== Arabic home page RTL fixes (2026-10-18) ===== */
/* Hero: "معاذ" ends under the right edge of "أنا" */
html[dir="rtl"] body.home-figma .hf-name { left: auto; right: 858px; }
html[dir="rtl"] body.home-figma .hf-name { text-decoration-thickness: 0.04em; }
@media (max-width: 1199.98px) { html[dir="rtl"] body.home-figma .hf-name { left: auto; right: 593px; } }
@media (max-width: 767.98px) { html[dir="rtl"] body.home-figma .hf-name { left: auto; right: calc(239 * var(--u, 1px)); } }

/* Experience: "الدراسة" / "والخبرة" pills — Sora (Arabic falls back to IBM Plex), fully opaque */
html[dir="rtl"] body.home-figma .timeline-heading .title { font-family: var(--font-arabic); color: #fff; opacity: 1; letter-spacing: 0; }

/* Recent highlights: labels sit on the right edge */
html[dir="rtl"] body.home-figma .hf-projects .project-item.style-four .content { left: auto; right: 20px; align-items: flex-start; } /* start = right edge in RTL */

/* Skills ticker: space between the star and its text */
html[dir="rtl"] .marquee-item i { margin-left: 0; margin-right: 30px; }

/* Innovation lab: mirror the text rule, column gaps and list stars */
html[dir="rtl"] .service-item-two .text { margin-right: 0; margin-left: 5%; padding-left: 0; padding-right: 20px; border-left: 0; border-right: 1px solid var(--primary-color); }
html[dir="rtl"] .service-item-two .list { margin-right: 0; margin-left: 7%; }
html[dir="rtl"] .service-item-two .list li:before { margin-right: 0; margin-left: 10px; }

/* Blog "اقرأ المزيد": arrow points left with a gap from the text */
html[dir="rtl"] .read-more img { margin-left: 0; margin-right: 12px; transform: scaleX(-1); }

/* Contact: inputs pad evenly so placeholders line up on the right */
html[dir="rtl"] body.home-figma .hf-contact .contact-form-two .form-control,
html[dir="rtl"] body.home-figma .hf-contact .contact-form-two input,
html[dir="rtl"] body.home-figma .hf-contact .contact-form-two textarea { padding-right: 30px; padding-left: 30px; text-align: right; }
/* Phone number reads +966 50 175 7969 */
html[dir="rtl"] body.home-figma .hf-contact-content h5 { unicode-bidi: plaintext; }
html[dir="rtl"] body.home-figma .hf-contact-content h5:has(img[src*="phone"]) { direction: ltr; justify-content: flex-end; }
html[dir="rtl"] body.home-figma .hf-contact-content h5:has(img[src*="phone"]) img { order: 2; margin-left: 15px; margin-right: 0; }
/* "المزيد" arrow points up-left */
html[dir="rtl"] body.home-figma .hf-contact-more .arrow { transform: rotate(45deg); }

/* Big tickers (Arabic) — lab ticker runs the other way */
html[dir="rtl"] body.home-figma .hf-big-ticker--lab .marquee-inner.left { animation-direction: reverse; }
/* Outlined Arabic words: joined letters overlap, so a plain stroke draws seams through them.
   Fill with the band colour and paint the stroke underneath; only the outer 1px of a 2px stroke shows. */
html[dir="rtl"] body.home-figma .hf-big-ticker .marquee-item span { color: rgb(15, 14, 14); -webkit-text-stroke-width: 2px; paint-order: stroke fill; }
html[dir="rtl"] body.home-figma .hf-big-ticker--footer .marquee-inner.left { animation-direction: reverse; }

/* Innovation lab: LTR margins mirrored — icon→title 24px, title→text 60px */
html[dir="rtl"] body.home-figma .hf-lab .service-item-two .icon { width: auto; min-width: 0; margin-right: 0; margin-left: 30px; }
html[dir="rtl"] body.home-figma .hf-lab .service-item-two .title { margin-right: 0; margin-left: 60px; }

/* Awards: outlined Arabic titles without seams through joined letters (same technique as the big tickers) */
html[dir="rtl"] body.home-figma .hf-awards .award-box .tag { color: rgb(16, 19, 22); -webkit-text-stroke-width: 2px; paint-order: stroke fill; }
html[dir="rtl"] body.home-figma .hf-awards .award-box:hover .tag { color: var(--color-white); }

/* Footer type (Arabic): Sora first — it has no Arabic glyphs, so Arabic letters fall back to IBM Plex Sans Arabic */
html[dir="rtl"] .main-footer .widget_nav_menu ul li,
html[dir="rtl"] .main-footer .widget_nav_menu ul li a { font-family: var(--font-arabic); font-weight: 400; font-size: 16px; }
html[dir="rtl"] .main-footer .widget_text .text { font-family: var(--font-arabic); font-weight: 600; font-size: 16px; }
html[dir="rtl"] .main-footer .footer-sitemap li,
html[dir="rtl"] .main-footer .footer-sitemap a { font-family: var(--font-arabic); font-weight: 400; font-size: 14px; }

/* ===== Arabic pages: Sora on all text (2026-10-18) =====
   Sora has no Arabic glyphs, so Arabic letters render in IBM Plex Sans Arabic; digits and Latin words use Sora.
   Icon fonts (Font Awesome <i>, flaticon) are excluded so icons keep rendering. */
html[dir="rtl"] body,
html[dir="rtl"] body :not(i):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not([class*="flaticon"]):not(code):not(pre):not(kbd) {
  font-family: var(--font-arabic) !important;
}
/* About awards: same seam-free outline as the home awards (section colour #161B22) */
html[dir="rtl"] .awards-list-area .award-box .tag { color: rgb(22, 27, 34); -webkit-text-stroke-width: 2px; paint-order: stroke fill; }
html[dir="rtl"] .awards-list-area .award-box:hover .tag { color: var(--color-white); }

/* Blog essay pages (Arabic): the template's LTR margins mirrored — 2026-10-18 */
html[dir="rtl"] .blog-details-wrap .author-date-share .author { margin: 0 0 0 20px; }
html[dir="rtl"] body.template-inner .t-main .blog-details-wrap .author-date-share .text { margin-right: 0; margin-left: 40px; }
html[dir="rtl"] body.template-inner .t-main .blog-details-wrap .author-date-share .details-btn { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .blog-details-wrap .author-date-share .details-btn { margin-left: 0; margin-right: auto; flex: none; }
html[dir="rtl"] .blog-details-wrap .big-letter::first-letter { float: right; margin-right: 0; margin-left: 20px; }
html[dir="rtl"] .blog-details-wrap .list-style-one li::before { margin-right: 0; margin-left: 12px; }
html[dir="rtl"] .blog-details-wrap .tag-share .item b { margin-right: 0; margin-left: 20px; }
html[dir="rtl"] .blog-details-wrap .admin-comment .author-thumb { margin-right: 0; margin-left: 40px; }
html[dir="rtl"] .blog-details-wrap .next-prev-post .post-item .image { margin-right: 0; margin-left: 20px; flex: none; }
/* Essay blockquote (Arabic): bar, quote mark and padding on the right */
html[dir="rtl"] .blog-details-wrap blockquote { border-left: 0; border-right: 3px solid var(--color-brand); padding: 30px 125px 30px 40px; }
html[dir="rtl"] .blog-details-wrap blockquote::before { left: auto; right: 48px; transform: scaleX(-1); }
html[dir="rtl"] .blog-details-wrap blockquote .blockquote-footer::before { margin-right: 0; margin-left: 10px; }
@media (max-width: 767.98px) { html[dir="rtl"] .blog-details-wrap blockquote { padding-left: 40px; padding-right: 100px; } }
@media (max-width: 479.98px) { html[dir="rtl"] .blog-details-wrap blockquote { padding-left: 25px; padding-right: 60px; } }
@media (max-width: 375px) { html[dir="rtl"] .blog-details-wrap blockquote { padding-right: 25px; } }
/* Essay share icon points the reading direction in Arabic */
html[dir="rtl"] body.template-inner .t-main .blog-details-wrap .author-date-share .details-btn i { display: inline-block; transform: scaleX(-1); }

/* ---- /assets/css/fonts.css?v=20261027 ---- */
/* ==========================================================================
   mouazalsabbagh.com — Fonts
   Self-hosted from /assets/fonts/site/ (no third-party font requests).
   Loaded on every page (EN + AR). Licences: /assets/fonts/site/*-OFL.txt

   English  — headings: Outfit      body/UI: DM Sans
   Arabic   — Sora for Latin text, numbers and brand names,
              IBM Plex Sans Arabic for Arabic script (Sora has no Arabic
              glyphs, so the browser falls through to Plex per character).
   ========================================================================== */

/* ---------- Outfit (variable, 100–900) ---------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/site/outfit.woff2') format('woff2');
}

/* ---------- DM Sans (variable, 100–1000, optical size 9–40) ---------- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/site/dm-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/fonts/site/dm-sans-italic.woff2') format('woff2');
}

/* ---------- Sora (variable, 100–800) ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/site/sora.woff2') format('woff2');
}

/* ---------- IBM Plex Sans Arabic (static, 100–700) ---------- */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 100; font-display: swap; src: url('/assets/fonts/site/ibm-plex-sans-arabic-thin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 200; font-display: swap; src: url('/assets/fonts/site/ibm-plex-sans-arabic-extralight.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/site/ibm-plex-sans-arabic-light.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/site/ibm-plex-sans-arabic-regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/site/ibm-plex-sans-arabic-medium.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/site/ibm-plex-sans-arabic-semibold.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/site/ibm-plex-sans-arabic-bold.woff2') format('woff2'); }

/* ---------- Font tokens ----------
   Every stylesheet on the site reads these variables, so changing a font
   here changes it everywhere. Aliases keep older variable names working. */
:root {
  --font-en-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar:         'Sora', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --font-display: var(--font-en-heading);   /* headings, titles, big numbers */
  --font-body:    var(--font-en-body);      /* text, nav, buttons, forms */
  --font-arabic:  var(--font-ar);           /* Arabic snippets on EN pages */

  /* aliases used by older stylesheets */
  --font-heading: var(--font-display);
  --f-display:    var(--font-display);
  --f-body:       var(--font-body);
  --f-arabic:     var(--font-arabic);
}

/* Arabic pages: one family stack for everything */
html[lang="ar"],
html[dir="rtl"] {
  --font-display: var(--font-ar);
  --font-body:    var(--font-ar);
}

/* ---------- Base usage ---------- */
body {
  font-family: var(--font-body);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.heading {
  font-family: var(--font-display);
}
button, input, select, textarea, .form-control, .nice-select, .theme-btn {
  font-family: var(--font-body);
}
/* Arabic text inside English pages (language switch, bilingual titles) */
[lang="ar"]:not(i):not([class*="fa-"]):not([class*="flaticon"]) {
  font-family: var(--font-ar);
}

/* ---- /assets/css/site-polish.css?v=20261123 ---- */
/* Keep the existing typography tokens and sizes; resolve their fonts locally. */
.wow { visibility: visible !important; animation-name: none !important; transition: opacity 240ms ease-out, transform 240ms ease-out; }
.site-reveal-pending { opacity: 0; transform: translate3d(0, 12px, 0); }
.marquee-inner.site-motion-paused { animation-play-state: paused !important; }
/* The old control depended on .main-header, absent from the current header. */
.scroll-top { display: none !important; }
.site-back-to-top {
    position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
    width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
    border: 1px solid #82ff00; border-radius: 50%; background: #82ff00; color: #0a0f02;
    z-index: 1100; cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
    transition: background-color 160ms ease, transform 160ms ease;
}
.site-back-to-top[hidden] { display: none; }
.site-back-to-top:hover { background: #baff42; transform: translateY(-2px); }
.site-back-to-top:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
/* Avoid a viewport-sized fractal filter layer during scroll. */
body::after { display: none !important; }
.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: rgb(10 12 14 / 97%); }
.preloader { animation-duration: 200ms; }
@media (max-width: 767.98px) {
    .wow { transition: none; }
    .bg-lines span { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .wow, .site-reveal-pending { opacity: 1; transform: none; transition: none; }
    .marquee-inner { animation-play-state: paused !important; }
    .site-back-to-top { transition: none; }
    .bg-lines span { animation: none !important; }
}

/* Strategic pillar numbers (01–05) — menus, pillar strip, filters, sitemap. Added Oct 2026. */
.pillar-no {
  display: inline-block;
  min-width: 1.6em;
  margin-inline-end: .55em;
  color: var(--color-brand, #82ff00);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82em;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  opacity: .9;
}
.pillar-nav a > .pillar-no,
.nav-sub a > .pillar-no,
.footer-sitemap .pillar-no { color: var(--color-brand, #82ff00); }
.pillar-nav a > .pillar-no { display: block; margin: 0 0 .35em; font-size: .9rem; font-weight: 500; }
.nav-sub a > .pillar-no { vertical-align: baseline; }
html[dir="rtl"] .pillar-no { font-family: var(--font-display); unicode-bidi: isolate; }
/* Filter chips: on hover, focus or when selected the number takes the chip text colour (green on green was invisible). 20 Nov 2026. */
.project-filter li:hover > .pillar-no,
.project-filter li:focus-visible > .pillar-no,
.project-filter li.current > .pillar-no { color: inherit; opacity: 1; }
.chip:hover > .pillar-no,
.chip:focus-visible > .pillar-no,
.chip[aria-pressed="true"] > .pillar-no,
.project-filter li[aria-pressed="true"] > .pillar-no { color: inherit; opacity: 1; }

/* Images with width/height attributes keep their proportions when CSS sets only the width (no layout shift while loading). Zero specificity, so any explicit height still wins. */
:where(img[width][height]) { height: auto; }

/* P8 focus (20 Nov 2026): every keyboard-focusable element shows a visible ring (WCAG 2.4.7). Overrides the template's a{outline:0}. */
html body :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--color-brand, #82ff00) !important; outline-offset: 3px; }
/* Skip link (WCAG 2.4.1): hidden until focused. */
.skip-link { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 2000; padding: 10px 16px; border-radius: 8px; background: var(--color-brand, #82ff00); color: #0a0f02; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* P8 transition (20 Nov 2026): the template animates every property of links and buttons over .5s ("a{transition:.5s}"),
   so the focus ring and skip link faded in slowly. Animate colours and transforms only; focus styles appear at once. */
html body :is(a, button) { transition-property: color, background-color, border-color, opacity, transform, box-shadow; }
html body :is(a, button):focus-visible, .skip-link { transition: none; }

/* Lighthouse, 23 Nov 2026: readable sidebar links and quote names, icons keep their shape, text for screen readers */
.main-sidebar .widget-category ul li,.main-sidebar .widget-category ul li a:not(:hover){color:rgba(255,255,255,.62)}
blockquote .blockquote-footer{color:rgba(255,255,255,.62)}
.icon-sm,.icon-lg{object-fit:contain}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

