/**
 * شرکت دانش‌بنیان داده‌ورز پیوند
 * استایل‌های سیستم بین‌المللی‌سازی و پشتیبانی کامل از زبان انگلیسی (LTR & i18n Styles)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Language Switcher Widget */
.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  gap: 3px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.top-bar .lang-switch-pill,
.header-topbar .lang-switch-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.header-topbar .lang-btn,
.mmenu_wrapper .lang-btn {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
}

.header-topbar .lang-btn:hover,
.mmenu_wrapper .lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.header-topbar .lang-btn.active,
.mmenu_wrapper .lang-btn.active {
  background: #0265dc !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(2, 101, 220, 0.4) !important;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: 'Inter', var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-bar .lang-btn {
  color: rgba(255, 255, 255, 0.85);
}

.lang-btn:hover {
  color: var(--peyvand-blue);
  background: rgba(2, 101, 220, 0.08);
}

.top-bar .lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  background: var(--peyvand-blue);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 101, 220, 0.35);
}

.top-bar .lang-btn.active {
  background: var(--peyvand-orange);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(242, 101, 34, 0.35);
}

.lang-sep {
  color: var(--border-muted);
  font-size: 0.75rem;
  user-select: none;
}

.top-bar .lang-sep {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   LTR (English Mode) Global Overrides
   ========================================================================== */

html[dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

html[dir="ltr"] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  direction: ltr !important;
  text-align: left !important;
}

/* Typography & Headings */
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6 {
  letter-spacing: -0.02em;
}

html[dir="ltr"] .hero-title {
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* Top Utility Bar */
html[dir="ltr"] .top-bar-inner {
  flex-direction: row;
}

html[dir="ltr"] .top-bar-links {
  margin-left: 0;
  margin-right: auto;
}

html[dir="ltr"] .top-bar-contact {
  margin-left: auto;
  margin-right: 0;
}

/* Brand & Header */
html[dir="ltr"] .nav-brand {
  margin-right: 1.5rem;
  margin-left: 0;
}

html[dir="ltr"] .nav-brand-title {
  text-align: left;
}

html[dir="ltr"] .nav-badge-bonyan {
  margin-left: 0.5rem;
  margin-right: 0;
}

html[dir="ltr"] .nav-menu {
  margin-right: auto;
  margin-left: 0;
}

html[dir="ltr"] .nav-actions {
  margin-left: auto;
  margin-right: 0;
}

/* Mega Menus */
html[dir="ltr"] .mega-menu {
  left: 0;
  right: auto;
  text-align: left;
}

html[dir="ltr"] .mega-item {
  text-align: left;
}

html[dir="ltr"] .mega-item-icon {
  margin-right: 0.75rem;
  margin-left: 0;
}

html[dir="ltr"] .chevron {
  margin-left: 0.35rem;
  margin-right: 0;
}

/* Hero Section */
html[dir="ltr"] .hero-pill {
  direction: ltr;
}

html[dir="ltr"] .hero-pill-dot {
  margin-right: 0.5rem;
  margin-left: 0;
}

html[dir="ltr"] .hero-actions {
  justify-content: flex-start;
}

html[dir="ltr"] .hero-stat-badge {
  direction: ltr;
  text-align: left;
}

/* Trust Bar / Logos */
html[dir="ltr"] .trust-title {
  text-align: center;
}

/* Section Headers */
html[dir="ltr"] .section-header {
  text-align: center;
}

/* Cards & Icons */
html[dir="ltr"] .why-card,
html[dir="ltr"] .product-card,
html[dir="ltr"] .sol-card,
html[dir="ltr"] .article-card {
  text-align: left;
}

html[dir="ltr"] .stat-card {
  text-align: left;
}

html[dir="ltr"] .quote-block {
  border-left: 4px solid var(--peyvand-blue);
  border-right: none;
  padding-left: 1.5rem;
  padding-right: 0;
  text-align: left;
}

/* Form Controls & Inputs */
html[dir="ltr"] .form-control,
html[dir="ltr"] .form-select,
html[dir="ltr"] .form-textarea {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .form-label {
  text-align: left;
}

/* Footer */
html[dir="ltr"] .footer-col {
  text-align: left;
}

html[dir="ltr"] .footer-contact-item {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .footer-contact-item svg {
  margin-right: 0.6rem;
  margin-left: 0;
}

html[dir="ltr"] .footer-bottom {
  direction: ltr;
}

/* Mobile Drawer */
html[dir="ltr"] .mobile-drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
  text-align: left;
}

html[dir="ltr"] .mobile-drawer.open {
  transform: translateX(0);
}

html[dir="ltr"] .mobile-nav-link {
  text-align: left;
}

/* Floating Widgets */
html[dir="ltr"] .floating-widgets {
  left: auto;
  right: 24px;
}

/* Solutions Tab Switcher */
html[dir="ltr"] .solutions-tabs-nav {
  direction: ltr;
}

/* Modal */
html[dir="ltr"] .demo-modal-dialog {
  text-align: left;
}

html[dir="ltr"] .demo-modal-close {
  left: auto;
  right: 1.25rem;
}

/* ==========================================================================
   Engitech Theme Specific LTR Enhancements
   ========================================================================== */
html[dir="ltr"] .header-topbar .topbar-info {
  float: left !important;
}

html[dir="ltr"] .header-topbar .social-list {
  float: right !important;
}

html[dir="ltr"] .topbar-info li {
  margin-left: 0 !important;
  margin-right: 25px !important;
}

html[dir="ltr"] .topbar-info li i {
  margin-left: 0 !important;
  margin-right: 8px !important;
}

html[dir="ltr"] .octf-mainbar-row {
  flex-direction: row !important;
}

html[dir="ltr"] .main-navigation ul#primary-menu > li {
  float: left !important;
}

html[dir="ltr"] .main-navigation ul.sub-menu {
  left: 0 !important;
  right: auto !important;
  text-align: left !important;
}

html[dir="ltr"] .main-navigation ul.sub-menu li a {
  text-align: left !important;
}

html[dir="ltr"] .ot-heading,
html[dir="ltr"] .ot-heading h2,
html[dir="ltr"] .ot-heading h3,
html[dir="ltr"] .ot-heading h4,
html[dir="ltr"] .ot-heading p {
  text-align: left !important;
}

html[dir="ltr"] .service-box,
html[dir="ltr"] .service-box-inner,
html[dir="ltr"] .icon-box,
html[dir="ltr"] .serv-box {
  text-align: left !important;
}

html[dir="ltr"] .site-footer,
html[dir="ltr"] .site-footer .footer-widget,
html[dir="ltr"] .site-footer p,
html[dir="ltr"] .site-footer li {
  text-align: left !important;
}

html[dir="ltr"] .pooyenema-mobile-bottom-bar {
  direction: ltr !important;
}

html[dir="ltr"] .lang-switch-pill {
  direction: ltr !important;
}

/* ==========================================================
   HOMEPAGE & IMAGE SECTIONS BILINGUAL ALIGNMENT (RTL Right, LTR Left)
   ========================================================== */
html[dir="ltr"] .hero-slide-content,
body.lang-en .hero-slide-content {
  text-align: left !important;
  direction: ltr !important;
}
html[dir="ltr"] .hero-slide-tag,
body.lang-en .hero-slide-tag {
  justify-content: flex-start !important;
  text-align: left !important;
  direction: ltr !important;
}
html[dir="ltr"] .hero-slide-title,
body.lang-en .hero-slide-title {
  align-items: flex-start !important;
  text-align: left !important;
  direction: ltr !important;
}
html[dir="ltr"] .hero-slide-desc,
body.lang-en .hero-slide-desc {
  text-align: left !important;
  direction: ltr !important;
}
html[dir="ltr"] .hero-slide-btns,
body.lang-en .hero-slide-btns {
  justify-content: flex-start !important;
  direction: ltr !important;
}
html[dir="ltr"] .hero-prev,
body.lang-en .hero-prev {
  left: 40px !important;
  right: auto !important;
}
html[dir="ltr"] .hero-next,
body.lang-en .hero-next {
  right: 40px !important;
  left: auto !important;
}
html[dir="ltr"] .hero-prev i,
body.lang-en .hero-prev i,
html[dir="ltr"] .hero-next i,
body.lang-en .hero-next i {
  transform: scaleX(-1);
}

/* Image & Feature Sections */
html[dir="ltr"] .about-company-content,
body.lang-en .about-company-content,
html[dir="ltr"] .about-company-section .ot-heading,
body.lang-en .about-company-section .ot-heading,
html[dir="ltr"] .about-company-section p,
body.lang-en .about-company-section p,
html[dir="ltr"] .about-company-section .main-heading,
body.lang-en .about-company-section .main-heading {
  text-align: left !important;
}
html[dir="ltr"] .about-quote-box,
body.lang-en .about-quote-box {
  border-left: 4px solid #2F6FD9 !important;
  border-right: none !important;
  text-align: left !important;
}
html[dir="ltr"] .about-btn-wrap,
body.lang-en .about-btn-wrap {
  justify-content: flex-start !important;
}
html[dir="ltr"] .feature-card-inner,
body.lang-en .feature-card-inner {
  text-align: left !important;
  align-items: flex-start !important;
}
html[dir="ltr"] .feature-card-inner h3,
body.lang-en .feature-card-inner h3,
html[dir="ltr"] .feature-card-inner p,
body.lang-en .feature-card-inner p {
  text-align: left !important;
}
html[dir="ltr"] .testimonial-card-item,
body.lang-en .testimonial-card-item {
  text-align: left !important;
}
html[dir="ltr"] .testimonial-card-item p,
body.lang-en .testimonial-card-item p,
html[dir="ltr"] .testimonial-card-item h5,
body.lang-en .testimonial-card-item h5,
html[dir="ltr"] .testimonial-card-item span,
body.lang-en .testimonial-card-item span {
  text-align: left !important;
}
html[dir="ltr"] .testimonial-card-item > div:first-child,
body.lang-en .testimonial-card-item > div:first-child {
  align-items: flex-start !important;
}
html[dir="ltr"] .testimonial-card-item .fa-star,
body.lang-en .testimonial-card-item .fa-star {
  margin-right: 2px !important;
  margin-left: 0 !important;
}
html[dir="ltr"] .octf-btn .fa-arrow-left,
body.lang-en .octf-btn .fa-arrow-left {
  transform: scaleX(-1) !important;
}

