html[lang="ar"] body {
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  text-align: right;
}

.ar-page .page-kicker,
.ar-page .brand__name,
.ar-page .brand__tagline,
.ar-page .button,
.ar-page .nav-link,
.ar-page .language-switcher {
  letter-spacing: 0;
}

.ar-page .site-nav,
.ar-page .nav-list,
.ar-page .header-actions,
.ar-page .cta-row {
  direction: rtl;
}

.ar-page .home-hero__shade {
  background: linear-gradient(
    270deg,
    rgba(7, 35, 24, 0.84) 0%,
    rgba(7, 35, 24, 0.68) 30%,
    rgba(7, 35, 24, 0.3) 58%,
    rgba(7, 35, 24, 0.06) 82%,
    rgba(7, 35, 24, 0) 100%
  );
}

.ar-page .home-hero__content,
.ar-page .section-heading,
.ar-page .manufacturing-proof__copy,
.ar-page .specification-shipment__copy,
.ar-page .rfq-band__inner,
.ar-page .featured-solution__body,
.ar-page .buyer-band__grid,
.ar-page .site-footer {
  direction: rtl;
  text-align: right;
}

.ar-page .home-hero__title,
.ar-page .home-hero__intro {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.ar-page .home-hero__title {
  max-width: 790px;
  font-size: 3.25rem;
  line-height: 1.18;
}

.ar-page .home-hero__intro {
  max-width: 690px;
  line-height: 1.75;
}

.ar-page .home-hero .cta-row {
  justify-content: flex-start;
}

.ar-page .trust-metric {
  line-height: 1.45;
}

.ar-page .order-process > li > span {
  direction: ltr;
  unicode-bidi: isolate;
}

.ar-page .section-title {
  line-height: 1.28;
}

.ar-page .featured-solution__body p,
.ar-page .buyer-band__grid p,
.ar-page .order-process p,
.ar-page .section-copy,
.ar-page .home-final-conversion p {
  line-height: 1.75;
}

.ar-page .manufacturing-proof__figure figcaption,
.ar-page .shipment-visuals figcaption {
  text-align: right;
}

.ar-page .site-footer__contact,
.ar-page .site-footer__links {
  padding-inline-start: 0;
}

.ar-page .site-footer__contact a,
.ar-page .site-footer__legal [dir="ltr"] {
  unicode-bidi: isolate;
}

.ar-page .ltr-token {
  direction: ltr;
  unicode-bidi: isolate;
}

.ar-page .ltr-token--short {
  white-space: nowrap;
}

@media (min-width: 1381px) and (max-width: 1500px) {
  .ar-page .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .ar-page .home-hero__shade {
    background: linear-gradient(
      270deg,
      rgba(7, 35, 24, 0.88) 0%,
      rgba(7, 35, 24, 0.7) 42%,
      rgba(7, 35, 24, 0.22) 76%,
      rgba(7, 35, 24, 0.04) 100%
    );
  }

  .ar-page .home-hero__title {
    max-width: 700px;
    font-size: 2.85rem;
  }
}

@media (max-width: 767px) {
  .ar-page .site-nav,
  .ar-page .nav-list,
  .ar-page .header-actions {
    text-align: right;
  }

  .ar-page .nav-link {
    justify-content: flex-start;
  }

  .ar-page .home-hero__title {
    max-width: 100%;
    font-size: clamp(2rem, 8.8vw, 2.45rem);
    line-height: 1.24;
  }

  .ar-page .home-hero__intro {
    line-height: 1.7;
  }

  .ar-page .home-hero .cta-row,
  .ar-page .home-final-conversion .cta-row {
    direction: rtl;
  }

  .ar-page .trust-metric strong {
    font-size: 1rem;
  }

  .ar-page .trust-metric span {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .ar-page .featured-solution__body h3 {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .ar-page .site-footer__summary {
    padding-inline: 0 2rem;
  }

  .ar-page .site-footer__summary::after {
    right: auto;
    left: 0.15rem;
  }
}

/* Phase 2B shared subpage RTL rules. */
.ar-page .subpage-hero,
.ar-page .section-heading,
.ar-page .collection-card__body,
.ar-page .comparison-card,
.ar-page .product-detail-meta,
.ar-page .product-detail-tile,
.ar-page .form-panel,
.ar-page .contact-card,
.ar-page .support-card,
.ar-page .about-card,
.ar-page .gallery-card,
.ar-page .faq-item,
.ar-page .info-panel {
  direction: rtl;
  text-align: right;
}

.ar-page .section-heading--split,
.ar-page .collection-card__actions,
.ar-page .form-actions,
.ar-page .contact-actions,
.ar-page .site-footer__inner,
.ar-page .site-footer__bottom {
  direction: rtl;
}

.ar-page .spec-table,
.ar-page .table-scroll {
  direction: rtl;
}

.ar-page .spec-table th,
.ar-page .spec-table td,
.ar-page .contact-info-grid dt,
.ar-page .contact-info-grid dd,
.ar-page .product-detail-meta dt,
.ar-page .product-detail-meta dd {
  text-align: right;
}

.ar-page .spec-table th,
.ar-page .spec-card dt {
  letter-spacing: 0;
  text-transform: none;
}

.ar-page .form-field label,
.ar-page .form-note,
.ar-page .form-status,
.ar-page .form-field__error {
  text-align: right;
}

.ar-page input:not([dir]),
.ar-page select,
.ar-page textarea:not([dir]) {
  direction: rtl;
  text-align: right;
}

.ar-page input[dir="auto"],
.ar-page textarea[dir="auto"] {
  text-align: start;
  unicode-bidi: plaintext;
}

.ar-page input[dir="ltr"],
.ar-page textarea[dir="ltr"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.ar-page .faq-question {
  padding-inline: 1rem 3rem;
  text-align: right;
}

.ar-page .faq-question::after {
  right: auto;
  left: 1rem;
}

.ar-page .product-lightbox__close {
  right: auto;
  left: 0.8rem;
}

.ar-page .product-lightbox__caption,
.ar-page .gallery-card figcaption,
.ar-page .about-photo-card figcaption,
.ar-page .product-detail-tile figcaption {
  direction: rtl;
  text-align: right;
}

.ar-page [dir="ltr"],
.ar-page bdi,
.ar-page .language-switcher {
  unicode-bidi: isolate;
}

@media (max-width: 1380px) {
  .ar-page .site-nav,
  .ar-page .nav-list,
  .ar-page .header-actions {
    direction: rtl;
    text-align: right;
  }

  .ar-page .nav-link {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .ar-page .form-actions,
  .ar-page .section-heading--split,
  .ar-page .collection-card__actions {
    align-items: stretch;
  }

  .ar-page .form-actions .button,
  .ar-page .section-heading--split .button,
  .ar-page .collection-card__actions .button {
    width: 100%;
  }

  .ar-page .spec-guide .desktop-spec-guide,
  .ar-page .spec-guide .table-scroll {
    display: none;
  }

  .ar-page .mobile-spec-guide,
  .ar-page .mobile-rfq-guide {
    direction: rtl;
    text-align: right;
  }

  .ar-page .spec-guide .spec-card dl > div:last-child {
    border-right: 3px solid var(--color-primary);
    border-left: 0;
  }
}
