/* Persian layout: loaded after the page styles, only for a right-to-left locale. */
/* Peyda SemiBold numerals, restricted to Persian/Arabic digit glyphs. */
@font-face {
    font-family:'Feronex Persian Digits';
    font-style:normal;
    font-weight:600;
    font-display:swap;
    src:url('assets/fonts/peyda-600.woff2') format('woff2');
    unicode-range:U+0660-0669,U+06F0-06F9;
}

/* User-supplied Peyda 2.000, losslessly packaged as WOFF2.
   Original font licence and embedding metadata are retained. */
@font-face {
    font-family:'Peyda';
    font-style:normal;
    font-weight:400;
    font-display:swap;
    src:url('assets/fonts/peyda-400.woff2') format('woff2');
}
@font-face {
    font-family:'Peyda';
    font-style:normal;
    font-weight:500;
    font-display:swap;
    src:url('assets/fonts/peyda-500.woff2') format('woff2');
}
@font-face {
    font-family:'Peyda';
    font-style:normal;
    font-weight:600;
    font-display:swap;
    src:url('assets/fonts/peyda-600.woff2') format('woff2');
}
@font-face {
    font-family:'Peyda';
    font-style:normal;
    font-weight:700;
    font-display:swap;
    src:url('assets/fonts/peyda-700.woff2') format('woff2');
}

html[dir="rtl"] body { font-family:'Feronex Persian Digits','Peyda',Tahoma,Arial,sans-serif; line-height:1.8; }
html[dir="rtl"] :is(button,input,select,textarea) { font-family:inherit; }
html[dir="rtl"] :is(.button,.nav-contact,button,.ff-btn-submit),
html[dir="rtl"] .fluentform .ff-btn-submit,
html[dir="rtl"] #contact .contact-form--fluent .fluentform .ff-btn-submit,
html[dir="rtl"] #contact-page-form .fluentform .ff-btn-submit {
    font-size:16px; font-weight:600; line-height:1.65; min-height:48px; letter-spacing:0;
}
html[dir="rtl"] .primary-nav { gap:22px; }
html[dir="rtl"] .primary-nav>a { font-size:15px; font-weight:600; line-height:1.65; min-height:44px; display:inline-flex; align-items:center; }
html[dir="rtl"] .primary-nav>a.nav-contact { font-size:16px; }
html[dir="rtl"] .home .hero-kicker { font-size:14px; }
html[dir="rtl"] .home .hero-product-links a { font-size:14px; min-height:44px; display:inline-flex; align-items:center; }
/* Keep the decorative wordmark behind the copy and opaque primary action. */
html[dir="rtl"] .home .hero-copy { z-index:3; }
html[dir="rtl"] .primary-nav>a[aria-current="page"] { color:#fff; text-decoration:underline; text-underline-offset:6px; }
html[dir="rtl"] :is(h1,h2,h3,h4,.eyebrow,.primary-nav,.hero-kicker,.hero-product-links a,.category-kicker,.logistics-stage-kicker,.logistics-route-intro>span,.quality-capabilities>span,.rfq-preparation>p) { letter-spacing:0; }
html[dir="rtl"] :is(h1,h2,h3,h4,h5,h6) { font-family:inherit; line-height:1.5; font-weight:600; }
html[dir="rtl"] .home .hero #hero-title { line-height:1.4; letter-spacing:0; font-weight:600; }
html[dir="rtl"] :is(.specifications-section .specifications-copy h2,.specification-visual h3,.specification-details-heading,.specification-entry dt,.product-detail-page .product-detail-heading h1) { letter-spacing:0; line-height:1.5; }
html[dir="rtl"] :is(.hero-description,.about-copy .lead,.category-copy p,.featured-body>p,.about-page-description,.contact-page-description) { line-height:1.9; }
html[dir="rtl"] .brand-logo { direction:ltr; }
html[lang="fa-IR"] .footer-credit img { filter:brightness(0) invert(1); }
html[dir="rtl"] .language-current { direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] .language-options a { unicode-bidi:isolate; }
html[dir="rtl"] .eyebrow::before { margin-right:0; margin-left:5px; }
html[dir="rtl"] .heading-description { text-align:right; }
html[dir="rtl"] :is(.specification-brand,.logistics-stage-number,.logistics-route li>span:first-child,.specification-entry-number,.quality-step-number) { font-family:'Feronex Persian Digits','Peyda',Tahoma,sans-serif; letter-spacing:0; }

/* Reverse navigation arrows; vertical controls and the supplied logo keep their orientation. */
html[dir="rtl"] :is(.icon-arrow-up-right,.icon-arrow-right,.icon-arrow-left,.icon-arrow-chevron-right) { transform:scaleX(-1); }
html[dir="rtl"] .primary-nav>a:not(.nav-contact)::after { margin-left:0; margin-right:4px; }
html[dir="rtl"] .nav-contact span { margin-left:0; margin-right:20px; }
html[dir="rtl"] .contact-form--fluent .fluentform .ff-btn-submit::after { transform:scaleX(-1); }
html[dir="rtl"] .home .hero-video-toggle { right:auto; left:calc(var(--pad) + 12px); }
html[dir="rtl"] .home .hero::after { background:linear-gradient(270deg,#111d17d9,#101b1666),linear-gradient(0deg,#101611b3,#10161115 70%); }
/* Shift the caption left of the original right-hand corner without enlarging the card. */
html[dir="rtl"] .home .hero-stat strong { font-weight:600; }
html[dir="rtl"] .home .hero-stat>span { padding:0 52px 0 0; max-width:none; font-size:16px; line-height:1.4; }
html[dir="rtl"] .image-stamp { width:240px; max-width:calc(100% - 24px); height:auto; min-height:200px; padding:22px 24px 64px; font-size:16px; line-height:1.7; }
html[dir="rtl"] .image-stamp strong { font-weight:600; margin-bottom:16px; }
html[dir="rtl"] .image-stamp i { right:auto; left:0; }
html[dir="rtl"] .image-stamp i::before { right:auto; left:34px; }
html[dir="rtl"] :is(.hero-stat strong,.image-stamp strong,.about-page-badge strong,.about-page-stat-grid dd,.about-page-step) { direction:ltr; unicode-bidi:isolate; text-align:right; letter-spacing:0; }
html[dir="rtl"] .feature-strip .company-logo { object-position:right center; }
html[dir="rtl"] .feature-photo h3 { left:auto; right:25px; }
html[dir="rtl"] :is(.feature-photo>span,.category-arrow,.product-detail-photo>span) { right:auto; left:0; }
html[dir="rtl"] .featured-index { left:auto; right:14px; font-family:inherit; font-size:16px; font-weight:600; line-height:1.4; direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] .sample-label { left:auto; right:16px; }
html[dir="rtl"] :is(.about-points li::before,.plus-list li::before) { margin-right:0; margin-left:12px; }
html[dir="rtl"] .home #contact .rfq-preparation li::before { margin-right:0; margin-left:8px; }
html[dir="rtl"] .quality-note { border-left:0; border-right:2px solid var(--yellow); padding-left:0; padding-right:18px; }
html[dir="rtl"] .specification-entry dd { margin-left:0; margin-right:49px; }
html[dir="rtl"] .specification-note-arrow { margin-left:0; margin-right:auto; }
html[dir="rtl"] .specification-visual::before { left:auto; right:0; }
html[dir="rtl"] .logistics-stage-number { left:auto; right:0; }

/* Native form markup remains intact; email and phone content remain left-to-right. */
html[dir="rtl"] .fluentform { direction:rtl; text-align:right; }
html[dir="rtl"] .fluentform :is(.ff-el-input--label,.ff-el-form-control,.text-danger) { text-align:right; }
html[dir="rtl"] .fluentform :is(input[type="email"],input[type="tel"]) { direction:ltr; unicode-bidi:isolate; text-align:right; }
html[dir="rtl"] a[href^="mailto:"],html[dir="rtl"] a[href^="tel:"] { unicode-bidi:isolate; direction:ltr; }
html[dir="rtl"] .contact-page-details a { text-align:right; }
html[dir="rtl"] .fluentform select.ff-el-form-control { padding-left:34px; padding-right:14px; background-position:left 12px center; }
html[dir="rtl"] .fluentform :is(.ff-el-form-control,.ff-el-input--label label) { font-size:16px; line-height:1.7; }
html[dir="rtl"] :is(#contact-page-form,.about-page-form) .fluentform .ff-el-form-control { border:1px solid #69736d; }
html[dir="rtl"] :is(#contact,.about-page-feedback) .fluentform .ff-el-form-control { border:1px solid #b8c4bc; }
html[dir="rtl"] .fluentform .ff-el-is-error .ff-el-form-control { border-color:#a82116; }
html[dir="rtl"] :is(#contact,.about-page-feedback) .fluentform .ff-el-is-error .ff-el-form-control { border-color:#ffb4a7; }
html[dir="rtl"] :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible { outline:3px solid #fff; outline-offset:3px; box-shadow:0 0 0 6px #202221; }
html[dir="rtl"] .site-footer :is(.footer-company>a:last-child,.footer-bottom a) { color:#fff; }
html[dir="rtl"] .footer-bottom>span:first-child { justify-self:stretch; text-align:right; direction:rtl; unicode-bidi:isolate; }
html[dir="rtl"] .footer-copyright { display:inline-flex; align-items:baseline; justify-content:flex-start; gap:.35em; white-space:nowrap; }
html[dir="rtl"] .site-footer :is(.footer-company>a:last-child,.footer-bottom a):is(:hover,:focus-visible) { text-decoration:underline; text-underline-offset:4px; }

/* About page separators follow the reading order; photographs are never mirrored. */
html[dir="rtl"] .about-page-worker { margin-right:0; margin-left:40px; }
html[dir="rtl"] .about-page-badge { right:auto; left:-40px; }
html[dir="rtl"] .about-page-stat-grid>div { border-left:0; border-right:1px solid #ffffff30; }
html[dir="rtl"] .about-page-stat-grid>div:first-child { border-right:0; padding-left:clamp(12px,2vw,36px); padding-right:0; }
html[dir="rtl"] .about-page-org-card>img { object-position:right center; }
html[dir="rtl"] .about-page-why-image { margin-right:0; margin-left:25px; }
html[dir="rtl"] .about-page-recovery-grid article { border-left:0; border-right:1px solid var(--line); }
html[dir="rtl"] .about-page-recovery-grid article:first-child { border-right:0; }
html[dir="rtl"] .about-page-feedback .about-page-centered-heading { text-align:right; }

/* Keep numeric specifications isolated, including Latin chemistry and signed grades. */
html[dir="rtl"] .product-detail-figure .product-detail-image-note { border-left:0; border-right:2px solid var(--yellow); padding-left:0; padding-right:12px; }
html[dir="rtl"] :is(.product-detail-content ul,.product-detail-content ol) { padding-left:0; padding-right:22px; }
html[dir="rtl"] .product-detail-notes ul { padding-left:0; padding-right:19px; }
html[dir="rtl"] .product-specification-table,html[dir="rtl"] .product-specification-table caption { text-align:right; }
html[dir="rtl"] .product-specification-table td { direction:ltr; unicode-bidi:isolate; text-align:right; }
html[dir="rtl"] .product-specification-table tbody th { unicode-bidi:plaintext; }
html[dir="rtl"] .product-specification-table th+th,html[dir="rtl"] .product-specification-table td { border-left:0; border-right:1px solid var(--line); }
html[dir="rtl"] .product-specification-table thead th:first-child,html[dir="rtl"] .product-specification-table tbody th { left:auto; right:0; border-right:0; border-left:1px solid var(--line); }
html[dir="rtl"] .product-specification-table thead th:first-child { border-left-color:#ffffff30; }
html[dir="rtl"] .article-body blockquote { border-left:0; border-right:4px solid var(--yellow); }
html[dir="rtl"] .post-navigation .nav-next { text-align:left; margin-left:0; margin-right:auto; }
html[dir="rtl"] .blog-page .page-numbers { margin-right:0; margin-left:6px; }
html[dir="rtl"] .privacy-page-copy :is(ul,ol) { padding-left:0; padding-right:24px; }

@media(max-width:1100px) {
    html[dir="rtl"] .specification-entry dd { margin-right:38px; }
}
@media(max-width:900px) {
    html[dir="rtl"] .primary-nav { gap:0; }
    html[dir="rtl"] .home .hero-stat>span { min-width:0; padding:0; font-size:15px; }
    html[dir="rtl"] .about-page-worker { margin-left:20px; }
    html[dir="rtl"] .about-page-badge { left:-20px; }
    html[dir="rtl"] .about-page-why-image { margin-inline:auto; }
}
@media(max-width:600px) {
    html[dir="rtl"] .home .hero #hero-title { font-size:clamp(31px,7.8vw,44px); }
    html[dir="rtl"] .home .hero-copy .hero-description { line-height:1.85; }
    html[dir="rtl"] .specification-entry dd { margin-right:42px; }
    html[dir="rtl"] .about-page-stat-grid>div,html[dir="rtl"] .about-page-stat-grid>div:first-child { border-right:0; padding:25px 0; }
    html[dir="rtl"] .about-page-recovery-grid article { border-right:0; }
}
