
/* ===================================================================
   Round 11 portfolio fixes (supersedes round 10)
   =================================================================== */

/* trusted-by directory link — preserved from round 10 */
.trusted-by__directory-link{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.trusted-by__directory-link a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text, #1a1a1a);
  text-decoration: none;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--line, rgba(0,0,0,0.12));
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.trusted-by__directory-link a:hover{
  background: var(--red, #e60023);
  border-color: var(--red, #e60023);
  color: #fff;
}
.trusted-by__directory-link a svg{
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
}
:root[lang="ar"] .trusted-by__directory-link a svg,
[dir="rtl"]      .trusted-by__directory-link a svg{
  transform: scaleX(-1);
}

/* AR featured-card metrics — preserved from round 10 */
:root[lang="ar"] .cases-featured__metrics,
[dir="rtl"]      .cases-featured__metrics{
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1px !important;
}
:root[lang="ar"] .cases-featured__metric,
[dir="rtl"]      .cases-featured__metric{
  flex: 0 1 auto !important;
  min-width: 0 !important;
}
:root[lang="ar"] .cases-featured__metric-label,
[dir="rtl"]      .cases-featured__metric-label{
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

/* (1) AR hero stat colors — suffix RED, value WHITE/cream.
       Drop the round-9/10 explicit-cream override on the suffix so
       var(--red) wins. */
:root[lang="ar"] .cap-hero__stat-value,
[dir="rtl"]      .cap-hero__stat-value{
  color: #F5F2EA !important;       /* value stays cream/white */
}
:root[lang="ar"] .cap-hero__stat-suffix,
[dir="rtl"]      .cap-hero__stat-suffix,
:root[lang="ar"] .cap-hero__stat-value .cap-hero__stat-suffix,
[dir="rtl"]      .cap-hero__stat-value .cap-hero__stat-suffix{
  color: var(--red, #e60023) !important;
}

/* (2) Do NOT override direction on .cap-hero__stat-value — natural RTL
       bidi puts '+' / '%' on the LEFT of the digits (general Arabic rule
       the user asked us to follow). */

/* (3) Right-align each stat block in AR */
:root[lang="ar"] .cap-hero__stat,
[dir="rtl"]      .cap-hero__stat{
  text-align: right !important;
}
:root[lang="ar"] .cap-hero__stat-label,
[dir="rtl"]      .cap-hero__stat-label{
  text-align: right !important;
}

/* Round 12: featured-card metric suffix colour (AR) — matches hero-stat treatment */
:root[lang="ar"] .cases-featured__metric-suffix,
[dir="rtl"]      .cases-featured__metric-suffix {
  color: var(--red, #e60023) !important;
}

/* === Solutions mega-4 dropdown (added) ========================================
   4-column variant of the existing nav mega menu, plus optional 'sub-title as
   link' styling for clickable category headings.                              */
.nav__dropdown--mega-4 .nav__dropdown-mega-grid{
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}
.nav__dropdown--mega-4{
  /* Center the 4-column dropdown under the Solutions nav item (LTR).
     Override the parent .nav__dropdown--mega left:0 anchoring. */
  left:50%;
  right:auto;
  transform:translate(-50%, -8px);
  min-width:1080px;
  max-width:calc(100vw - 64px);
}
.nav__item-wrap:hover .nav__dropdown--mega-4,
.nav__item-wrap:focus-within .nav__dropdown--mega-4{
  transform:translate(-50%, 0);
}
/* RTL: there's a higher-specificity rule [dir="rtl"] .nav__dropdown--mega
   {right:0 !important} that wins, so use a stronger selector to anchor
   the centered version under the Solutions item in RTL too. */
[dir="rtl"] .nav__dropdown--mega.nav__dropdown--mega-4,
:root[lang="ar"] .nav__dropdown--mega.nav__dropdown--mega-4{
  right:50% !important;
  left:auto !important;
  transform:translate(50%, -8px);
}
[dir="rtl"] .nav__item-wrap:hover .nav__dropdown--mega.nav__dropdown--mega-4,
[dir="rtl"] .nav__item-wrap:focus-within .nav__dropdown--mega.nav__dropdown--mega-4,
:root[lang="ar"] .nav__item-wrap:hover .nav__dropdown--mega.nav__dropdown--mega-4,
:root[lang="ar"] .nav__item-wrap:focus-within .nav__dropdown--mega.nav__dropdown--mega-4{
  transform:translate(50%, 0);
}
.nav__dropdown-title--link{
  color:var(--text);
  text-decoration:none;
  transition:color 0.25s ease;
}
.nav__dropdown-title--link:hover{
  color:var(--red);
}
.m-drawer__sub-title--link{
  /* Inherit base sub-title styling (drawer is dark-themed) but make it a link. */
  font-family:var(--font-mono);
  font-size:10px;
  font-weight:500;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(245,242,234,0.55);
  padding:14px 0 8px;
  border-top:1px solid rgba(245,242,234,0.05);
  margin-top:6px;
  display:block;
  text-decoration:none;
  transition:color 0.25s ease;
}
.m-drawer__sub:first-child .m-drawer__sub-title--link:first-child,
.m-drawer__sub-title--link:first-child{
  border-top:0;
  margin-top:0;
  padding-top:6px;
}
.m-drawer__sub-title--link:hover{color:#F5F2EA;}
/* Tablet/mobile fallback for the desktop mega-4 when viewport is narrow but
   the desktop nav is still visible (e.g. ~960–1180px). Drop to 2 columns. */
@media (max-width:1180px){
  .nav__dropdown--mega-4{min-width:0;width:calc(100vw - 64px);}
  .nav__dropdown--mega-4 .nav__dropdown-mega-grid{grid-template-columns:repeat(2,1fr);}
}
/* ============================================================================ */

