/* ==========================================================================
   Static clone: supplemental styles
   - Non-Latin font stack (CJK / Arabic / Devanagari / Cyrillic)
   - RTL adjustments
   - Mobile menu extras (CTA block)
   - Language-aware typography tweaks
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CJK / Arabic / Devanagari fallbacks keep the original Latin stack first */
:lang(zh-Hant) body,
:lang(zh-Hans) body,
html[lang="zh-Hant"] body,
html[lang="zh-Hans"] body {
  font-family: "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei",
    "Noto Sans CJK TC", "Noto Sans CJK SC", "Hiragino Sans", "Source Han Sans", sans-serif;
}

html[lang="ja"] body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP",
    "Microsoft JhengHei", sans-serif;
}

html[lang="ko"] body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

html[lang="ar"] body {
  font-family: "Segoe UI", "Tahoma", "Noto Naskh Arabic", "Arial", sans-serif;
}

html[lang="hi"] body {
  font-family: "Nirmala UI", "Noto Sans Devanagari", "Segoe UI", sans-serif;
}

html[lang="th"] body {
  font-family: "Leelawadee UI", "Noto Sans Thai", "Segoe UI", sans-serif;
}

/* Long translated words (German, Turkish, Russian) should not break layout */
h1, h2, h3, h4, p, li, a, span, button {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* RTL layout: mirror the main flow without touching the cloned desktop rules */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .header__nav.desktop {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .header__nav--dropped-container,
[dir="rtl"] .nav-company-container,
[dir="rtl"] .nav-simple-container {
  left: auto;
  right: 0;
}

[dir="rtl"] .header__nav--dropped-link,
[dir="rtl"] .header__nav--dropped-subtitle {
  text-align: right;
}

[dir="rtl"] .arrow-opacity,
[dir="rtl"] .header__nav--arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .mobile-menu__item-link,
[dir="rtl"] .mobile-menu__services-list,
[dir="rtl"] .mobile-menu__simple-list {
  text-align: right;
}

[dir="rtl"] .mobile-menu__services-list {
  padding-left: 0;
  padding-right: clamp(12px, 3vw, 16px);
}

/* Mobile menu: CTA block at the bottom */
.mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 28px;
}

.mobile-menu__cta a {
  display: block;
}

.mobile-menu__cta .button {
  width: 100%;
  justify-content: center;
}

.mobile-menu-overlay {
  display: none;
}

.mobile-menu-overlay.is-open {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* Burger button active state */
.header__burger-button.is-active div:first-child {
  transform: translateY(8px) rotate(45deg);
}

.header__burger-button.is-active .header__burger-button--line {
  opacity: 0;
}

.header__burger-button.is-active div:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.header__burger-button div:first-child,
.header__burger-button div:last-child {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Subscribe form feedback (no backend) */
.subscribe-note {
  margin-top: 10px;
  font-size: 13px;
  color: #2563eb;
  min-height: 18px;
}
