/* EN / عربي switch: same height as the menu button, on the other side of the screen or beside
   the button (placed by assets/js/lang-switch.js); inside the open menu on every page. */
.az-lang {
  position: fixed; top: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  height: 34px; min-width: 34px; padding: 0 0.9em; box-sizing: border-box;
  border: 1px solid rgba(247, 242, 226, 0.45); border-radius: 999px;
  color: #f7f2e2; text-decoration: none; font-size: 13px; line-height: 1;
  /* frosted glass: whatever passes behind (the About page's spinning letters) blurs instead of
     swallowing the word */
  background: rgba(0, 0, 0, 0.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: Fonntsreg, Arial, sans-serif; letter-spacing: 0.5px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.az-lang.is-placed { opacity: 1; visibility: visible; transition-delay: 0s; }
.az-lang:hover, .az-lang:focus-visible { background: #f7f2e2; color: #1610e8; border-color: #f7f2e2; }
/* "عربي" in Alexandria (the Arabic site font), cut down to just these four letters (about 2 KB) */
@font-face { font-family: "AZ Arabic Switch"; src: url("../fonts/ar/alexandria-switch.woff2") format("woff2"); font-weight: 500; font-display: block; }
.az-lang[lang="ar"] { font-family: "AZ Arabic Switch", Fonntsreg, Arial, sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 0; padding: 0 1.05em 0.12em; }
/* out of the way while the menu is open or the Start a Project block is showing */
/* On the page: out of the way while the Start a Project block shows. Pages without an Arabic
   version (data-menu-lang: the switch flips the menu's language) keep it in the menu only. */
.az-lang.is-away, .az-lang[data-menu-lang] { opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, 0.35s; }
/* In the open menu: always there, beside the menu button (placed by lang-switch.js) */
html.menu-open .az-lang.is-placed { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
@media (max-width: 767px) {
  .az-lang { font-size: 12px; padding: 0 0.8em; }
  .az-lang[lang="ar"] { font-size: 13px; }
}

/* Arabic menu on the English-only pages (assets/js/menu-lang.js): Arabic letters join, so no
   letter spacing, and a little more line height for their dots and tails */
.az-menu-ar .menu-div *, .az-menu-ar .footer-white * { letter-spacing: 0 !important; }
.az-menu-ar .menu-wrapper .srv-lnk-div a { line-height: 1.3; }
.az-menu-ar .link-block-2[dir="rtl"] .text-block-8 { margin-right: 0; margin-left: 10px; }   /* "أ. الرئيسية" */
