/* ==========================================================
   RPS — Renewable Power Solutions SARL
   Design System — palette: #2E4246 / #F8F6E3 / #BFAA82
   Type: Sora (headings) + Inter (everything else)
   ========================================================== */

:root {
  /* Core palette — three colors only */
  --ink:    #2E4246;   /* main brand color */
  --ivory:  #F8F6E3;   /* warm ivory background */
  --gold:   #BFAA82;   /* champagne accent — small labels, dividers, highlights */
  --white:  #FFFFFF;

  /* Functional aliases — derived via opacity */
  --ink-90: rgba(46, 66, 70, 0.92);
  --ink-70: rgba(46, 66, 70, 0.72);
  --ink-55: rgba(46, 66, 70, 0.55);
  --ink-40: rgba(46, 66, 70, 0.40);
  --ink-22: rgba(46, 66, 70, 0.22);
  --ink-12: rgba(46, 66, 70, 0.12);
  --ink-08: rgba(46, 66, 70, 0.08);
  --ink-04: rgba(46, 66, 70, 0.04);

  --gold-80: rgba(191, 170, 130, 0.85);
  --gold-30: rgba(191, 170, 130, 0.35);

  --white-90: rgba(255, 255, 255, 0.90);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-22: rgba(255, 255, 255, 0.22);
  --white-12: rgba(255, 255, 255, 0.12);
  --white-08: rgba(255, 255, 255, 0.08);

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Sizing */
  --container:  1280px;
  --container-wide: 1440px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* Spacing scale */
  --pad-section: 140px;
  --pad-section-sm: 96px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* -------------------- Typography ---------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.025em;
  word-spacing: 0.04em;
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(54px, 7.5vw, 116px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1.06;
}
.h-section {
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.1;
}
.h-sub {
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.18;
}
.h-card {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.25;
}

.italic {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-70);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold); }

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 60ch;
  font-weight: 400;
}
.lead-lg {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 56ch;
  font-weight: 400;
}

/* -------------------- Layout -------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.hairline {
  height: 1px;
  background: var(--ink-12);
  border: none;
  margin: 0;
}
.hairline-gold {
  height: 1px;
  background: var(--gold-30);
  border: none;
  margin: 0;
}

/* -------------------- Buttons ------------------------- */

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  padding: 16px 22px 16px 24px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border: none;
  transition: all 200ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: -8px;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary .btn-arrow { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #1f2c2f; transform: translateY(-1px); }

.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light .btn-arrow { background: var(--ink); color: var(--white); }
.btn-light:hover { background: rgba(255,255,255,0.92); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-22);
}
.btn-ghost .btn-arrow { background: var(--ink); color: var(--white); }
.btn-ghost:hover { background: var(--ink-04); }

.btn-on-dark {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-22);
}
.btn-on-dark .btn-arrow { background: var(--white-12); color: var(--white); }
.btn-on-dark:hover { background: var(--white-08); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: color 180ms ease, gap 180ms ease;
}
.btn-link .btn-arrow {
  width: 28px; height: 28px;
  background: var(--gold);
  color: var(--ink);
}
.btn-link:hover { gap: 14px; }

/* -------------------- Navigation ---------------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 24px 0;
  background: transparent;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(248, 246, 227, 0.62);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 28px rgba(20, 28, 30, 0.18), inset 0 1px 0 rgba(255,255,255,0.4);
  padding: 12px 12px 12px 22px;
  border-radius: var(--r-pill);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img { height: 42px; width: auto; display: block; }

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--ink-22);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  letter-spacing: 0.005em;
  transition: background 160ms ease;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--ink-08);
}
.nav-links a.active { font-weight: 600; }

/* Products nav dropdown (desktop) */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-caret { font-size: 10px; opacity: 0.6; margin-left: 2px; display: inline-block; transition: transform 160ms ease; }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
/* transparent bridge so hover survives the gap to the submenu */
.nav-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 262px;
  background: var(--white);
  border: 1px solid var(--ink-08);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 60;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 9px;
  white-space: nowrap;
  transition: background 140ms ease;
}
.nav-submenu a:hover { background: var(--ink-08); }
/* RTL: anchor submenu to the right edge, flip caret margin */
[dir="rtl"] .nav-submenu { left: auto; right: 0; }
[dir="rtl"] .nav-caret { margin-left: 0; margin-right: 2px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}
.nav-lang {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-55);
  padding: 9px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 160ms ease;
}
.nav-lang.active { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px 12px 22px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  transition: background 200ms ease;
}
.nav-cta:hover { background: #1f2c2f; }
.nav-cta-arrow {
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* -------------------- Footer -------------------------- */

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 90px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--white-12);
}
.footer-brand .nav-logo img { filter: brightness(1.6) contrast(0.85); height: 42px; }
.footer-brand p {
  color: var(--white-70);
  font-size: 15px;
  line-height: 1.7;
  margin: 24px 0 28px;
  max-width: 320px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--white-12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white-70);
  transition: all 180ms ease;
}
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-col li a {
  color: var(--white-70);
  font-size: 15px;
  transition: color 180ms ease;
}
.footer-col li a:hover { color: var(--white); }
.footer-newsletter input {
  width: 100%;
  background: var(--white-08);
  border: 1px solid var(--white-12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 18px;
  border-radius: var(--r-pill);
  outline: none;
}
.footer-newsletter input::placeholder { color: var(--white-50); }
.footer-newsletter button {
  margin-top: 12px;
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 13px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 180ms ease;
}
.footer-newsletter button:hover { background: #cdb992; }
.footer-newsletter p { color: var(--white-50); font-size: 13px; margin: 0 0 14px; line-height: 1.55; }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--white-50);
}
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a { transition: color 180ms ease; }
.footer-bottom a:hover { color: var(--white); }

.footer-certs {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer-cert {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white-50);
  border: 1px solid var(--white-12);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}

/* -------------------- Sections ------------------------ */

.section { padding: var(--pad-section) 0; }
.section-sm { padding: var(--pad-section-sm) 0; }
.section-tight { padding: 64px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .right { display: flex; justify-content: flex-end; align-items: flex-end; }
.section-head .lead { max-width: 460px; }
.section-head h2 { font-weight: 500; }

/* -------------------- Page Hero (interior pages) ------- */

.page-hero {
  background: var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 220px 0 150px;
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
  margin-top: -98px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 18% 28%, rgba(20, 28, 30, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, rgba(46, 66, 70, 0.86) 0%, rgba(46, 66, 70, 0.6) 50%, rgba(46, 66, 70, 0.38) 100%),
    linear-gradient(180deg, rgba(46, 66, 70, 0) 40%, rgba(20, 28, 30, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(191, 170, 130, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(191, 170, 130, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(58px, 7.4vw, 104px);
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1.06;
  margin-top: 18px;
}
.page-hero h1 .italic { color: var(--gold); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero .lead { color: var(--white-78, rgba(255,255,255,0.78)); margin-top: 30px; max-width: 600px; font-size: 19px; line-height: 1.6; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.72); }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ---------- Mobile hamburger button ---------- */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: 4px;
  border-radius: 50%;
  transition: background 160ms ease;
}
.nav-burger:hover { background: var(--ink-08); }
.nav-burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 240ms cubic-bezier(.65,.05,.36,1), opacity 200ms ease, top 240ms ease;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
body.drawer-open .nav-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.drawer-open .nav-burger span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(360px, 86vw);
  background: var(--ivory);
  z-index: 95;
  padding: 76px 28px 28px;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.65,.05,.36,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(20, 28, 30, 0.18);
}
.nav-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 160ms ease, transform 160ms ease;
}
.nav-drawer-close:hover { background: var(--ink-12); transform: rotate(90deg); }
[dir="rtl"] .nav-drawer-close { right: auto; left: 18px; }
.nav-drawer-inner { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-drawer-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  padding: 14px 4px;
  border-bottom: 1px solid var(--ink-08);
}
.nav-drawer-link.active { color: var(--gold); }
/* Drawer sub-links under Products */
.nav-drawer-link:has(+ .nav-drawer-sub) { border-bottom: none; }
.nav-drawer-sub {
  display: flex;
  flex-direction: column;
  padding: 4px 0 10px 18px;
  border-bottom: 1px solid var(--ink-08);
}
[dir="rtl"] .nav-drawer-sub { padding: 4px 18px 10px 0; }
.nav-drawer-sub a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-70);
  padding: 8px 4px;
  transition: color 140ms ease;
}
.nav-drawer-sub a:hover { color: var(--gold); }
.nav-drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-drawer-foot .nav-cta { justify-content: center; }
.nav-drawer-lang { display: flex; gap: 8px; align-items: center; }
.nav-drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 30, 0.55);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
body.drawer-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
body.drawer-open .nav-drawer { transform: translateX(0); }
body.drawer-open .nav-drawer-scrim { opacity: 1; pointer-events: auto; }
[dir="rtl"] .nav-drawer { left: 0; right: auto; transform: translateX(-100%); box-shadow: 20px 0 60px rgba(20,28,30,0.18); }
[dir="rtl"] body.drawer-open .nav-drawer { transform: translateX(0); }

/* ---------- Responsive base ---------- */
@media (max-width: 920px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head .right { justify-content: flex-start; }
  :root { --pad-section: 84px; --pad-section-sm: 56px; }
}
@media (max-width: 880px) {
  .nav-links, .nav-divider, .nav-right { display: none; }
  .nav-burger { display: inline-block; }
  .nav-pill { padding: 8px 8px 8px 18px; gap: 10px; }
  .nav-logo img { height: 36px; }
  .topbar { padding: 16px 0; }
}
@media (max-width: 720px) {
  .container, .container-wide { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer { padding: 64px 0 28px; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; }
  .footer-bottom .links { flex-wrap: wrap; }
  .btn { padding: 14px 18px 14px 20px; font-size: 13.5px; }
}
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .nav-pill { padding: 6px 8px 6px 14px; }
  .nav-logo img { height: 32px; }
  .topbar { padding: 12px 0; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
}
html { overflow-x: clip; }
body { overflow-x: clip; }

/* ==========================================================
   RTL (Arabic) overrides
   ========================================================== */
[dir="rtl"] {
  font-family: 'Cairo', 'Sora', system-ui, sans-serif;
}
[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5 {
  font-family: 'Cairo', 'Sora', system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
}
[dir="rtl"] .h-display,
[dir="rtl"] .h-section,
[dir="rtl"] .h-sub,
[dir="rtl"] .h-card,
[dir="rtl"] .hero h1,
[dir="rtl"] .page-hero h1 {
  letter-spacing: 0;
  line-height: 1.5;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
}
[dir="rtl"] .hero h1 .italic,
[dir="rtl"] .page-hero h1 .italic {
  line-height: 1.5;
}

/* Mirror eyebrow dot to right side */
[dir="rtl"] .eyebrow {
  flex-direction: row-reverse;
}
[dir="rtl"] .eyebrow::after {
  left: auto;
  right: 0;
}

/* Mirror button arrows */
[dir="rtl"] .btn-arrow svg,
[dir="rtl"] .nav-cta-arrow svg,
[dir="rtl"] .arr svg {
  transform: scaleX(-1);
}

/* Mirror breadcrumb separators */
[dir="rtl"] .breadcrumb,
[dir="rtl"] .breadcrumb-light {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Nav lang switcher stays LTR for Latin chars */
[dir="rtl"] .nav-lang { direction: ltr; }

/* Hero meta and corner: mirror flow */
[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .hero-eyebrow::before { margin-right: 0; margin-left: 12px; }

/* Footer rows: mirror */
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .footer-bottom .links { flex-direction: row-reverse; }
[dir="rtl"] .footer-certs { flex-direction: row-reverse; }
[dir="rtl"] .footer-social { flex-direction: row-reverse; }

/* Italic accent: Arabic doesn't have italics in the same way — use color only */
[dir="rtl"] .italic {
  font-style: normal;
  color: var(--gold);
  font-weight: 400;
}

/* Numbers / Latin items in Arabic context should stay LTR */
[dir="rtl"] .num,
[dir="rtl"] .why-stat .num,
[dir="rtl"] .stat-num,
[dir="rtl"] .pd-highlight .v,
[dir="rtl"] .svc-detail-card .spec .v,
[dir="rtl"] .impact-stat .num,
[dir="rtl"] .footer-cert,
[dir="rtl"] .quick-item .qval,
[dir="rtl"] .contact-info-card .val,
[dir="rtl"] .form-note {
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

/* Tag chips: ensure RTL flow */
[dir="rtl"] .tag-row { justify-content: flex-end; }
[dir="rtl"] .form-actions { flex-direction: row-reverse; }
[dir="rtl"] .pd-actions { flex-direction: row-reverse; }
[dir="rtl"] .contact-actions,
[dir="rtl"] .hero-actions,
[dir="rtl"] .tile-cta .actions { flex-direction: row-reverse; }
[dir="rtl"] .actions { justify-content: flex-start; }

/* Quick items: icon stays on the right of content visually */
[dir="rtl"] .quick-item,
[dir="rtl"] .contact-info-card { direction: rtl; }

/* Service-row sticky card: flip arrow inside */
[dir="rtl"] .service-row { direction: rtl; }
[dir="rtl"] .service-row.flip .service-row-text { order: 2; }
[dir="rtl"] .service-row.flip .service-row-visual { order: 1; }

/* About bullets: default grid (32px 1fr) auto-flows correctly in RTL.
   Number ends up on right edge (start), content fills remaining. */
[dir="rtl"] .about-bullets .num { text-align: right; }

/* Process step numbers stay LTR but right-aligned within RTL flow */
[dir="rtl"] .process-step { border-right: none; border-left: 1px solid var(--ink-12); }
[dir="rtl"] .process-step:last-child { border-left: none; }
[dir="rtl"] .why-stat { border-right: none; border-left: 1px solid var(--white-12); padding-left: 32px; padding-right: 0; }
[dir="rtl"] .why-stat:last-child { border-left: none; padding-left: 0; }

/* Catalog sidebar: flip filter alignment */
[dir="rtl"] .catalog-search input { padding: 13px 44px 13px 18px; }
[dir="rtl"] .catalog-search svg { left: auto; right: 16px; }
[dir="rtl"] .filter-group label { flex-direction: row-reverse; justify-content: flex-end; }

/* Specs table: flip column alignment */
[dir="rtl"] .pd-specs td:first-child { text-align: right; }
[dir="rtl"] .pd-specs td:last-child { text-align: left; }

/* svc detail bullets: keep default grid; RTL auto-flow places bullet on right */
[dir="rtl"] .svc-detail-card .spec { flex-direction: row-reverse; }

/* Map pin label keeps proper LTR for phone-like content if needed */
[dir="rtl"] .map-block .pin .label { direction: rtl; }

@media (max-width: 1100px) {
  [dir="rtl"] .why-stat { border-left: none; border-right: none; padding-left: 0; padding-right: 0; }
}
