/* Language switcher + multilingual (AR/EN/TR) support */

/* Integrated into the red top bar, opposite the phone number */
#i18n-switcher.i18n-inline {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  gap: 2px;
  align-items: center;
  z-index: 5;
  direction: ltr;
  font-family: "Open Sans", Arial, sans-serif;
}

#i18n-switcher.i18n-inline .i18n-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
#i18n-switcher.i18n-inline .i18n-btn:hover { background: rgba(255, 255, 255, 0.2); }
#i18n-switcher.i18n-inline .i18n-btn.active { background: #ffffff; color: #ea0000; border-color: #ffffff; }

/* Fallback: fixed floating switcher if the top bar is not found */
#i18n-switcher.i18n-fixed {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100000;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #ea0000;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  font-family: "Open Sans", Arial, sans-serif;
}
#i18n-switcher.i18n-fixed .i18n-btn {
  border: 0;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  color: #fff;
  background: transparent;
}
#i18n-switcher.i18n-fixed .i18n-btn:hover { background: rgba(255, 255, 255, 0.2); }
#i18n-switcher.i18n-fixed .i18n-btn.active { background: #fff; color: #ea0000; }

/* Arabic: right-to-left reading for text blocks */
html[dir="rtl"] body { direction: rtl; }

/* Keep the red top bar and footer (phone / email / address) unchanged in Arabic */
html[dir="rtl"] header .u-section-row-1,
html[dir="rtl"] .u-footer {
  direction: ltr;
}
body.lang-ar p,
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3,
body.lang-ar h4, body.lang-ar h5, body.lang-ar h6,
body.lang-ar li, body.lang-ar label,
body.lang-ar .u-text, body.lang-ar textarea, body.lang-ar input {
  direction: rtl;
}
body.lang-ar { font-family: "Open Sans", "Tahoma", "Segoe UI", Arial, sans-serif; }

@media (max-width: 767px) {
  #i18n-switcher.i18n-inline .i18n-btn { padding: 3px 7px; font-size: 12px; }
}
