/* ==========================================
   SAMAPARDAZ - English (LTR) overrides
   فقط روی صفحات *.en.html لود می‌شود؛ نسخهٔ آینه‌ای قوانین راست‌به‌چپ.
   ========================================== */

@font-face { font-family: 'Ubuntu'; src: url('../fonts/Ubuntu-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('../fonts/Ubuntu-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('../fonts/Ubuntu-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('../fonts/Ubuntu-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('../fonts/Ubuntu-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('../fonts/Ubuntu-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('../fonts/Ubuntu-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Ubuntu'; src: url('../fonts/Ubuntu-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }

:root { --font-main: 'Ubuntu', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
body, .form-input, .form-select, .form-textarea, .breadcrumb, .tm-viewport,
.logo-cloud-title p, .steps-track-wrap, .hero-content { direction: ltr; }
body { font-family: var(--font-main); letter-spacing: 0; }

/* ----- هدر ----- */
/* فلش منوهای هدر: آینهٔ افقی (↖ → ↗)؛ انیمیشن hover هم آینه می‌شود (به بالا-راست می‌پرد و از پایین-چپ برمی‌گردد) */
.nav-link .arrow svg { transform: scaleX(-1); }
.nav-item:hover .nav-link .arrow svg { animation-name: arrow-fly-ltr; }
@keyframes arrow-fly-ltr {
  0%   { transform: translate(0, 0) scaleX(-1); }
  45%  { transform: translate(16px, -16px) scaleX(-1); }
  46%  { transform: translate(-16px, 16px) scaleX(-1); }
  100% { transform: translate(0, 0) scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) { .nav-item:hover .nav-link .arrow svg { animation: none; } }
.nav-link::after { transform-origin: left center; }
.nav-link-demo { margin-right: 0; margin-left: 4px; }
.nav-item-lang { margin-inline-start: auto; }
.nav-item-lang .lang-switch { font-weight: 700; }
.nav-item-lang .lang-switch[lang="fa"] { font-family: 'RavaghFanum', 'Vazirmatn', Tahoma, sans-serif; }

/* ----- هیرو صفحات داخلی ----- */
.page-hero { padding-right: 0; padding-left: 80px; }
.page-hero-eyebrow, .section-label { letter-spacing: .12em; text-transform: uppercase; }
.page-hero-title, .section-title { letter-spacing: -0.01em; line-height: 1.15; }
@media (max-width: 1024px) { .page-hero { padding-right: 0; padding-left: 50px; } }
@media (max-width: 768px)  { .page-hero { padding-right: 0; padding-left: 20px; } }

/* ----- تیترها و متن‌ها ----- */
.section-desc, .hero-subtitle, .cta-desc { line-height: 1.8; }
.steps-head, .contact-sample-head, .iran-map-section .section-intro, .feature-tab { text-align: left; }

/* ----- فوتر ----- */
.footer-links a:hover { padding-right: 0; padding-left: 6px; }
.footer-tagline { line-height: 1.8; }

/* ----- صفحهٔ اصلی ----- */
.stat-item + .stat-item::before { right: auto; left: 0; }
.intro-badge { left: auto; right: -20px; }
.steps-line-fill { right: auto; left: 0; }
.svc-head, .svc-slide-caption { text-align: left; }
.svc-track { right: auto; left: 0; direction: ltr; }
.svc-slide-caption { left: auto; right: 80px; transform: translateY(-50%) translateX(26px); } /* متن سمت راست تا روی سوژهٔ تصاویر نیفتد */
.svc-slide.is-active .svc-slide-caption { transform: translateY(-50%); }
@media (max-width: 1024px) { .svc-slide-caption { left: auto; right: 50px; } }
@media (max-width: 768px) {
  .svc-slide-caption { left: 20px; right: auto; transform: translateY(26px); }
  .svc-slide.is-active .svc-slide-caption { transform: none; }
  }
.tm-text::before { left: auto; right: 20px; }

/* ----- تایم‌لاین ----- */
.timeline { padding-right: 0; padding-left: 30px; }
.timeline::before { right: auto; left: 10px; }
.timeline-item { padding-right: 0; padding-left: 30px; }
.timeline-item::before { right: auto; left: 0; transform: translateX(-50%); }

/* ----- فرم‌ها ----- */
.cs-select { background-position: right 14px center; padding-left: 14px; padding-right: 40px; }

/* ----- محصولات ----- */
.product-panel-bullets li { padding-right: 0; padding-left: 20px; }
.product-panel-bullets li::before { right: auto; left: 4px; }
.product-panel-text { text-align: left; }
.feature-tab { transform: translateX(-28px); }
.feature-tab.active .feature-arrow { transform: translateX(4px); }
.feature-arrow { transform: scaleX(-1); }
.feature-tab.active .feature-arrow { transform: scaleX(-1) translateX(-4px); }
@keyframes ppSlideIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* ----- مشتریان (نقشه) ----- */
.province-panel { border-left: none; border-right: 1px solid rgba(13,27,62,0.08); }
.province-agencies-list { padding-left: 0; padding-right: 4px; }
.agency-item { transform: translateX(-16px); }
.agency-item.anim-in { transform: translateX(0); }

/* ----- ویدیوها ----- */
.video-num { right: auto; left: 8px; }
.video-modal-close { left: auto; right: 0; }
.video-play-btn svg { margin-right: 0; margin-left: -1px; }

/* ----- جهت فلش‌ها ----- */
.svc-slide .chevron-anim { transform: scaleX(-1); }
.tm-btn svg { transform: scaleX(-1); }

/* ----- زبانهٔ هیرو و breadcrumb: سمت راست (آینهٔ نسخهٔ فارسی) ----- */
.hero-tab { clip-path: inset(0 0 0 calc(100% - var(--tab-w))); }
.hero-tab-wrap > .breadcrumb.breadcrumb-inline { left: auto; right: calc(var(--tab-w) + 8px); }
@media (max-width: 768px) {
  .hero-tab-wrap > .breadcrumb.breadcrumb-inline {
    left: auto;
    right: 10px;
    text-align: right;
    max-width: calc(100% - var(--tab-w) - 20px);
  }
}

/* ----- باکس گرادینت آبی هیرو: فلیپ افقی ----- */
.page-hero, .hero-tab {
  background-image: linear-gradient(240deg, #0f1a4d, #162560, #1d3c7d, #1f4fa8, #2a6bd1, #1d3c7d, #161e8b, #0f1a4d);
}
.page-hero > canvas, .page-hero > .topology-canvas, .page-hero > .wave-mesh-canvas, .hero-tab-canvas { transform: scaleX(-1); }

.shop-list { list-style-type: decimal; }

/* دکمه‌ها: حروف فارسی نباید فاصله بگیرند؛ در انگلیسی فاصلهٔ ظریف */
.btn-flip { letter-spacing: 1px; }

/* هیرو انگلیسی: متن روی فضای خالی سمت راست تصویر می‌ماند */
.hs-text { direction: ltr; text-align: right; }
