/* Green Power — Arabic RTL, original centred compositions preserved.
   Updated v6:
   The English CSS, fonts, brand assets, SVG icons and HTML layout are untouched.
   This stylesheet deliberately scopes all overrides to html[lang="ar"]. */
html[lang="ar"] { direction: rtl; }
html[lang="ar"] body { direction: rtl; text-align: right; }

/* Follow each component's original text alignment. RTL direction already gives
   ordinary Arabic paragraphs a right-aligned default without overriding centre. */
html[lang="ar"] :is(.hero .wrap,.hero.page .wrap,.sh,.sh.c,.sh.row,.sh.row>div,.ft,.ctab,.band,.kp,.pbox,.lgnote,.pop-bd,.pop-txt,.pop-lists,.pop-k,.tbl th,.tbl td,.gi .cap,.split .ph .cap,.frame .bar span,.tst,.rt,.legal,.article .body,.form,.contact,.mapbox,.jobs,.job,.tm,.vmc,.lg.tx,.dd,.mnav,.crumbs,.pnav,.snav,.tbl,.newsletter,.ft .cols,.ft .fb) {
    direction: rtl;
}
/* Intentional centred icon controls, geometric shapes and media retain their original positioning. */
html[lang="ar"] :is(.icn,.icn.sm,.ic2 .icn,.ft .soc a,.wa,.call,.burger,.sbtn,.rel-btn,.lbx button,.player .play i) {
    text-align: center !important;
}
html[lang="ar"] :is(input,textarea,select,option) {
    direction: rtl;
    text-align: right !important;
}
html[lang="ar"] :is(input[type="email"],input[type="tel"],input[type="url"]) {
    direction: ltr;
    text-align: right !important;
}
html[lang="ar"] .brand .gw { text-align: right; }
html[lang="ar"] :is(.ft a[href^="mailto:"],.hcontact a[href^="mailto:"]) { unicode-bidi: isolate; }

/* Restore the supplied design's intentionally centred blocks.
   On Arabic pages only originally LTR-aligned exceptions become right-aligned. */
html[lang="ar"] .hero.page .wrap { text-align:center; }
html[lang="ar"] .hero.page h1 { margin-left:auto; margin-right:auto; }
html[lang="ar"] .hero.page .crumbs,
html[lang="ar"] .hero .crumbs { justify-content:center; flex-wrap:wrap; }
html[lang="ar"] .hero .cta,
html[lang="ar"] .hero .creds { justify-content:center; }
html[lang="ar"] .sh,
html[lang="ar"] .sh.c { margin-left:auto; margin-right:auto; text-align:center; }
html[lang="ar"] .sh.c .eb { justify-content:center; }
html[lang="ar"] :is(.split,.contact,.cert2,.article) .sh { text-align:right; margin-left:0; margin-right:0; }
html[lang="ar"] .sh.row { align-items:center; }
html[lang="ar"] .ctab,
html[lang="ar"] .band { text-align:center; align-items:center; }
html[lang="ar"] .ctab .b { justify-content:center; }
html[lang="ar"] .kp,
html[lang="ar"] .pbox { text-align:center; align-items:center; }
html[lang="ar"] .trust .iso { margin-left:0; margin-right:auto; }
html[lang="ar"] .dlc .btn { margin-left:0; margin-right:auto; }
html[lang="ar"] .frame .bar span { margin-left:0; margin-right:10px; }
html[lang="ar"] .quote { border-left:0; border-right:4px solid var(--g); padding-left:0; padding-right:24px; }
html[lang="ar"] .mnav ul { padding:0 12px 12px 0; }
html[lang="ar"] .mnav .wrap { direction:rtl; text-align:right !important; }
html[lang="ar"] .mnav summary { text-align:right !important; }
html[lang="ar"] .mnav summary::after { margin-inline-start:12px; }
html[lang="ar"] .pop-bd,
html[lang="ar"] .pop-box { direction:rtl; }
html[lang="ar"] .pop-k .pop-rng { text-align:right !important; }
html[lang="ar"] .tbl th { text-align:right !important; }

/* Desktop navigation: right-aligned entries and each dropdown opens from its parent's RIGHT edge.
   Keep the 12px hover bridge from the supplied site.css; don't modify the English nav. */
html[lang="ar"] .hdr,
html[lang="ar"] .hdr .wrap.top,
html[lang="ar"] .navrow,
html[lang="ar"] .navrow .wrap,
html[lang="ar"] .nav,
html[lang="ar"] .nav>ul { direction:rtl; }
html[lang="ar"] .nav>ul { margin-left:0; margin-right:0; }
html[lang="ar"] .nav a.top { text-align:right !important; }
html[lang="ar"] .nav>ul>li { position:relative; }
html[lang="ar"] .nav>ul>li>.dd {
    left:auto;
    right:0;
    inset-inline-start:0;
    inset-inline-end:auto;
    text-align:right !important;
    direction:rtl;
    max-width:min(700px, calc(100vw - 32px));
}
html[lang="ar"] .nav>ul>li>.dd a,
html[lang="ar"] .dd .grp,
html[lang="ar"] .dd a span,
html[lang="ar"] .dd a b { text-align:right !important; }
html[lang="ar"] .nav>ul>li>.dd.mega { width:min(700px, calc(100vw - 32px)); min-width:0; }

/* Sliders retain the original card visuals and scroll-snap. Only arrow direction is mirrored. */
html[lang="ar"] .slider .track { direction:rtl; }
html[lang="ar"] .sbtn.prev svg { transform:none; }
html[lang="ar"] .sbtn.next svg { transform:rotate(180deg); }
html[lang="ar"] .slider .dots { direction:rtl; }

/* On touch sizes, the dropdown becomes the existing accordion. Prevent it being clipped. */
@media (max-width:1023px) {
  html[lang="ar"] .mnav.open { max-height:calc(100dvh - 72px); overflow-y:auto; overscroll-behavior:contain; }
  html[lang="ar"] .mnav details, html[lang="ar"] .mnav a.one { text-align:right !important; }
  html[lang="ar"] .sh.row { align-items:flex-start; }
}
@media (max-width:720px) {
  /* The source design right-aligns standard hero copy and section headings
     on small screens; inner-page title, breadcrumb and .sh.c stay centred. */
  html[lang="ar"] .hero:not(.page) .wrap,
  html[lang="ar"] .sh:not(.c),
  html[lang="ar"] .contact,
  html[lang="ar"] .form { text-align:right; }
  html[lang="ar"] .hero:not(.page) .cta,
  html[lang="ar"] .hero:not(.page) .creds { justify-content:flex-start; }
  html[lang="ar"] .hero.page .wrap { text-align:center; }
  html[lang="ar"] .hero.page .crumbs { justify-content:center; }
  html[lang="ar"] .sh.c { text-align:center; }
  html[lang="ar"] .trust .iso { margin:0; }
}

/* Arabic navigation becomes the original mobile accordion before its longer
   labels can overflow narrow landscape tablet/small desktop viewports. */
@media (min-width:1024px) and (max-width:1100px) {
  html[lang="ar"] .navrow,
  html[lang="ar"] .hcontact { display:none !important; }
  html[lang="ar"] .hdr .cta .btn:not(.lang) { display:none !important; }
  html[lang="ar"] .hdr .cta .btn.lang { display:inline-flex; }
  html[lang="ar"] .burger { display:flex; }
  html[lang="ar"] .hdr .wrap.top,
  html[lang="ar"] .hdr.sc .wrap.top { height:72px; }
  html[lang="ar"] .mnav.open { max-height:calc(100dvh - 72px); overflow-y:auto; overscroll-behavior:contain; }
}


/* PATCH v5 — Arabic-only directional UI: no change to the English design. */
html[lang="ar"] .gp-rtl-arrow {transform:scaleX(-1);transform-origin:center;}
html[lang="ar"] .more:hover .gp-rtl-arrow,
html[lang="ar"] .sol:hover .more .gp-rtl-arrow,
html[lang="ar"] .pcard.linked:hover .seemore .gp-rtl-arrow,
html[lang="ar"] .pcard.linked .more.stretch:hover .gp-rtl-arrow {
    transform:translateX(-4px) scaleX(-1);
}
/* Product slider buttons have reversed meaning under RTL; preserve their native icons. */
html[lang="ar"] .slider .sbtn.prev svg {transform:none !important;}
html[lang="ar"] .slider .sbtn.next svg {transform:rotate(180deg) !important;}
/* Related-products slider uses inline left/right chevron paths instead of #i-arrow. */
html[lang="ar"] .rel-nav .rel-btn svg {transform:scaleX(-1);transform-origin:center;}
/* Downloads: content starts at right, last action is flush LEFT for every card. */
html[lang="ar"] .dlist .dlc {direction:rtl;text-align:right;width:100%;min-width:0;}
html[lang="ar"] .dlist .dlc > div:not(.icn) {min-width:0;flex:1 1 auto;text-align:right;}
html[lang="ar"] .dlist .dlc > .btn {flex:0 0 auto;margin-left:0 !important;margin-right:auto !important;margin-inline-start:auto !important;margin-inline-end:0 !important;white-space:nowrap;}
@media(max-width:520px){html[lang="ar"] .dlist .dlc{gap:10px;}html[lang="ar"] .dlist .dlc .btn{padding:8px 10px;}}
/* Narrow 320px Arabic phones: keep the menu trigger fully inside the viewport. */
@media(max-width:359px){
  html[lang="ar"] .hdr .wrap.top{gap:8px;}
  html[lang="ar"] .hdr .brand{gap:6px;min-width:0;}
  html[lang="ar"] .hdr .brand img{height:36px;}
  html[lang="ar"] .hdr .brand .gw b{font-size:16px;}
  html[lang="ar"] .hdr .brand .gw small{font-size:9px;}
  html[lang="ar"] .hdr .cta{gap:6px;}
  html[lang="ar"] .hdr .cta .btn.lang{padding:8px 8px;}
}

/* v7 | Arabic statistics dividers + green list dashes.
   Only Arabic. Keep the original centered headings, fonts, palette and icons. */
html[lang="ar"] .statcard {
    direction: rtl;
}
html[lang="ar"] .statcard > .st {
    min-width: 0;
    text-align: right;
    border-left: 0;
    border-right: 1px solid var(--line2);
    padding-left: 30px;
    padding-right: 30px;
}
/* First stat is on the far right; the separators belong on the RIGHT side
   of the next (leftward) stat, not on the left as in English. */
html[lang="ar"] .statcard > .st:first-child {
    border-right: 0;
    padding-right: 0;
}
html[lang="ar"] .statcard > .st:last-child {
    padding-left: 0;
}
html[lang="ar"] .statcard > .st .cnt {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
    white-space: nowrap;
}
/* About + Home: green list strokes at the start of Arabic text (RIGHT). */
html[lang="ar"] .ticks {
    direction: rtl;
}
html[lang="ar"] .ticks > li {
    padding-left: 0;
    padding-right: 28px;
    text-align: right;
}
html[lang="ar"] .ticks > li::before {
    left: auto;
    right: 0;
    top: 22px;
    transform: none;
}
/* Two equal columns, with correctly mirrored dividers on small screens. */
@media (max-width: 720px) {
    html[lang="ar"] .statcard > .st,
    html[lang="ar"] .statcard > .st:first-child,
    html[lang="ar"] .statcard > .st:last-child {
        padding: 14px 12px;
    }
    html[lang="ar"] .statcard > .st:nth-child(odd) { border-right: 0; }
    html[lang="ar"] .statcard > .st:nth-child(even) { border-right: 1px solid var(--line2); }
    html[lang="ar"] .statcard > .st:nth-child(n+3) { border-top: 1px solid var(--line2); }
}
/* Arabic labels/figures need more room than the original four-column
   tablet grid. Keep the desktop's four figures and type sizes unchanged. */
@media (min-width: 721px) and (max-width: 900px) {
    html[lang="ar"] .statcard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html[lang="ar"] .statcard > .st,
    html[lang="ar"] .statcard > .st:first-child,
    html[lang="ar"] .statcard > .st:last-child {
        padding: 16px 20px;
    }
    html[lang="ar"] .statcard > .st:nth-child(odd) { border-right: 0; }
    html[lang="ar"] .statcard > .st:nth-child(even) { border-right: 1px solid var(--line2); }
    html[lang="ar"] .statcard > .st:nth-child(n+3) { border-top: 1px solid var(--line2); }
}
@media (max-width: 359px) {
    html[lang="ar"] .statcard > .st .cnt { font-size: 29px; }
    html[lang="ar"] .statcard > .st .cnt small { font-size: 17px; }
}
