:root {
  --ar-ink: #101b1a;
  --ar-deep: #082b28;
  --ar-green: #0b665c;
  --ar-green-light: #149184;
  --ar-gold: #c6a56a;
  --ar-paper: #f7f8f5;
  --ar-white: #fff;
  --ar-muted: #667471;
  --ar-line: rgba(16, 27, 26, .12);
}

html[dir="rtl"] { scroll-behavior: smooth; }

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  background: var(--ar-paper);
  color: var(--ar-ink);
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

html[dir="rtl"] *,
html[dir="rtl"] *::before,
html[dir="rtl"] *::after { box-sizing: border-box; }

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p { letter-spacing: 0; }

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .home-hero-copy h1 {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] button { font-family: inherit; text-align: right; }

html[dir="rtl"] [type="email"],
html[dir="rtl"] [type="tel"],
html[dir="rtl"] .top-meta-phone,
html[dir="rtl"] [ig-phone],
html[dir="rtl"] code {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

html[dir="rtl"] .fl { float: right; }
html[dir="rtl"] .fr { float: left; }

/* Keep Arabic breadcrumbs readable above long page titles. */
html[dir="rtl"] .product-page-head--rtl-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

html[dir="rtl"] .product-page-head--rtl-stack .product-page-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 0;
  white-space: normal;
  line-height: 1.7;
}

html[dir="rtl"] .product-page-head--rtl-stack .product-page-path a {
  color: inherit;
}

html[dir="rtl"] .product-page-head--rtl-stack .product-page-path a:hover {
  color: var(--ar-green);
}

html[dir="rtl"] .product-page-head--rtl-stack .product-page-title-group {
  width: 100%;
  min-width: 0;
  padding-right: 30px;
  padding-left: 0;
}

html[dir="rtl"] .product-page--list.product-page--no-sidebar .product-page-head--rtl-stack::before {
  right: 0;
  left: auto;
}

/* Header */
html[dir="rtl"] .site-header-fixed {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 var(--ar-line);
  backdrop-filter: blur(14px);
}

html[dir="rtl"] .top.top--premium {
  height: 38px;
  border: 0;
  background: var(--ar-deep);
  color: rgba(255, 255, 255, .78);
}

html[dir="rtl"] .header--meta {
  height: 38px;
  direction: rtl;
}

html[dir="rtl"] .top.top--premium .top-meta-label,
html[dir="rtl"] .top.top--premium .top-meta-right > a {
  color: rgba(255, 255, 255, .86);
}

html[dir="rtl"] .top.top--premium .top-meta-phone {
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}

html[dir="rtl"] .top.top--premium .top-meta-divider {
  background: rgba(255, 255, 255, .28);
}

html[dir="rtl"] .top.top--premium .language-switch--top summary {
  color: #fff;
  font-size: 13px;
}

html[dir="rtl"] .top.top--premium .language-switch--top summary::before {
  border-top-color: rgba(255, 255, 255, .78);
}

html[dir="rtl"] .top.top--premium .top-meta-phone:hover,
html[dir="rtl"] .top.top--premium .top-meta-right > a:hover,
html[dir="rtl"] .top.top--premium .language-switch--top summary:hover {
  color: #fff;
}

html[dir="rtl"] .language-switch__menu {
  left: 0;
  right: auto;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--ar-line);
  border-radius: 6px;
  background: #fff;
  text-align: right;
  box-shadow: 0 18px 50px rgba(4, 27, 25, .16);
}

html[dir="rtl"] .language-switch__menu a {
  min-height: 38px;
  border-radius: 4px;
}

html[dir="rtl"] .language-switch__menu a:hover,
html[dir="rtl"] .language-switch__menu a[aria-current="true"] {
  background: rgba(11, 102, 92, .09);
  color: var(--ar-green);
}

html[dir="rtl"] .nav.nav--premium {
  height: 76px;
  border: 0;
  background: rgba(255, 255, 255, .97);
}

html[dir="rtl"] .nav-shell {
  height: 76px;
  direction: rtl;
}

html[dir="rtl"] .nav-logo { margin-left: 38px; margin-right: 0; }
html[dir="rtl"] .nav-logo img { width: auto; max-width: 176px; height: 50px; object-fit: contain; }

html[dir="rtl"] .nav-main { margin: 0; }
html[dir="rtl"] .nav-list { direction: rtl; gap: 2px; }
html[dir="rtl"] .nav-list--pro > li > a {
  position: relative;
  padding: 0 13px;
  color: #273331;
  font-size: 14px;
  font-weight: 600;
}

html[dir="rtl"] .nav-list--pro > li > a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 0;
  height: 2px;
  background: var(--ar-green);
  transition: width .25s ease;
}

html[dir="rtl"] .nav-list--pro > li:hover > a::after,
html[dir="rtl"] .nav-list--pro > li.nav-item--current > a::after { width: calc(100% - 26px); }
html[dir="rtl"] .nav-list--pro > li:hover > a,
html[dir="rtl"] .nav-list--pro > li.nav-item--current > a { color: var(--ar-green); }

html[dir="rtl"] .nav-actions { direction: rtl; gap: 10px; }
html[dir="rtl"] .searcher--nav {
  width: 42px;
  border-color: var(--ar-line);
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  transition: width .28s ease, border-color .2s ease;
}
html[dir="rtl"] .searcher--nav:focus-within { width: 220px; border-color: var(--ar-green); border-radius: 4px; }
html[dir="rtl"] .searcher--nav .txt { padding-left: 42px; padding-right: 14px; }
html[dir="rtl"] .searcher--nav .submit { left: 0; right: auto; }

html[dir="rtl"] .nav-cta,
html[dir="rtl"] .home-hero-btn--primary {
  border-color: var(--ar-gold);
  border-radius: 4px;
  background: var(--ar-gold);
  color: #15211f;
  font-weight: 700;
  box-shadow: none;
}
html[dir="rtl"] .nav-cta:hover,
html[dir="rtl"] .home-hero-btn--primary:hover {
  border-color: #d4b77f;
  background: #d4b77f;
  transform: translateY(-2px);
}

/* Mega menu */
html[dir="rtl"] .subNavMega {
  right: 0;
  left: auto;
  border-top: 2px solid var(--ar-green);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 24px 60px rgba(3, 25, 23, .18);
}
html[dir="rtl"] .subNavMegaAside { border-left: 1px solid var(--ar-line); border-right: 0; }
html[dir="rtl"] .subNavMegaCard i { transform: scaleX(-1); }
html[dir="rtl"] .home-inline-link::after { content: "←"; }
html[dir="rtl"] .product-ref-card__more-icon { transform: scaleX(-1); }
html[dir="rtl"] .product-ref-card__model {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
html[dir="rtl"] .home-contact-item strong,
html[dir="rtl"] .home-value-links a { unicode-bidi: plaintext; }

/* Hero */
html[dir="rtl"] .homeHeroSwiper,
html[dir="rtl"] .homeHeroSwiper .swiper-wrapper,
html[dir="rtl"] .homeHeroSwiper .swiper-slide,
html[dir="rtl"] .home-hero-slide { height: min(640px, calc(100svh - 114px)) !important; min-height: 510px; }

html[dir="rtl"] .home-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 18, 17, .12) 0%, rgba(3, 27, 25, .56) 48%, rgba(2, 20, 19, .94) 100%);
  pointer-events: none;
}

html[dir="rtl"] .homeHeroSwiper img {
  filter: saturate(.72) contrast(1.08);
  object-position: center;
}

html[dir="rtl"] .home-hero-unified {
  z-index: 2;
  align-items: flex-end;
  padding-top: 120px !important;
  padding-bottom: 84px !important;
  text-align: right;
  animation: arHeroIn .75s cubic-bezier(.2,.8,.2,1) both;
}

html[dir="rtl"] .home-hero-copy { max-width: 700px; margin-right: 0; margin-left: auto; }
html[dir="rtl"] .home-hero-copy h1 {
  max-width: 700px;
  color: #fff;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.16;
  font-weight: 700;
  text-align: right;
}
html[dir="rtl"] .home-hero-copy h1::before {
  content: "ITZKXY";
  display: block;
  margin-bottom: 18px;
  color: var(--ar-gold);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .22em;
}
html[dir="rtl"] .home-hero-copy p { max-width: 600px; color: rgba(255,255,255,.72); text-align: right; }
html[dir="rtl"] .home-hero-actions { justify-content: flex-start; direction: rtl; }
html[dir="rtl"] .home-hero-btn { min-width: 128px; border-radius: 4px; }
html[dir="rtl"] .home-hero-btn--ghost { border-color: rgba(255,255,255,.34); color: #fff; background: transparent; }
html[dir="rtl"] .home-hero-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
html[dir="rtl"] .home-hero-pagination { right: auto !important; left: 36px !important; }

/* Homepage content */
html[dir="rtl"] .home-editorial { background: var(--ar-paper); }
html[dir="rtl"] .home-editorial > section { border-radius: 0; box-shadow: none; }
html[dir="rtl"] .home-section-shell,
html[dir="rtl"] .home-proof-shell,
html[dir="rtl"] .home-answer-shell,
html[dir="rtl"] .home-topic-shell { max-width: 1200px; }

html[dir="rtl"] .home-proof {
  margin: 0;
  padding: 86px 0;
  border: 0;
  background: #fff;
}
html[dir="rtl"] .home-proof-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[dir="rtl"] .home-proof::before { display: none; }
html[dir="rtl"] .home-proof-head { max-width: 880px; margin-right: 0; text-align: right; }
html[dir="rtl"] .home-proof-kicker,
html[dir="rtl"] .home-section-title span:last-child { color: var(--ar-green); }
html[dir="rtl"] .home-proof h2 {
  max-width: 920px;
  color: var(--ar-ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.2;
  text-align: right;
}

html[dir="rtl"] .home-proof-grid,
html[dir="rtl"] .home-proof-points {
  border-top: 1px solid var(--ar-line);
  background: transparent;
}
html[dir="rtl"] .home-proof-grid > *,
html[dir="rtl"] .home-proof-points > * {
  border: 0;
  border-left: 1px solid var(--ar-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .25s ease;
}
html[dir="rtl"] .home-proof-grid > *:hover,
html[dir="rtl"] .home-proof-points > *:hover { transform: translateY(-5px); }

html[dir="rtl"] .home-section { padding: 76px 0; border-top: 1px solid var(--ar-line); background: var(--ar-paper); }
html[dir="rtl"] .home-section:nth-of-type(even) { background: #fff; }
html[dir="rtl"] .home-section-head { align-items: end; text-align: right; }
html[dir="rtl"] .home-section-title h2 { color: var(--ar-ink); font-size: 34px; }
html[dir="rtl"] .home-section-link { color: var(--ar-green); border-bottom: 1px solid rgba(11,102,92,.35); }

html[dir="rtl"] .home-product-list,
html[dir="rtl"] .home-brand-list,
html[dir="rtl"] .home-solution-grid,
html[dir="rtl"] .home-topic-grid,
html[dir="rtl"] .home-answer-grid { direction: rtl; }

html[dir="rtl"] .home-product-list > li,
html[dir="rtl"] .home-brand-list > li,
html[dir="rtl"] .home-solution-grid > *,
html[dir="rtl"] .home-topic-grid > *,
html[dir="rtl"] .home-answer-grid > * {
  border-radius: 4px;
  box-shadow: none;
  transition: transform .25s ease, border-color .25s ease;
}
html[dir="rtl"] .home-product-list > li:hover,
html[dir="rtl"] .home-brand-list > li:hover,
html[dir="rtl"] .home-solution-grid > *:hover,
html[dir="rtl"] .home-topic-grid > *:hover {
  border-color: rgba(11,102,92,.4);
  transform: translateY(-5px);
}

/* Inner pages */
html[dir="rtl"] .about-family-banner::after {
  background: linear-gradient(90deg, rgba(4,28,26,.12), rgba(4,28,26,.88));
}
html[dir="rtl"] .about-family-banner__text { text-align: right; }
html[dir="rtl"] .about-family-banner__text h3 { font-size: 46px; }
html[dir="rtl"] .about-family-shell,
html[dir="rtl"] .submian { direction: rtl; }
html[dir="rtl"] .position,
html[dir="rtl"] .breadcrumb { direction: rtl; text-align: right; }
html[dir="rtl"] .article,
html[dir="rtl"] .content,
html[dir="rtl"] .about-copy { text-align: right; }
html[dir="rtl"] .article ul,
html[dir="rtl"] .content ul { padding-right: 1.4em; padding-left: 0; }
html[dir="rtl"] .about-brand-page,
html[dir="rtl"] .contact-brand-page,
html[dir="rtl"] .service-page {
  --page-ink: var(--ar-ink);
  --page-muted: var(--ar-muted);
  --page-accent: var(--ar-green);
  --page-accent-soft: rgba(11,102,92,.08);
  --page-dark: var(--ar-deep);
}
html[dir="rtl"] .about-brand-title-en,
html[dir="rtl"] .contact-brand-title-en,
html[dir="rtl"] .service-page-title-en,
html[dir="rtl"] .about-brand-section__eyebrow,
html[dir="rtl"] .contact-brand-section__eyebrow,
html[dir="rtl"] .service-page-eyebrow { color: var(--ar-green); border-color: rgba(11,102,92,.22); background: rgba(11,102,92,.06); }

/* Footer */
html[dir="rtl"] .footer-premium,
html[dir="rtl"] .foot {
  direction: rtl;
  background: #071d1b;
  color: rgba(255,255,255,.72);
}
html[dir="rtl"] .footer-main { direction: rtl; }
html[dir="rtl"] .footer-main a { color: rgba(255,255,255,.68); }
html[dir="rtl"] .footer-main a:hover { color: var(--ar-gold); }
html[dir="rtl"] .footer-main h4 { color: #fff; }

@keyframes arHeroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html[dir="rtl"] * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 1260px) {
  html[dir="rtl"] .w,
  html[dir="rtl"] .home-section-shell,
  html[dir="rtl"] .home-proof-shell { width: calc(100% - 40px); }
  html[dir="rtl"] .nav-list--pro > li > a { padding: 0 9px; font-size: 13px; }
  html[dir="rtl"] .nav-list--pro > li > a::after { right: 9px; }
}

@media (max-width: 980px) {
  html[dir="rtl"] .nav.nav--premium,
  html[dir="rtl"] .nav-shell { height: auto; min-height: 76px; }
  html[dir="rtl"] .nav-main { margin-right: auto; margin-left: 0; }
  html[dir="rtl"] .home-hero-copy h1 { font-size: 45px; }
}

@media (max-width: 767px) {
  html[dir="rtl"] .w,
  html[dir="rtl"] .home-section-shell,
  html[dir="rtl"] .home-proof-shell { width: calc(100% - 32px); }
  html[dir="rtl"] .homeHeroSwiper,
  html[dir="rtl"] .homeHeroSwiper .swiper-wrapper,
  html[dir="rtl"] .homeHeroSwiper .swiper-slide,
  html[dir="rtl"] .home-hero-slide { height: 520px !important; min-height: 520px; }
  html[dir="rtl"] .home-hero-unified { padding: 86px 20px 54px !important; }
  html[dir="rtl"] .home-hero-copy h1 { font-size: 37px; line-height: 1.24; }
  html[dir="rtl"] .home-hero-copy h1::before { margin-bottom: 14px; }
  html[dir="rtl"] .home-proof,
  html[dir="rtl"] .home-section { padding: 54px 0; }
  html[dir="rtl"] .home-proof h2 { font-size: 32px; }
  html[dir="rtl"] .home-section-title h2 { font-size: 28px; }
}
