/* ============================================================================
   HANART /fa — Persian-market theme layer
   Loaded AFTER css/styles.css on every Persian page.
   Direction: Persian (RTL) editorial luxury — deep turquoise (فیروزه) base,
   saffron/gold accent, cream paper, Vazirmatn type, soft radii, girih ornament.
   Everything here is scoped to the Persian site only.
   ============================================================================ */

:root {
  /* --- palette: turquoise + saffron, cream paper --- */
  --navy: #0d3b40;
  --navy-deep: #072627;
  --navy-mid: #12545a;
  --steel: #2c5b60;
  --accent: #12817f;
  --accent-dark: #0c6664;
  --accent-strong: #094c4b;
  --accent-soft: #9fd6cd;
  --accent-on-dark: #7fcdc2;
  --accent-light: #e7f3ef;
  --tint-warm: #f4e8cf;
  --primary: #0d3b40;
  --ink: #17262a;
  --ink-2: #35504f;
  --slate: #617a78;
  --text-light: #d5e6e1;
  --text-on-dark: #e6f1ec;
  --line: #dfe6e2;
  --border-color: #dfe6e2;
  --paper: #ffffff;
  --mist: #f8f6f0;
  --bg-soft: #f8f6f0;
  --night: #072627;
  --gold: #b8893c;
  --gold-2: #d9ae63;
  --gold-soft: #f6ead3;
  --ok: #1c7a5a;
  --whatsapp: #1faa59;
  --whatsapp-hover: #178c49;
  --divider-on-dark: #2f5357;

  /* --- shape: Persian sites read softer than European industrial --- */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 2px 10px rgba(13, 59, 64, .06);
  --shadow-lg: 0 24px 60px rgba(13, 59, 64, .16);

  /* --- type --- */
  --font-body: "Vazirmatn", "Inter", "Tahoma", "Segoe UI", sans-serif;
  --font-head: "Vazirmatn", "Inter", "Tahoma", "Segoe UI", sans-serif;

  /* ornament + accent gradients reused below */
  --girih: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='%23ffffff' stroke-opacity='.032' stroke-width='1.2'><path d='M36 4 68 36 36 68 4 36z'/><path d='M36 14 58 36 36 58 14 36z'/><rect x='26' y='26' width='20' height='20' transform='rotate(45 36 36)'/><circle cx='36' cy='36' r='3'/></g></svg>");
  --girih-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='%230d3b40' stroke-opacity='.04' stroke-width='1.2'><path d='M36 4 68 36 36 68 4 36z'/><path d='M36 14 58 36 36 58 14 36z'/><rect x='26' y='26' width='20' height='20' transform='rotate(45 36 36)'/><circle cx='36' cy='36' r='3'/></g></svg>");
}

/* ---------------------------------------------------------------- base ---- */
/* styles.css pins the Arabic/Persian font stack on html[lang="fa"], which is
   more specific than :root, so the Persian font has to be re-declared here. */
html[lang="fa"],
html[dir="rtl"] {
  --font-body: "Vazirmatn", "Inter", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-head: "Vazirmatn", "Inter", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}

html[dir="rtl"], html[dir="rtl"] body {
  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Persian letters must never be letter-spaced: it breaks the joins visually */
html[dir="rtl"] *:not(.lang-code):not(.num):not(.mono) {
  letter-spacing: normal !important;
}

/* uppercase has no meaning in Persian; keep Latin bits readable instead */
html[dir="rtl"] .section-kicker,
html[dir="rtl"] .hero-kicker,
html[dir="rtl"] .card-eyebrow,
html[dir="rtl"] .kicker,
html[dir="rtl"] .card-meta,
html[dir="rtl"] .case-meta,
html[dir="rtl"] .insight-meta,
html[dir="rtl"] .badge,
html[dir="rtl"] .topbar-label,
html[dir="rtl"] .sidebar-group h3,
html[dir="rtl"] .sidebar-nav h2,
html[dir="rtl"] .footer-title {
  text-transform: none;
}

/* Persian headings: heavier, tighter leading, no negative tracking */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: normal;
}
/* colour is set per component so dark sections keep their white type */
html[dir="rtl"] .content-prose h2,
html[dir="rtl"] .content-prose h3,
html[dir="rtl"] .content-prose h4,
html[dir="rtl"] .card-title,
html[dir="rtl"] .section-title { color: var(--navy-deep); }
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .page-hero h2,
html[dir="rtl"] .page-hero h3,
html[dir="rtl"] .cta-band h3,
html[dir="rtl"] .card-dark .card-title { color: #fff; }

html[dir="rtl"] p, html[dir="rtl"] li, html[dir="rtl"] .content-prose p {
  line-height: 2;
}

html[dir="rtl"] .lead { font-size: 1.12rem; line-height: 1.95; color: var(--ink-2); }

/* numbers inside Persian text need the Latin face, but must sit on the baseline */
html[dir="rtl"] .num, html[dir="rtl"] b.num { font-family: "Inter", var(--font-body); }

/* ------------------------------------------------------------------ topbar */
html[dir="rtl"] .topbar {
  background: var(--navy-deep);
  color: #a9c6c1;
  font-size: .82rem;
  border-bottom: 1px solid rgba(217, 174, 99, .28);
}
html[dir="rtl"] .topbar-inner { min-height: 42px; }
html[dir="rtl"] .topbar-label {
  color: var(--gold-2);
  font-size: .74rem;
  font-weight: 700;
}
html[dir="rtl"] .topbar a { color: #eaf3ef; }
html[dir="rtl"] .topbar a:hover { color: var(--gold-2); }
html[dir="rtl"] .topbar-hours { color: #8fb0ac; }

/* ------------------------------------------------------------------ header */
html[dir="rtl"] .site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(13, 59, 64, .05);
}
html[dir="rtl"] .header-inner { min-height: 78px; gap: 26px; }
html[dir="rtl"] .brand-logo { height: auto; }

html[dir="rtl"] .nav-links { gap: 4px; }
html[dir="rtl"] .nav-links > li > a {
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: 8px;
  transition: color .18s, background-color .18s;
}
html[dir="rtl"] .nav-links > li > a:hover,
html[dir="rtl"] .nav-links > li.active > a {
  color: var(--navy-deep);
  background: var(--accent-light);
}
html[dir="rtl"] .nav-links > li.active > a { position: relative; }
html[dir="rtl"] .nav-links > li.active > a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  border-radius: 2px;
}

html[dir="rtl"] .dropdown,
html[dir="rtl"] .dropdown--mega {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
html[dir="rtl"] .dropdown__title {
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 8px;
}
html[dir="rtl"] .dropdown a:hover { color: var(--accent-dark); }

/* the header CTA: saffron pill — the single loudest element on the page */
html[dir="rtl"] .header-cta .btn,
html[dir="rtl"] .header-cta .btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border: 0;
  color: #2a1c05;
  font-weight: 800;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(184, 137, 60, .28);
}
html[dir="rtl"] .header-cta .btn:hover {
  background: linear-gradient(135deg, #e6c27d, #c99a48);
  color: #201404;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------- buttons -- */
html[dir="rtl"] .btn {
  font-weight: 700;
  font-size: .98rem;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform .18s, background-color .18s, box-shadow .18s, color .18s;
}
html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-secondary {
  background: linear-gradient(135deg, #12817f, #0b5f5e);
  border: 0;
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 129, 127, .22);
}
html[dir="rtl"] .btn-primary:hover,
html[dir="rtl"] .btn-secondary:hover {
  background: linear-gradient(135deg, #0f918e, #0a6b6a);
  box-shadow: 0 14px 32px rgba(18, 129, 127, .3);
  transform: translateY(-1px);
}
html[dir="rtl"] .btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(13, 59, 64, .35);
}
html[dir="rtl"] .btn-outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
html[dir="rtl"] .btn-lg { padding: 17px 38px; font-size: 1.04rem; }
html[dir="rtl"] .btn-small { padding: 10px 18px; font-size: .86rem; }
html[dir="rtl"] .btn-whatsapp { border-color: var(--whatsapp); color: var(--whatsapp); }
html[dir="rtl"] .btn-whatsapp:hover { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }

/* ------------------------------------------------------------------ hero -- */
html[dir="rtl"] .hero,
html[dir="rtl"] .page-hero {
  background: var(--navy-deep);
}
html[dir="rtl"] .hero-bg::before {
  background: linear-gradient(270deg, rgba(7, 38, 39, .97) 0%, rgba(7, 38, 39, .88) 46%, rgba(7, 38, 39, .48) 100%);
}
html[dir="rtl"] .hero::after,
html[dir="rtl"] .page-hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background-image: var(--girih);
  background-size: 120px 120px;
  opacity: .19;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(270deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 78%);
}
/* the page hero needs its legibility scrim back: layer pattern over gradient */
html[dir="rtl"] .page-hero::after {
  inset: 0;
  width: auto;
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
  background-image: var(--girih),
    linear-gradient(270deg, rgba(7, 38, 39, .96) 0%, rgba(7, 38, 39, .82) 52%, rgba(7, 38, 39, .5) 100%);
  background-size: 152px 152px, cover;
}
html[dir="rtl"] .hero-kicker {
  color: var(--gold-2);
  font-weight: 700;
  font-size: .88rem;
  gap: 12px;
  margin-bottom: 22px;
}
html[dir="rtl"] .hero-kicker::before {
  background: linear-gradient(90deg, var(--gold-2), transparent);
  height: 2px;
  width: 34px;
}
html[dir="rtl"] .hero-title {
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  max-width: 19ch;
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: normal;
  text-wrap: balance;
}
html[dir="rtl"] .hero-title em {
  font-style: normal;
  color: var(--gold-2);
  position: relative;
  white-space: nowrap;
}
html[dir="rtl"] .hero-sub {
  max-width: 60ch;
  color: #cfe0dc;
  font-size: 1.1rem;
  line-height: 1.95;
  margin: 24px 0 34px;
}
html[dir="rtl"] .hero-facts {
  gap: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(217, 174, 99, .3);
  padding-top: 26px;
  margin-top: 52px;
}
html[dir="rtl"] .hero-facts div {
  font-size: .84rem;
  color: #b6cec9;
  line-height: 1.7;
  padding-inline-start: 14px;
  border-inline-start: 2px solid rgba(217, 174, 99, .35);
}
html[dir="rtl"] .hero-facts b {
  font-size: 1.62rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: normal;
  margin-bottom: 4px;
}
html[dir="rtl"] .hero-facts b .stat-ico { color: var(--gold-2); }

html[dir="rtl"] .page-hero { padding: 66px 28px 62px; }
html[dir="rtl"] .page-hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.4;
  max-width: 24ch;
  color: #fff;
}
html[dir="rtl"] .page-hero .lead { color: #cdded9; font-size: 1.06rem; line-height: 1.95; }
html[dir="rtl"] .page-hero .badge {
  background: rgba(217, 174, 99, .1);
  border: 1px solid rgba(217, 174, 99, .4);
  color: #f0d9ac;
  border-radius: 999px;
  font-weight: 600;
  font-size: .78rem;
  padding: 6px 14px;
}

/* --------------------------------------------------------------- sections -- */
html[dir="rtl"] .section { padding: 88px 0; }
html[dir="rtl"] .section-alt {
  /* no ornament under running text: keeps notes and tables legible */
  background: linear-gradient(180deg, #faf8f2 0%, #f6f2e8 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
html[dir="rtl"] .section-head { margin-bottom: 48px; }
html[dir="rtl"] .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid rgba(18, 129, 127, .18);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
html[dir="rtl"] .section-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--gold);
}
html[dir="rtl"] .section-title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.45;
  color: var(--navy-deep);
}
html[dir="rtl"] .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  border-radius: 3px;
  background: linear-gradient(270deg, var(--gold-2), transparent);
}
html[dir="rtl"] .section-head.center .section-title::after { margin-inline: auto; }
html[dir="rtl"] .section-sub { color: var(--slate); font-size: 1.02rem; line-height: 2; }

/* ----------------------------------------------------------------- cards -- */
html[dir="rtl"] .card,
html[dir="rtl"] .prod-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
html[dir="rtl"] .card:hover,
html[dir="rtl"] .prod-card:hover {
  border-color: rgba(184, 137, 60, .55);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
html[dir="rtl"] .card-img,
html[dir="rtl"] .card-media,
html[dir="rtl"] .case-img { border-bottom: 1px solid var(--line); }
html[dir="rtl"] .card-body { padding: 24px 26px 26px; }
html[dir="rtl"] .card-title { font-size: 1.2rem; line-height: 1.6; }
html[dir="rtl"] .card-text { font-size: .98rem; line-height: 1.95; color: var(--ink-2); }
html[dir="rtl"] .card-eyebrow { color: var(--gold); font-weight: 700; font-size: .82rem; }
html[dir="rtl"] .card-link,
html[dir="rtl"] .arrow-link {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .94rem;
  border-radius: 8px;
}
html[dir="rtl"] .card-link:hover { background: var(--accent-dark); color: #fff; }

html[dir="rtl"] .prod-card-body { padding: 22px 24px 26px; }
html[dir="rtl"] .prod-card-body h3 { font-size: 1.12rem; line-height: 1.6; }
html[dir="rtl"] .prod-card-body p { font-size: .95rem; line-height: 1.9; color: var(--ink-2); }
html[dir="rtl"] .prod-card-body span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 12px;
  text-transform: none;
}
html[dir="rtl"] .prod-card:hover .prod-card-body span {
  background: var(--gold);
  border-color: var(--gold);
  color: #241705;
}

/* badges → rounded certification pills */
html[dir="rtl"] .badge {
  border-radius: 999px;
  border: 1px solid rgba(184, 137, 60, .45);
  background: var(--gold-soft);
  color: #5a3f12;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
}
html[dir="rtl"] .badge-list { gap: 8px; }
html[dir="rtl"] .badge-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
html[dir="rtl"] .badge-title { color: var(--navy); }

/* ------------------------------------------------------------------ cta ---- */
html[dir="rtl"] .cta-band {
  border-radius: var(--radius-lg);
  padding: 52px 52px;
  overflow: hidden;
  border: 1px solid rgba(217, 174, 99, .35);
}
html[dir="rtl"] .cta-band::after {
  background: linear-gradient(270deg, rgba(7, 38, 39, .96) 0%, rgba(7, 38, 39, .84) 46%, rgba(7, 38, 39, .5) 100%);
}
html[dir="rtl"] .cta-band h3 { font-size: 1.58rem; line-height: 1.55; max-width: 30ch; }
html[dir="rtl"] .cta-band p { font-size: 1rem; line-height: 1.95; }
html[dir="rtl"] .cta-band .cta-actions .btn:first-child {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border: 0;
  color: #2a1c05;
}
html[dir="rtl"] .cta-band .cta-actions .btn:first-child:hover {
  background: linear-gradient(135deg, #e8c685, #c99a48);
  color: #201404;
}

/* ------------------------------------------------------------------ faq ---- */
html[dir="rtl"] .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
html[dir="rtl"] .faq-q {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.8;
  padding: 20px 24px 20px 56px;
  color: var(--navy-deep);
}
html[dir="rtl"] .faq-q::after { color: var(--gold); font-size: 1.5rem; }
html[dir="rtl"] .faq-a { font-size: .98rem; line-height: 2; padding: 0 24px 22px; }

/* -------------------------------------------------------------- sidebar ---- */
html[dir="rtl"] .sidebar-nav h2,
html[dir="rtl"] .sidebar-group h3 {
  color: var(--slate);
  font-size: .82rem;
  font-weight: 700;
  border-bottom: 1px solid var(--gold-soft);
}
html[dir="rtl"] .sidebar-group li a {
  border-radius: 0 8px 8px 0;
  border-left: 0;
  border-right: 2px solid transparent;
  padding-left: 10px;
  padding-right: 12px;
  font-size: .94rem;
  line-height: 1.8;
}
html[dir="rtl"] .sidebar-group li a:hover { background: var(--accent-light); }
html[dir="rtl"] .sidebar-group li a[aria-current="page"] {
  border-right-color: var(--gold);
  background: var(--accent-light);
  color: var(--navy-deep);
}
html[dir="rtl"] .sidebar-cta .btn { border-radius: 10px; }

/* --------------------------------------------------------------- tables ---- */
html[dir="rtl"] .data-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  padding: 14px 16px;
}
html[dir="rtl"] .data-table td { font-size: .95rem; line-height: 1.8; padding: 13px 16px; }
html[dir="rtl"] .data-table tr:nth-child(even) td { background: #faf8f3; }

/* ------------------------------------------------------------------ footer */
html[dir="rtl"] .site-footer {
  background: var(--night);
  background-image: linear-gradient(180deg, #083031 0%, #062021 100%), var(--girih);
  background-size: cover, 190px 190px;
  color: #a9c5bf;
  border-top: 3px solid var(--gold);
  font-size: .95rem;
}
html[dir="rtl"] .site-footer .btn {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  color: #241705;
  font-weight: 800;
  border-radius: 999px;
}
html[dir="rtl"] .site-footer .btn:hover {
  background: linear-gradient(135deg, #e8c685, #c99a48);
  color: #1d1203;
}
html[dir="rtl"] .site-footer > .container,
html[dir="rtl"] .footer-bottom > .container { position: relative; z-index: 1; }
html[dir="rtl"] .footer-title {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(217, 174, 99, .28);
  display: inline-block;
  min-width: 64px;
}
html[dir="rtl"] .site-footer a { color: #cfe1dc; }
html[dir="rtl"] .site-footer a:hover { color: var(--gold-2); }
html[dir="rtl"] .footer-brand-name { color: #fff; }
html[dir="rtl"] .footer-brand-desc { line-height: 2; color: #a9c5bf; }
html[dir="rtl"] .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); color: #8fada8; }

/* ------------------------------------------------------------ typo polish -- */
html[dir="rtl"] .content-prose p,
html[dir="rtl"] .content-prose li { line-height: 2.05; }
html[dir="rtl"] .content-prose h2 { margin-top: 2.2em; }
html[dir="rtl"] .check-list li::before,
html[dir="rtl"] .checklist li::before { color: var(--gold); }

/* keep Latin runs (standards, model codes) in Inter with a hair of breathing room */
html[dir="rtl"] .content-prose .latin,
html[dir="rtl"] .data-table .code { font-family: "Inter", var(--font-body); }

/* ------------------------------------------------------------------- RTL fix */
html[dir="rtl"] .hero-facts { text-align: right; }
html[dir="rtl"] .cta-band { text-align: right; }

/* --------------------------------------------------- injected trust strip -- */
.fa-trustbar {
  background: linear-gradient(90deg, #0d3b40, #12545a);
  color: #e8f2ee;
  font-size: .84rem;
  border-bottom: 1px solid rgba(217, 174, 99, .3);
}
.fa-trustbar .fa-trustbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.fa-trustbar__list {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fa-trustbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.fa-trustbar__list li svg { width: 15px; height: 15px; color: var(--gold-2); flex: none; }
.fa-trustbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.fa-trustbar__cta:hover { color: var(--gold-2); }

/* ------------------------------------------------- floating contact rail -- */
.fa-dock {
  position: fixed;
  z-index: 2147483000;
  inset-inline-start: 18px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.fa-dock.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fa-dock a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(7, 38, 39, .28);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
}
.fa-dock a svg { width: 24px; height: 24px; }
.fa-dock a:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(7, 38, 39, .34); }
.fa-dock .fa-dock--wa { background: #22b35c; }
.fa-dock .fa-dock--tg { background: #229ed9; }
.fa-dock .fa-dock--tel { background: #12545a; }
.fa-dock .fa-dock--quote {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #241705;
  font-weight: 800;
  font-size: .76rem;
  line-height: 1.3;
  text-align: center;
  padding: 0 6px;
}
.fa-dock .fa-dock__label {
  position: absolute;
  inset-inline-start: 62px;
  background: rgba(7, 38, 39, .92);
  color: #fff;
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}
.fa-dock a { position: relative; }
.fa-dock a:hover .fa-dock__label { opacity: 1; transform: none; }

/* ------------------------------------------------------ mobile action bar -- */
.fa-mobilebar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 2147483000;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(13, 59, 64, .12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
  grid-template-columns: 1fr 1fr 1.35fr;
}
.fa-mobilebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 4px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.fa-mobilebar a svg { width: 18px; height: 18px; }
.fa-mobilebar .fa-mb--tel { background: #eef5f2; color: #12545a; }
.fa-mobilebar .fa-mb--wa { background: #eaf8ef; color: #178c49; }
.fa-mobilebar .fa-mb--quote { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241705; }

@media (max-width: 860px) {
  .fa-mobilebar { display: grid; }
  .fa-dock { display: none; }
  body { padding-bottom: 68px; }
}

/* ------------------------------------------------------- responsive pass -- */
@media (max-width: 1024px) {
  html[dir="rtl"] .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[dir="rtl"] .section { padding: 68px 0; }
  html[dir="rtl"] .cta-band { padding: 38px 28px; }
}
@media (max-width: 640px) {
  html[dir="rtl"] body { font-size: 16.5px; }
  html[dir="rtl"] .hero-inner { padding: 72px 18px 64px; }
  html[dir="rtl"] .hero-title { font-size: 1.95rem; line-height: 1.5; max-width: none; }
  html[dir="rtl"] .hero-sub { font-size: 1rem; }
  html[dir="rtl"] .hero-facts { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
  html[dir="rtl"] .hero-facts div { font-size: .8rem; }
  html[dir="rtl"] .hero-facts b { font-size: 1.3rem; }
  html[dir="rtl"] .section { padding: 52px 0; }
  html[dir="rtl"] .section-title { font-size: 1.42rem; }
  html[dir="rtl"] .hero::after,
  html[dir="rtl"] .page-hero::after { width: 60%; opacity: .35; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fa-dock, html[dir="rtl"] .card, html[dir="rtl"] .prod-card, html[dir="rtl"] .btn { transition: none !important; }
}

/* ---------------------------------------------------------------
   V3 refinements: readable photo tiles, brand harmonisation,
   single primary action colour, softer ornament
   --------------------------------------------------------------- */
html[dir="rtl"] .ind-tile::after {
  background: linear-gradient(0deg, rgba(4,26,28,.96) 0%, rgba(4,26,28,.80) 42%, rgba(4,26,28,.30) 78%, rgba(4,26,28,.04) 100%);
}
html[dir="rtl"] .ind-tile img { opacity: .88; }
html[dir="rtl"] .ind-tile-body p {
  color: #d3e4e0;
  font-size: .9rem;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
html[dir="rtl"] .ind-tile-body h3 { text-shadow: 0 1px 3px rgba(0,0,0,.5); }
html[dir="rtl"] .ind-tile-body span {
  margin-top: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(217,174,99,.6);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  background: rgba(184,137,60,.12);
  transition: background .2s, color .2s;
}
html[dir="rtl"] .ind-tile:hover .ind-tile-body span {
  background: var(--gold);
  border-color: var(--gold);
  color: #241705;
}

/* one primary action colour across the site: gold = act, teal = navigate */
html[dir="rtl"] .hero .btn,
html[dir="rtl"] .page-hero .btn,
html[dir="rtl"] .cta-band .btn {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  color: #241705;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(184,137,60,.32);
}
html[dir="rtl"] .hero .btn:hover,
html[dir="rtl"] .page-hero .btn:hover,
html[dir="rtl"] .cta-band .btn:hover {
  background: linear-gradient(135deg, #e9c988, #c9984a);
  color: #1d1203;
}

/* brand mark: shift the corporate blue toward the Persian teal palette */
html[dir="rtl"] .brand-logo {
  filter: hue-rotate(-34deg) saturate(.78);
}

/* credentials + record band: bring them onto the same soft-card language */
html[dir="rtl"] .cert-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(13,59,64,.06);
}
html[dir="rtl"] .cert-item:hover { box-shadow: 0 16px 38px rgba(13,59,64,.12); }
html[dir="rtl"] .cert-item figure {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fcfaf5;
}
html[dir="rtl"] .cert-item h3 { font-size: 1rem; color: var(--navy); }
html[dir="rtl"] .cert-item p { color: var(--slate); line-height: 1.85; }
html[dir="rtl"] .cert-item.wide { border-radius: 16px; }
html[dir="rtl"] .record-band { border-top: 1px solid var(--line); }
html[dir="rtl"] .record-head h3 { font-size: 1.55rem; }
html[dir="rtl"] .record-list li { border-bottom: 1px dashed rgba(13,59,64,.14); }

/* footer CTA button: keep the label on one line */
html[dir="rtl"] .site-footer .btn {
  white-space: nowrap;
  font-size: .9rem;
  line-height: 1.6;
  padding: 11px 22px;
}

/* enquiry iframe: give the remote form a comfortable frame */
html[dir="rtl"] .enquiry-embed iframe {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* primary CTA everywhere: gold (one action colour), WhatsApp stays green outline */
html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-secondary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  color: #241705;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(184,137,60,.28);
}
html[dir="rtl"] .btn-primary:hover,
html[dir="rtl"] .btn-secondary:hover {
  background: linear-gradient(135deg, #e9c988, #c9984a);
  border-color: transparent;
  color: #1d1203;
}

/* trustbar on phones: one scrolling row instead of five stacked lines */
@media (max-width: 860px) {
  html[dir="rtl"] .fa-trustbar { padding: 0; }
  html[dir="rtl"] .fa-trustbar .fa-trustbar__inner {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html[dir="rtl"] .fa-trustbar .fa-trustbar__inner::-webkit-scrollbar { display: none; }
  html[dir="rtl"] .fa-trustbar__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    padding: 8px 16px;
    margin: 0;
  }
  html[dir="rtl"] .fa-trustbar__list li {
    white-space: nowrap;
    font-size: .72rem;
    border: 0;
    padding: 0;
  }
  html[dir="rtl"] .fa-trustbar__list li + li { border-inline-start: 1px solid rgba(255,255,255,.14); padding-inline-start: 18px; }
  html[dir="rtl"] .fa-trustbar__cta { display: none; }
}

/* enquiry form fallback strip (rendered by fa-theme.js) */
html[dir="rtl"] .fa-formfallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(13,59,64,.14);
  border-radius: 12px;
  background: #f5f2e9;
  font-size: .86rem;
  color: #41565c;
}
html[dir="rtl"] .fa-formfallback span { color: #5b7079; }
html[dir="rtl"] .fa-formfallback a {
  color: #8a6a24;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(184,137,60,.5);
  padding-bottom: 1px;
}
html[dir="rtl"] .fa-formfallback a:hover { color: #5f4715; border-bottom-color: #5f4715; }

/* purely Latin blocks inside the Persian page: keep their own direction */
html[dir="rtl"] .fa-ltr,
html[dir="rtl"] [dir="ltr"].fa-ltr {
  text-align: start;
  unicode-bidi: isolate;
}

/* ------------------------------------------------------- language menu ---- */
/* the topbar link colour was painting the picker white-on-white */
html[dir="rtl"] .topbar .lang-dropdown a { color: var(--ink-2); }
html[dir="rtl"] .topbar .lang-dropdown a:hover { color: var(--navy); background: var(--mist); }
html[dir="rtl"] .topbar .lang-dropdown a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }
/* one predictable order for the rows: flag, native name, code */
html[dir="rtl"] .topbar .lang-dropdown {
  direction: ltr;
  background: #fff;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 12px 12px;
}
html[dir="rtl"] .lang-dropdown li a { justify-content: flex-start; }
html[dir="rtl"] .lang-dropdown .lang-native {
  unicode-bidi: plaintext;
  color: var(--ink);
  font-weight: 600;
}
html[dir="rtl"] .lang-dropdown .lang-code {
  margin-inline-start: auto;
  color: var(--slate);
  font-weight: 700;
}
