/*
 * Site translations: language switcher, footer language list, and the
 * typography and direction fixes the Webflow stylesheet (written for
 * left-to-right Latin text) needs for Chinese and Arabic.
 */

/* ---------------------------------------------------------------- switcher */
.sd-lang {
  position: relative;
  flex: none;
  color: #fff;
}

.sd-lang__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  font-family: Nunito, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color .2s, border-color .2s;
}

.sd-lang__toggle::-webkit-details-marker {
  display: none;
}

.sd-lang__toggle:hover,
.sd-lang[open] .sd-lang__toggle {
  background-color: #ffffff14;
  border-color: #ffffff33;
}

.sd-lang__toggle:focus-visible,
.sd-lang__option:focus-visible,
.sd-footer-langs__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sd-lang__globe {
  opacity: .85;
}

.sd-lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 1000;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background-color: #0b0d0ef2;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  box-shadow: 0 18px 40px #00000073;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.sd-lang__option {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #ffffffd9;
  font-family: Nunito, "PingFang SC", "Microsoft YaHei", "Noto Kufi Arabic", Tahoma, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.sd-lang__option:hover {
  background-color: #ffffff14;
  color: #fff;
}

.sd-lang__option.is-current {
  color: #fff;
  font-weight: 700;
}

.sd-lang__option.is-current::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-start: 8px;
  border-radius: 50%;
  background-color: #2ad38c;
  vertical-align: middle;
}

@media screen and (max-width: 767px) {
  .sd-lang__toggle {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .sd-lang__globe {
    display: none;
  }
}

/* ---------------------------------------------------- footer language list */
.sd-footer-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  margin-top: 18px;
  font-family: Nunito, "PingFang SC", "Microsoft YaHei", "Noto Kufi Arabic", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.sd-footer-langs__label {
  color: #ffffff80;
}

.sd-footer-langs__link {
  color: #ffffffb3;
  text-decoration: none;
}

.sd-footer-langs__link:hover,
.sd-footer-langs__link.is-current {
  color: #fff;
}

.sd-footer-langs__link.is-current {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Small "translated from English" line under customer quotes. */
.sd-translated-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .04em;
  opacity: .55;
}

/* ------------------------------------------------------- Chinese and Arabic */
/*
 * The Webflow fonts (Argesta, Nunito, Quicksand, Montserrat) have no CJK or
 * Arabic glyphs. Name explicit Simplified Chinese and Arabic faces so the
 * browser does not fall back to a random system font (or to Traditional
 * glyph forms), and keep the brand face for the logo and icon fonts.
 */
html:lang(zh) body,
html:lang(zh) body :not([class*="w-icon"]):not(.logo-text):not(.logo-text *) {
  font-family: Nunito, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif !important;
}

html:lang(ar) body,
html:lang(ar) body :not([class*="w-icon"]):not(.logo-text):not(.logo-text *) {
  font-family: "Noto Kufi Arabic", Nunito, Tahoma, "Segoe UI", sans-serif !important;
}

/* Letter-spacing breaks the joined Arabic script; uppercase means nothing in either script. */
html:lang(ar) body *,
html:lang(zh) body * {
  letter-spacing: normal !important;
}

/* No faux italics: emphasis keeps the design's colour treatment, upright. */
html:lang(ar) em,
html:lang(zh) em,
html:lang(ar) i,
html:lang(zh) i {
  font-style: normal;
}

/* Arabic marks sit above and below the line; give headings room. */
html:lang(ar) h1,
html:lang(ar) h2,
html:lang(ar) h3,
html:lang(ar) .hero-title {
  line-height: 1.5;
}

html:lang(ar) p,
html:lang(ar) li {
  line-height: 1.8;
}

html:lang(zh) p,
html:lang(zh) li {
  line-height: 1.75;
}

/* Wider glyphs: let short hero lines wrap later. */
html:lang(zh) .hero-title,
html:lang(ar) .hero-title {
  max-width: 18em;
}

/* ------------------------------------------------------------ right-to-left */
[dir="rtl"] .circle-button-arrow-container img,
[dir="rtl"] .book-now-link .icon-container,
[dir="rtl"] img[src*="arrow-right"] {
  transform: scaleX(-1);
}

[dir="rtl"] .ml-2-5 {
  margin-left: 0;
  margin-right: .625rem;
}

[dir="rtl"] .mr-2-5 {
  margin-right: 0;
  margin-left: .625rem;
}

[dir="rtl"] .rich-text ul,
[dir="rtl"] .rich-text ol,
[dir="rtl"] .w-richtext ul,
[dir="rtl"] .w-richtext ol {
  padding-left: 0;
  padding-right: 40px;
}

[dir="rtl"] .rich-text blockquote,
[dir="rtl"] .w-richtext blockquote {
  border-left: 0;
  border-right: 5px solid #e2e2e2;
}

/* Install-app card: the QR block is pinned bottom-right in the Webflow CSS,
   where the right-aligned Arabic text now sits. Mirror it to the left and
   flip the dark side of the cover gradient to the text side. */
html[dir="rtl"] .scan-apple {
  inset: auto auto 0% 0%;
  margin-right: 0;
  margin-left: 40px;
}

html[dir="rtl"] .isntall-appcard-bg {
  inset: -41% auto 0% -22%;
}

html[dir="rtl"] .install-app-cover {
  background-image: radial-gradient(circle at 50% 100%, #132d2f5c, #1a1a1a00), linear-gradient(271deg, #000 28%, #18181800);
}

@media screen and (max-width: 479px) {
  html[dir="rtl"] .install-app-cover {
    background-image: radial-gradient(circle at 75% 0, #ffffff2e, #0000 49%), radial-gradient(circle at 50% 100%, #132d2f5c, #1a1a1a00), linear-gradient(271deg, #000, #18181800);
  }
}
