/* Arabic shared framework for SUNFULL localized pages. */
html[lang="ar"],
html[lang="ar"] body {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] body {
  font-family: Inter, Tahoma, Arial, sans-serif;
}

html[lang="ar"] .site-header,
html[lang="ar"] .site-footer,
html[lang="ar"] .footer-new {
  direction: rtl;
}

html[lang="ar"] .header-top-contacts,
html[lang="ar"] .header-top .container,
html[lang="ar"] .header-main .container,
html[lang="ar"] .site-header .container,
html[lang="ar"] .main-nav > ul,
html[lang="ar"] .footer-grid,
html[lang="ar"] .footer-grid-new,
html[lang="ar"] .footer-contact-line,
html[lang="ar"] .qmodal-row,
html[lang="ar"] .qmodal-form {
  direction: rtl;
}

html[lang="ar"] .main-nav > ul {
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  max-width: 100%;
}

html[lang="ar"] .main-nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100vw - 220px);
}

html[lang="ar"] .main-nav > ul > li > a {
  font-size: 13px;
  white-space: nowrap;
}

html[lang="ar"] .nav-cta {
  min-width: 118px;
  padding-left: 14px;
  padding-right: 14px;
  text-align: center;
  white-space: nowrap;
}

html[lang="ar"] .lang-toggle-btn {
  min-width: 58px;
  padding-left: 10px;
  padding-right: 10px;
}

html[lang="ar"] .dropdown,
html[lang="ar"] .prod-dropdown,
html[lang="ar"] .prod-fly,
html[lang="ar"] .qmodal-box,
html[lang="ar"] .qmodal-form,
html[lang="ar"] .support-popup,
html[lang="ar"] .support-popup * {
  text-align: right;
}

html[lang="ar"] .prod-fly {
  left: auto;
  right: 100%;
}

html[lang="ar"] .qmodal-close {
  right: auto;
  left: 18px;
}

html[lang="ar"] .support-popup,
html[lang="ar"] .wa-float-wrap {
  right: 28px !important;
  left: auto !important;
}

.ar-hero h1,
.i18n-hero h1 {
  color: #fff;
  letter-spacing: 0;
}

.ar-hero .ar-kicker,
.i18n-hero .i18n-kicker {
  color: #37e287;
}

.site-header .nav-cta,
.site-header .btn-primary,
.site-header .quote,
.ar-actions .btn,
.ar-rfq .btn,
.qmodal-submit,
.support-popup-cta {
  white-space: nowrap;
}

.ar-hero {
  background: #071426;
  color: #fff;
  padding: 76px 0;
}

.ar-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.ar-hero p {
  color: #d6e3ef;
  font-size: 18px;
  line-height: 1.9;
}

.ar-hero-img {
  width: 100%;
  max-height: 420px;
  border-radius: 10px;
  object-fit: cover;
  background: #0d2237;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.btn.primary {
  background: #06a957;
  color: #fff;
  box-shadow: 0 14px 28px rgba(6, 169, 87, .22);
}

.btn.secondary {
  background: #fff;
  color: #0b5d92;
}

.btn.ghost {
  background: #0b65a3;
  color: #fff;
}

.ar-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.ar-section {
  padding: 70px 0;
}

.ar-panel,
.ar-card,
.ar-rfq {
  background: #fff;
  border: 1px solid #dde7f1;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 31, 51, .06);
}

.ar-panel {
  padding: 34px;
  margin-bottom: 28px;
}

.ar-split {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.ar-card {
  padding: 28px;
}

.ar-card.strong {
  border-right: 4px solid #06a957;
}

.ar-panel h2,
.ar-split h2,
.ar-rfq h2 {
  font-size: 30px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.ar-panel p,
.ar-card p,
.ar-rfq p,
.ar-split p,
.ar-card li {
  color: #5c6a7e;
  line-height: 1.9;
}

.ar-kicker {
  color: #0071bc;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 800;
  font-size: 13px;
  margin: 0 0 10px;
}

.ar-spec-list {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  margin: 0;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.ar-spec-row {
  display: contents;
}

.ar-spec-row dt,
.ar-spec-row dd {
  margin: 0;
  padding: 15px;
  border-bottom: 1px solid #e1e8f0;
  overflow-wrap: anywhere;
}

.ar-spec-row dt {
  font-weight: 800;
  background: #f2f6fb;
  color: #182235;
}

.ar-spec-row dd {
  color: #26364b;
}

.ar-spec-row:last-child dt,
.ar-spec-row:last-child dd {
  border-bottom: 0;
}

.ar-checkgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}

.ar-checkgrid div {
  background: #f7fafc;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  padding: 18px;
}

.ar-checkgrid b {
  display: block;
  color: #182235;
  margin-bottom: 8px;
}

.ar-checkgrid span {
  color: #5c6a7e;
  line-height: 1.8;
}

.ar-rfq {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  margin: 36px 0;
  background: #09233b;
  color: #fff;
}

html[lang="ar"] .conversion-strip,
html[lang="ar"] .conversion-card,
html[lang="ar"] .resource-conversion {
  overflow: hidden;
}

html[lang="ar"] .conversion-strip a,
html[lang="ar"] .conversion-strip button,
html[lang="ar"] .resource-conversion a,
html[lang="ar"] .resource-conversion button {
  white-space: normal;
  text-align: center;
}

html[lang="ar"] .lp-why-icon {
  color: #07a95a;
  font-size: 0;
  line-height: 1;
}

html[lang="ar"] .lp-why-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.ar-rfq h2 {
  color: #fff;
}

.ar-rfq p {
  color: #d7e5f2;
}

.ar-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ar-actions.compact {
  margin-top: 0;
  justify-content: flex-start;
}

.ar-faq details {
  background: #fff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  margin: 12px 0;
  padding: 18px;
}

.ar-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.ar-legal {
  max-width: 900px;
}

.ar-mobile-toggle {
  display: flex !important;
  position: fixed;
  top: 12px;
  left: 328px;
  left: calc(100dvw - 62px);
  right: auto;
  z-index: 10050;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(7, 20, 38, .08);
}

.ar-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #071426;
  transition: transform .2s ease, opacity .2s ease;
}

.ar-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ar-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.ar-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  html[lang="ar"],
  html[lang="ar"] body {
    max-width: 100%;
    overflow-x: hidden;
  }

  html[lang="ar"] .site-header .container,
  html[lang="ar"] .header-main .container {
    max-width: 100%;
    overflow: visible;
  }

  html[lang="ar"] .header-main .container,
  html[lang="ar"] .site-header .container {
    direction: ltr !important;
  }

  html[lang="ar"] .header-main .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px;
    min-width: 0;
    position: relative !important;
  }

  html[lang="ar"] .logo img,
  html[lang="ar"] .site-logo img,
  html[lang="ar"] .brand img {
    max-width: 142px;
    height: auto;
  }

  html[lang="ar"] .logo,
  html[lang="ar"] .brand-logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  html[lang="ar"] .mobile-toggle {
    display: flex !important;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 8px;
    position: absolute !important;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    z-index: 1002;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: #071426;
    background: transparent;
  }

  html[lang="ar"] .mobile-toggle span {
    display: block !important;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #071426;
  }

  html[lang="ar"] .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  html[lang="ar"] .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  html[lang="ar"] .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  html[lang="ar"] .ar-mobile-toggle {
    display: flex !important;
    position: fixed;
    top: 12px;
    left: 328px;
    left: calc(100dvw - 62px);
    right: auto;
    z-index: 10050;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(7, 20, 38, .08);
  }

  html[lang="ar"] .ar-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #071426;
    transition: transform .2s ease, opacity .2s ease;
  }

  html[lang="ar"] .ar-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  html[lang="ar"] .ar-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  html[lang="ar"] .ar-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  html[lang="ar"] .main-nav {
    direction: rtl !important;
    text-align: right !important;
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    display: none;
    width: 100%;
    max-width: none;
    overflow-y: auto;
    background: #fff;
    padding: 26px 18px 112px;
    box-shadow: 0 20px 40px rgba(7, 20, 38, .14);
  }

  html[lang="ar"] .main-nav.show {
    display: block !important;
  }

  html[lang="ar"] .main-nav > ul {
    display: block;
    margin: 0;
    padding: 0;
    direction: rtl !important;
    text-align: right !important;
  }

  html[lang="ar"] .main-nav > ul > li {
    border-bottom: 1px solid #e6edf5;
  }

  html[lang="ar"] .main-nav > ul > li > a {
    display: flex;
    justify-content: space-between !important;
    width: 100%;
    min-height: 56px;
    padding: 13px 4px;
    text-align: right !important;
    font-size: 20px;
    line-height: 1.25;
  }

  html[lang="ar"] .main-nav .nav-cta {
    width: 100%;
    margin-top: 18px;
    justify-content: center;
  }

  html[lang="ar"] .dropdown,
  html[lang="ar"] .prod-dropdown,
  html[lang="ar"] .mega-menu,
  html[lang="ar"] .dropdown-menu,
  html[lang="ar"] .submenu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: 0;
    padding: 0;
    margin: 0;
  }

  html[lang="ar"] li.open > .dropdown,
  html[lang="ar"] li.open > .prod-dropdown,
  html[lang="ar"] li.open > .mega-menu,
  html[lang="ar"] li.open > .dropdown-menu,
  html[lang="ar"] li.open > .submenu {
    display: block !important;
  }

  html[lang="ar"] .prod-dropdown {
    background: #f5f9fc;
    border-radius: 10px;
    margin: 0 0 12px;
    padding: 12px;
  }

  html[lang="ar"] .prod-dropdown a,
  html[lang="ar"] .dropdown a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html[lang="ar"] .prod-flyout,
  html[lang="ar"] .prod-fly {
    position: static !important;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    margin: 8px 0 0;
  }

  html[lang="ar"] .prod-has-fly.open > .prod-flyout,
  html[lang="ar"] .prod-has-fly.open > .prod-fly {
    display: block !important;
  }

  .ar-wrap {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .ar-section {
    padding: 44px 0;
  }

  .ar-hero {
    padding-top: 48px;
    padding-bottom: 48px;
    text-align: center;
  }

  .ar-hero h1,
  .i18n-hero h1 {
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.14;
    width: min(100%, 352px);
    max-width: calc(100vw - 32px);
    padding-inline: 4px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    unicode-bidi: isolate;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .ar-hero p,
  .i18n-hero p {
    font-size: 16px;
    max-width: 340px;
    overflow-wrap: anywhere;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .ar-hero .ar-kicker,
  .i18n-hero .i18n-kicker {
    text-align: center;
  }

  .i18n-grid,
  .i18n-split,
  .i18n-rfq {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .i18n-grid > *,
  .i18n-split > *,
  .i18n-rfq > * {
    min-width: 0;
    width: 100%;
  }

  .i18n-actions {
    width: 100%;
    gap: 12px;
    justify-content: center !important;
  }

  .i18n-hero .i18n-actions .i18n-btn,
  .i18n-hero .i18n-actions .btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: 340px;
    white-space: normal;
    text-align: center;
  }

  .ar-panel {
    padding: 24px;
  }

  .ar-hero-grid,
  .ar-split,
  .ar-rfq {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ar-hero-grid > *,
  .ar-split > *,
  .ar-rfq > * {
    min-width: 0;
    width: 100%;
  }

  .ar-hero-img {
    max-height: 300px;
  }

  .ar-checkgrid {
    grid-template-columns: 1fr;
  }

  .ar-actions.compact {
    justify-content: flex-start;
  }

  .ar-actions {
    width: 100%;
    gap: 12px;
    justify-content: center;
  }

  .ar-actions .btn {
    flex: 1 1 150px;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    white-space: normal;
    text-align: center;
  }

  .ar-hero .ar-actions .btn {
    flex-basis: 100%;
    width: 100%;
  }

  .ar-spec-list {
    display: block;
  }

  .ar-spec-row {
    display: block;
    border-bottom: 1px solid #e1e8f0;
  }

  .ar-spec-row:last-child {
    border-bottom: 0;
  }

  .ar-spec-row dt,
  .ar-spec-row dd {
    display: block;
    border: 0;
  }

  .ar-spec-row dd {
    padding-top: 0;
  }

  html[lang="ar"] .prod-fly {
    left: auto;
    right: 0;
  }

  .support-popup,
  .support-popup-active .support-popup,
  body.support-popup-active .support-popup {
    display: none !important;
  }

  .mobile-sticky-cta,
  #mobileStickyCta {
    display: grid !important;
  }

  .mobile-sticky-cta a,
  #mobileStickyCta a,
  .support-popup-cta {
    white-space: nowrap;
    font-size: 15px;
  }
}
