@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&display=swap');

/* ============================================================
   rtl.css — Arabic
   Loaded INSTEAD of ltr.css. app.css is the pre-compiled Tailwind
   from the Persian original, which is already right-to-left, so
   this file only has to do two things: put an Arabic face behind
   the "Yekan *" family names, and mirror the components that were
   authored left-to-right after the English build began.

   Nothing here edits app.css, so the Persian site can still be
   rebuilt from the same Tailwind source.
   ============================================================ */

@font-face{font-family:"Yekan Light";src:local("Cairo Light"),local("Cairo");font-weight:300 400}
@font-face{font-family:"Yekan";src:local("Cairo");font-weight:400 600}
@font-face{font-family:"Yekan Regular";src:local("Cairo");font-weight:400 600}
@font-face{font-family:"Yekan Medium";src:local("Cairo Medium"),local("Cairo");font-weight:500 700}
@font-face{font-family:"Yekan Bold";src:local("Cairo SemiBold"),local("Cairo");font-weight:600 800}
@font-face{font-family:"Yekan ExtraBold";src:local("Cairo Bold"),local("Cairo");font-weight:700 900}

/* local() only resolves if the visitor happens to have Cairo installed, so the
   real work is done by naming Cairo ahead of the Yekan aliases. */
html body,
html body [class*="font-Yekan"]{font-family:"Cairo",system-ui,"Segoe UI",sans-serif}

html{direction:rtl}

/* Latin part numbers and figures (figure 90R, 1/2in, BSP) must stay
   left-to-right inside right-to-left prose. */
.fx-spec-val,.fx-table td,.fx-table th,.ex-year,.me-fact__v{
  direction:ltr;unicode-bidi:embed;font-variant-numeric:tabular-nums}

:root{--fam-bsp:#896e65;--fam-pres:#6ecff6;--fam-npt:#236fa3}
:root{--gold:#c9a227;--gold-lt:#e6c46e;--gold-dk:#a8782d}

html body #header .menu ul li a::after{background:var(--gold)}
html body #header .menu ul li a:hover{color:var(--gold-lt)}
html body #header .menu ul li.active a{color:var(--gold-lt)}
html body .mobile-menu ul li a::before{background:var(--gold)}
html body .mobile-menu ul li.active a{color:var(--gold-lt)}
html body .ft{border-top:1px solid #33290f}
html body .ft-h4:after{background:var(--gold)}
html body .ft-list a:hover{color:var(--gold-lt)}
html body .ft-ct a:hover{color:var(--gold-lt)}
.gold-rule{border:0;height:2px;width:56px;border-radius:2px;background:var(--gold);margin:18px 0}

html body #header .logo,
html body #header .hd-logo-link,
html body #header .hd-logo,
html body #header .hd-logo-amini,
html body #header .lockup-rule{flex:0 0 auto}

.quote-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;
  flex-wrap:wrap;background:#061b3e;border:2px solid var(--gold);
  border-radius:32px;padding:28px 32px;margin:32px 0}
.quote-cta__text{flex:1 1 320px;min-width:0}
.quote-cta__title{font-family:"Yekan Bold",sans-serif;color:#fff;font-size:20px;margin:0 0 6px;line-height:1.3}
.quote-cta__sub{color:#8fa3b8;font-size:14.5px;line-height:1.6;margin:0}
.quote-cta__btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;
  background:linear-gradient(135deg,var(--gold-lt),var(--gold));color:#1a1305;
  font-family:"Yekan Bold",sans-serif;font-size:15px;
  padding:13px 26px;border-radius:999px;text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease}
.quote-cta__btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px -12px var(--gold)}
/* the arrow points the other way in Arabic */
.quote-cta__btn svg{width:18px;height:18px;transform:scaleX(-1)}
@media(max-width:630px){.quote-cta{padding:22px;border-radius:24px}
  .quote-cta__btn{width:100%;justify-content:center}}

/* Page banners: DOM order is artwork first, copy second. Arabic reads from the
   right, so the copy has to land there - row-reverse, the same rule the
   English build uses for the opposite reason. */
.pg-hero{flex-direction:row-reverse}
@media(min-width:1025px){.pg-hero__copy{padding-right:0;padding-left:5rem}}

/* Middle East page */
.me-shows{display:flex;align-items:center;justify-content:space-between;gap:36px;
  flex-wrap:wrap;background:#061b3e;border:1px solid #33290f;border-radius:32px;padding:34px 40px}
.me-shows__text{flex:1 1 420px;min-width:0}
.me-shows__h2{color:var(--gold)}
.me-shows__btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;
  border:1px solid var(--gold);color:var(--gold-lt);
  font-family:"Yekan Bold",sans-serif;font-size:15px;
  padding:13px 26px;border-radius:999px;text-decoration:none;
  transition:background .2s ease,color .2s ease,transform .2s ease}
.me-shows__btn:hover{background:linear-gradient(135deg,var(--gold-lt),var(--gold));
  color:#1a1305;transform:translateY(-2px)}
.me-shows__btn svg{width:18px;height:18px;transform:scaleX(-1)}

.me-abt__h2{color:var(--gold)}
.me-abt{display:flex;align-items:flex-start;gap:52px;flex-wrap:wrap;margin-top:6px}
.me-abt__text{flex:1 1 480px;min-width:0}
.me-abt__facts{flex:0 1 330px;list-style:none;margin:0;padding:0;display:grid;gap:14px}
.me-fact{background:#061b3e;border:1px solid #173059;border-right:3px solid var(--gold);
  border-radius:14px;padding:16px 20px;transition:border-color .25s ease}
.me-fact:hover{border-color:var(--gold)}
.me-fact__v{display:block;font-family:"Yekan ExtraBold",sans-serif;font-size:30px;line-height:1;color:var(--gold-lt)}
.me-fact__l{display:block;margin-top:7px;font-size:13.5px;line-height:1.7;color:#8fa3b8}

.tm{display:flex;align-items:stretch;gap:34px;flex-wrap:wrap;margin-top:6px}
.tm__fig{flex:1 1 520px;min-width:0;margin:0 auto;max-width:860px;width:100%}
.tm__fig img{width:100%;height:auto;display:block;border-radius:20px}
.tm__side{flex:1 1 250px;min-width:0;display:flex;flex-direction:column;justify-content:center}
.tm__h3{font-family:"Yekan Bold",sans-serif;font-size:15px;color:#fff;margin:0 0 4px}
.tm__sub{font-size:13px;color:#8fa3b8;margin:0 0 16px}
.tm__list{list-style:none;margin:0 0 20px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:9px 18px}
.tm__list li{position:relative;padding-right:16px;font-size:14.5px;color:#c8d8ea;line-height:1.5}
.tm__list li:before{content:"";position:absolute;right:0;top:7px;width:7px;height:7px;
  border-radius:50%;background:var(--gold)}
.tm__note{border-top:1px solid #173059;padding-top:16px;margin:0;font-size:13.5px;line-height:1.85;color:#8fa3b8}
.tm__note strong{color:var(--gold-lt);font-family:"Yekan Bold",sans-serif;font-weight:normal}
.tm__note a{color:var(--gold-lt);text-decoration:none;border-bottom:1px solid #4a3c14}
@media(max-width:900px){.me-abt{gap:26px}.me-abt__facts{flex:1 1 100%;grid-template-columns:1fr}
  .me-shows{padding:26px 22px;border-radius:24px;gap:22px}
  .me-shows__btn{width:100%;justify-content:center}}
@media(max-width:620px){.tm{gap:22px}.tm__list{grid-template-columns:1fr}}

/* Exhibitions timeline - the spine runs down the right */
.ex{max-width:1120px;margin:0 auto;padding:0 20px 90px}
.ex-list{position:relative;margin:40px 0 0;padding:0;list-style:none}
.ex-list:before{content:"";position:absolute;right:150px;left:auto;top:14px;bottom:14px;width:1px;
  background:linear-gradient(180deg,transparent,#33290f 6%,#33290f 94%,transparent)}
.ex-item{position:relative;display:grid;grid-template-columns:150px 1fr;gap:0 44px;margin:0 0 46px}
.ex-when{text-align:left;padding-top:4px;padding-left:26px;padding-right:0}
.ex-dot{position:absolute;right:145px;left:auto;top:12px;width:11px;height:11px;border-radius:50%;
  background:#04142c;border:2px solid var(--gold)}
.ex-card{grid-template-columns:300px 1fr}
@media(max-width:900px){.ex-list:before{right:8px}
  .ex-item{grid-template-columns:1fr;gap:14px}
  .ex-when{text-align:right;padding-right:34px;padding-left:0}
  .ex-dot{right:3px;top:8px}
  .ex-card{grid-template-columns:1fr}}

/* Language switcher */
.lang-switch{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;
  margin-right:22px;padding:3px;border:1px solid #1d3a68;border-radius:999px}
.lang-switch a{display:inline-block;padding:5px 11px;border-radius:999px;
  font-size:12.5px;line-height:1;color:#8fa3b8;text-decoration:none;white-space:nowrap;
  transition:color .2s ease,background .2s ease}
.lang-switch a:hover{color:#fff}
.lang-switch a.on{color:#1a1305;background:linear-gradient(135deg,var(--gold-lt),var(--gold))}
.lang-switch--drawer{display:flex;width:100%;justify-content:center;margin:0;padding:4px}
.lang-switch--drawer a{padding:9px 14px;font-size:13.5px}
@media(max-width:1550px){.lang-switch{margin-right:14px}
  .lang-switch a{padding:5px 8px;font-size:11.5px}}

/* Header fit - the mirror of ltr.css section 10. Twelve nav items plus the
   lockup plus the language switch overflow the bar without this; the images
   shrink instead of the bar giving way. */
html body #header .menu ul{margin-left:0;margin-right:2.5rem}
@media(max-width:1850px){
  html body #header .hd-logo-link{margin-right:24px;margin-left:0}
  html body #header .menu ul{margin-right:24px}
}
@media(max-width:1550px){
  html body #header .menu ul{gap:15px}
  html body #header .menu ul li a{font-size:14px}
}
@media(max-width:1240px){
  html body #header .menu ul{gap:11px}
  html body #header .menu ul li a{font-size:13px}
}

/* Mobile drawer slides in from the right in Arabic. */
html body .mobile-menu{right:0!important;left:auto!important;transform:translateX(105%)}
html body .mobile-menu.open{transform:translateX(0)}
html body .mobile-menu ul li{text-align:right!important}
html body .mobile-menu ul li a::before{right:0;left:auto}

/* ------------------------------------------------------------
   15. Language button
   A globe + the current code, opening a small menu. Twelve nav
   items already fill the bar, so three inline links do not fit -
   the button collapses the choice into one control and only the
   open menu takes space.
   ------------------------------------------------------------ */
.lang{position:relative;flex:0 0 auto;margin-left:20px}

.lang__btn{
  display:inline-flex;align-items:center;gap:7px;cursor:pointer;
  background:transparent;border:1px solid #1d3a68;border-radius:999px;
  padding:7px 12px;color:#c8d8ea;font-family:inherit;font-size:13px;
  line-height:1;transition:border-color .2s ease,color .2s ease;
}
.lang__btn:hover{border-color:var(--gold);color:#fff}
.lang__globe{width:16px;height:16px;flex:0 0 auto}
.lang__code{letter-spacing:.06em}
.lang__caret{width:13px;height:13px;flex:0 0 auto;transition:transform .25s ease}
.lang.open .lang__btn{border-color:var(--gold);color:#fff}
.lang.open .lang__caret{transform:rotate(180deg)}

.lang__menu{
  position:absolute;top:calc(100% + 10px);right:0;z-index:60;
  min-width:172px;margin:0;padding:6px;list-style:none;
  background:#061b3e;border:1px solid #1d3a68;border-radius:14px;
  box-shadow:0 18px 40px -16px rgba(0,0,0,.7);
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
}
.lang.open .lang__menu{opacity:1;visibility:visible;transform:none}
.lang__menu a{
  display:block;padding:10px 14px;border-radius:9px;
  font-size:14px;color:#c8d8ea;text-decoration:none;white-space:nowrap;
  transition:background .18s ease,color .18s ease;
}
.lang__menu a:hover{background:#0a2247;color:#fff}
.lang__menu a.on{color:#1a1305;background:linear-gradient(135deg,var(--gold-lt),var(--gold))}

@media(max-width:1550px){
  .lang{margin-left:12px}
  .lang__btn{padding:6px 9px;font-size:12px;gap:5px}
  .lang__globe{width:14px;height:14px}
}

/* The drawer has room, so it lists the languages outright. */
.lang-switch--drawer{display:flex;width:100%;justify-content:center;gap:2px;
  padding:4px;border:1px solid #1d3a68;border-radius:999px}
.lang-switch--drawer a{padding:9px 14px;border-radius:999px;font-size:13.5px;
  color:#8fa3b8;text-decoration:none;transition:color .2s ease,background .2s ease}
.lang-switch--drawer a:hover{color:#fff}
.lang-switch--drawer a.on{color:#1a1305;background:linear-gradient(135deg,var(--gold-lt),var(--gold))}

/* Language button, mirrored: menu hangs from the left edge. */
.lang{margin-left:0;margin-right:20px}
.lang__menu{right:auto;left:0}
@media(max-width:1550px){.lang{margin-right:12px;margin-left:0}}

/* Mirror of the ltr rule: the product photo is on the left in Arabic. */
.badge-brazil{right:auto;left:4.5%}
