@font-face { font-family:Vazirmatn; src:url('../fonts/Vazirmatn.woff2') format('woff2'); font-style:normal; font-weight:100 900; font-display:swap; }
:root { --desert:#EF7A2D; --sand:#F0E6D8; --evening-desert:#5A1D16; --evening-sand:#4D2C29; --petroleum:#222222; }
html[dir="rtl"] body { direction:rtl; text-align:right; font-family:Vazirmatn, Tahoma, Arial, sans-serif; }

/* Language control sits outside the glass navigation bar on every page. */
.header-shell { width:100%; display:flex; align-items:center; gap:12px; direction:rtl; }
header { width:97%; max-width:1240px; background:transparent; border:0; border-radius:0; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.header-shell .nav-container { flex:1 1 auto; min-width:0; direction:ltr; background:var(--evening-sand); border:1px solid var(--desert); border-radius:50px; box-shadow:0 8px 32px rgba(34,34,34,.3); }
.language-switch { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; min-width:48px; height:48px; padding:0 12px; border:1px solid var(--desert); border-radius:999px; color:var(--sand); background:var(--evening-desert); box-shadow:0 8px 22px rgba(34,34,34,.22); font:800 13px/1 Arial,sans-serif; text-decoration:none; letter-spacing:.06em; transition:transform .2s ease,background .2s ease,color .2s ease; }
.language-switch:hover,.language-switch:focus-visible { color:var(--petroleum); background:var(--desert); border-color:var(--desert); transform:translateY(-1px); outline:2px solid var(--sand); outline-offset:2px; }

/* Persian desktop order: language at the far right, menu at the right of the bar, SYMBA at the left. */
html[dir="rtl"] .nav-container { direction:ltr; }
html[dir="rtl"] .nav-links { direction:rtl; margin-left:auto; margin-right:0; }
html[dir="rtl"] .logo { direction:ltr; margin-left:0; margin-right:auto; }
html[dir="rtl"] .hero-content, html[dir="rtl"] .section-title, html[dir="rtl"] .section-description { text-align:center; }
html[dir="rtl"] .video-hero .hero-content p { text-align:center; text-align-last:center; width:100%; }
html[dir="rtl"] p { text-align:justify; text-justify:inter-word; }
html[dir="rtl"] input,html[dir="rtl"] textarea,html[dir="rtl"] select { direction:rtl; text-align:right; }
html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="tel"] { direction:ltr; text-align:right; }
html[dir="rtl"] .product-specs,html[dir="rtl"] .service-list,html[dir="rtl"] .footer-links { padding-right:0; }
/* Keep the slider's scroll coordinate system LTR so the shared Home script
   behaves identically in both languages, while card content remains Persian RTL. */
html[dir="rtl"] .products-slides { direction:ltr; }
html[dir="rtl"] .product-slide,
html[dir="rtl"] .product-slide-card,
html[dir="rtl"] .product-info-section { direction:rtl; }
html[dir="rtl"] .careers-back { direction:rtl; }
html[dir="rtl"] .lightbox-prev { right:1rem; left:auto; }
html[dir="rtl"] .lightbox-next { left:1rem; right:auto; }
@media (max-width:768px) {
  .header-shell { gap:7px; }
  header { width:96%; }
  .header-shell .nav-container { overflow:visible; }
  .language-switch { min-width:42px; width:42px; height:42px; padding:0; font-size:12px; }
  html[dir="rtl"] p { text-align:right; }
  html[dir="rtl"] .nav-toggle { order:-1; }
  html[dir="rtl"] .nav-links { direction:rtl; text-align:right; }
}
