/* ---------- TOKENS ---------- */
:root {
  --ink: #0a1628;
  --ink-2: #1e2a3d;
  --muted: #5a6b80;
  --line: #e3e8ef;
  --bg: #fafbfc;
  --bg-2: #ffffff;
  --brand: #1f4d7a;
  --brand-2: #2b6aa3;
  --brand-deep: #0f2e4f;
  --accent: #c89b3c;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 2px 8px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.06), 0 12px 32px rgba(10, 22, 40, 0.05);
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter Tight", -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

.display, h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

p { color: var(--ink-2); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Fraunces", serif;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-logo {
  height: 42px; width: auto; display: block;
}
.brand-name {
  font-family: "Fraunces", serif;
  font-size: 20px; letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 500;
}
.brand-sub {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  margin-left: 2px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-2);
  position: relative; padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand);
}
.nav-cta {
  background: var(--ink); color: white;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; }
.nav-cta:hover { background: var(--brand); transform: translateY(-1px); }

/* mobile nav */
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: 0.3s;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: white; border-bottom: 1px solid var(--line);
    padding: 12px 28px 24px; align-items: flex-start;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: 0.25s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { width: 100%; text-align: center; margin-top: 8px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer; border: 0;
}
.btn-primary {
  background: var(--ink); color: white;
}
.btn-primary:hover { background: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow {
  width: 18px; height: 18px; transition: transform 0.25s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- HERO (Home) ---------- */
.hero {
  padding: 88px 0 96px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(30,111,184,0.08), transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(13,77,140,0.06), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px;
  align-items: center; position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); font-weight: 500;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--brand);
}
.hero-lede {
  font-size: 18px; max-width: 540px;
  color: var(--ink-2); margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 480px;
  margin-left: auto;
}
.hero-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 22px;
}
.hero-card.c1 {
  top: 0; right: 0; width: 78%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: white; border: 0;
  aspect-ratio: 1.1 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-card.c1 .big {
  font-family: "Fraunces", serif; font-size: 56px;
  font-style: italic; line-height: 0.95; letter-spacing: -0.03em;
}
.hero-card.c1 .lbl { font-size: 13px; opacity: 0.85; max-width: 200px; }
.hero-card.c2 {
  bottom: 8%; left: 0; width: 62%;
}
.hero-card.c2 .num {
  font-family: "Fraunces", serif; font-size: 38px;
  letter-spacing: -0.02em; color: var(--brand);
}
.hero-card.c2 .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hero-card.c3 {
  bottom: 0; right: 6%; width: 46%;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.hero-card.c3 .ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: #f0f6fc; display: grid; place-items: center;
  color: var(--brand);
}
.hero-card.c3 .lbl { font-size: 13px; color: var(--ink-2); font-weight: 500; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual {
    margin: 0 auto;
    position: static;
    aspect-ratio: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-card {
    position: static;
    width: 100% !important;
    aspect-ratio: auto !important;
  }
  .hero-card.c1 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
  }
  .hero-card.c1 .big { font-size: 40px; }
  .hero-card.c1 .lbl { max-width: none; margin-top: 8px; }
  .hero-card.c2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .hero-card.c2 .num { font-size: 32px; }
  .hero-card.c2 .lbl { margin-top: 0; flex: 1; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  margin-bottom: 18px;
}
.section-head p { font-size: 17px; color: var(--ink-2); }

/* pillar cards */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillar {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-num {
  font-family: "Fraunces", serif; font-style: italic;
  color: var(--brand); font-size: 20px;
  margin-bottom: 28px;
}
.pillar h3 {
  font-size: 26px; margin-bottom: 14px;
}
.pillar p { font-size: 15px; color: var(--ink-2); flex: 1; }
.pillar .more {
  margin-top: 22px; font-size: 14px; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.pillar .more svg { transition: transform 0.25s; }
.pillar:hover .more svg { transform: translateX(4px); }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
}

/* stats strip */
.stats {
  background: var(--ink);
  color: white;
  padding: 72px 0;
  position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(30,111,184,0.25), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(200,155,60,0.08), transparent 70%);
}
.stats-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.stat .num {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: clamp(44px, 5vw, 64px); line-height: 1;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 12px;
}
.stat .num em { color: var(--accent); font-style: italic; }
.stat .lbl { font-size: 14px; color: rgba(255,255,255,0.7); }

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand { color: white; margin-bottom: 18px; }
.footer .brand-name { color: white; }
.footer .brand-sub { color: rgba(255,255,255,0.5); }
.footer .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-blurb { font-size: 14.5px; max-width: 320px; }
.footer h4 {
  font-family: "Inter Tight", sans-serif;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: white; margin-bottom: 18px; font-weight: 600;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14.5px; transition: color 0.2s; }
.footer ul a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px;
}
.footer-bottom .meta { color: rgba(255,255,255,0.5); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- PAGE HEADER (subpages) ---------- */
.page-head {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #f4f7fb 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute;
  top: -50%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,77,140,0.06), transparent 60%);
  pointer-events: none;
}
.page-head .inner { position: relative; max-width: 820px; }
.page-head h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  margin: 14px 0 18px;
}
.page-head h1 em { font-style: italic; color: var(--brand); font-variation-settings: "opsz" 144, "SOFT" 100; }
.page-head p { font-size: 18px; max-width: 620px; }

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: white;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(10, 22, 40, 0.12);
  text-decoration: none;
  font-family: "Inter Tight", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, background 0.25s;
  animation: wa-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}
.wa-float:hover {
  background: #1ebe57;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(10, 22, 40, 0.15);
  color: white;
}
.wa-float .wa-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.wa-float .wa-label {
  white-space: nowrap;
}
.wa-float .wa-pulse {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border: 2px solid white;
  border-radius: 50%;
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Hide label on mobile, show icon only */
@media (max-width: 600px) {
  .wa-float {
    padding: 14px;
    bottom: 20px;
    right: 20px;
  }
  .wa-float .wa-label {
    display: none;
  }
  .wa-float .wa-icon {
    width: 28px;
    height: 28px;
  }
}

/* ---------- ANIMATIONS ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.45s; }

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 14px;
}
.lang-switch a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s;
  line-height: 1;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active {
  background: var(--brand);
  color: white;
}

@media (max-width: 900px) {
  .lang-switch {
    margin: 14px 0 0 0;
    width: fit-content;
  }
}

/* ---------- ARABIC / RTL SUPPORT ---------- */
html[dir="rtl"] body {
  font-family: "Noto Kufi Arabic", "Inter Tight", sans-serif;
}
html[dir="rtl"] .display,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: "Noto Kufi Arabic", "Fraunces", Georgia, serif;
  font-style: normal !important;
}
html[dir="rtl"] em {
  font-style: normal;
  color: var(--brand);
}

/* RTL navigation */
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 14px; }

/* RTL arrows flip */
html[dir="rtl"] .arrow,
html[dir="rtl"] .more svg,
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* RTL borders flip */
html[dir="rtl"] .svc-item:nth-child(odd) {
  padding-right: 0;
  padding-left: 32px;
}
html[dir="rtl"] .svc-item:nth-child(even) {
  padding-left: 0;
  padding-right: 32px;
  border-left: 0;
  border-right: 1px solid var(--line);
}
html[dir="rtl"] .value {
  border-right: 0;
  border-left: 1px solid var(--line);
}
html[dir="rtl"] .value:last-child { border-left: 0; }
html[dir="rtl"] .sectors-strip-grid > div {
  border-right: 0 !important;
  border-left: 1px solid var(--line);
}
html[dir="rtl"] .sectors-strip-grid > div:last-child { border-left: 0; }

/* RTL license card */
html[dir="rtl"] .license-row .v { text-align: left; }

/* RTL WhatsApp button - keep on left side in RTL */
html[dir="rtl"] .wa-float {
  right: auto;
  left: 24px;
}

/* RTL hero */
html[dir="rtl"] .hero-card .lbl,
html[dir="rtl"] .info-block .lbl {
  letter-spacing: 0;
}

/* ---------- SECTOR DETAIL PAGES ---------- */
.sector-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--ink);
}
.sector-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.sector-hero .sector-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 56px;
}
.sector-hero .sector-hero-content .wrap { width: 100%; }
.sector-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.sector-hero .back-link:hover { color: white; }
.sector-hero .back-link svg {
  width: 16px; height: 16px;
}
.sector-hero .eyebrow {
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.sector-hero .eyebrow .dot { background: var(--accent); }
.sector-hero h1 {
  color: white;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-family: "Fraunces", serif;
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
  max-width: 900px;
}
.sector-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.sector-hero .hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 640px;
}

.sector-body {
  padding: 88px 0 64px;
}
.sector-content-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 72px;
  align-items: start;
}
.sector-content-grid .prose h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.sector-content-grid .prose h2:not(:first-child) {
  margin-top: 56px;
}
.sector-content-grid .prose p {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 18px;
}
.sector-content-grid .prose ul {
  list-style: none;
  margin: 24px 0 12px;
}
.sector-content-grid .prose ul li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.sector-content-grid .prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 16px; height: 1px;
  background: var(--brand);
}
.sector-content-grid .prose ul li strong {
  color: var(--ink);
  font-weight: 500;
}

.sector-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.sector-sidebar .lbl {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}
.sector-sidebar h3 {
  font-size: 22px;
  margin-bottom: 18px;
  font-family: "Fraunces", serif;
  letter-spacing: -0.005em;
}
.sector-sidebar p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 22px;
}
.sector-sidebar .sidebar-meta {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
}
.sector-sidebar .sidebar-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  padding: 10px 0;
}
.sector-sidebar .sidebar-meta-row .k {
  color: var(--muted);
}
.sector-sidebar .sidebar-meta-row .v {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
.sector-sidebar .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* OTHER SECTORS */
.other-sectors {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.other-sectors h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.other-sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.other-sector-card {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #e3e8ef;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s, box-shadow 0.4s;
}
.other-sector-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.other-sector-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.other-sector-card:hover img { transform: scale(1.06); }
.other-sector-card .caption {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 45%, rgba(10,22,40,0.9) 100%);
  color: white;
  font-family: "Fraunces", serif;
  font-size: 14px;
  line-height: 1.3;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .sector-hero { height: 380px; }
  .sector-hero .sector-hero-content { padding-bottom: 40px; }
  .sector-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sector-sidebar { position: static; }
  .other-sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .sector-body { padding: 56px 0 40px; }
}
@media (max-width: 600px) {
  .sector-hero { height: 320px; }
  .other-sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .sector-sidebar { padding: 24px; }
}

/* ---------- SECTOR DETAIL PAGE ---------- */
.sector-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.sector-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.sector-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.35) 0%,
    rgba(10, 22, 40, 0.55) 60%,
    rgba(10, 22, 40, 0.85) 100%
  );
  z-index: -1;
}
.sector-hero .wrap { color: white; }
.sector-hero .crumb {
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}
.sector-hero .crumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.2s, border-color 0.2s;
}
.sector-hero .crumb a:hover {
  color: white;
  border-color: white;
}
.sector-hero .crumb .sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.4);
}
.sector-hero h1 {
  color: white;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 900px;
}
.sector-hero h1 em {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}
.sector-hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
}

/* Sector image backgrounds (via inline style on .sector-hero) */

.sector-body {
  padding: 80px 0 64px;
}
.sector-body-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}
.sector-body-grid .content h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.sector-body-grid .content h2:not(:first-child) {
  margin-top: 56px;
}
.sector-body-grid .content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.sector-body-grid .content p strong { color: var(--ink); font-weight: 600; }

.sector-body-grid .content ul.scope-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.sector-body-grid .content ul.scope-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}
.sector-body-grid .content ul.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 18px;
  height: 2px;
  background: var(--brand);
}
.sector-body-grid .content ul.scope-list li:last-child { border-bottom: 0; }

/* Sidebar */
.sector-sidebar {
  position: sticky;
  top: 100px;
}
.sector-sidebar .card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.sector-sidebar .card .lbl {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 14px;
}
.sector-sidebar .card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.sector-sidebar .card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.sector-sidebar .card .btn { width: 100%; justify-content: center; }
.sector-sidebar .meta-list {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.sector-sidebar .meta-list .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.sector-sidebar .meta-list .row:last-child { border-bottom: 0; }
.sector-sidebar .meta-list .row .k { color: var(--muted); }
.sector-sidebar .meta-list .row .v { color: var(--ink); font-weight: 500; text-align: right; }

/* Related sectors */
.related-sectors {
  padding: 80px 0 96px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.related-sectors .head {
  text-align: center;
  margin-bottom: 48px;
}
.related-sectors .head .eyebrow { justify-content: center; margin-bottom: 14px; }
.related-sectors .head h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s, border-color 0.3s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.06);
  border-color: var(--brand);
}
.related-card .tag {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 10px;
}
.related-card .title {
  font-family: "Fraunces", serif;
  font-size: 19px;
  margin-bottom: 14px;
  line-height: 1.25;
}
.related-card .more-link {
  font-size: 13px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.related-card .more-link svg {
  width: 14px; height: 14px;
  transition: transform 0.3s;
}
.related-card:hover .more-link svg { transform: translateX(3px); }

@media (max-width: 960px) {
  .sector-body-grid { grid-template-columns: 1fr; gap: 48px; }
  .sector-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  .sector-hero { min-height: 360px; padding: 60px 0 36px; }
  .sector-hero .lede { font-size: 17px; }
  .sector-body { padding: 56px 0 48px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-sectors { padding: 56px 0 64px; }
}

/* ==========================================================
   LANGUAGE SWITCHER + RTL SUPPORT
   ========================================================== */

/* Language switcher in navbar */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 16px;
}
.lang-switch a {
  display: inline-block;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.25s;
  line-height: 1;
  text-transform: uppercase;
}
.lang-switch a:hover { color: var(--ink); background: rgba(0,0,0,0.03); }
.lang-switch a.active {
  background: var(--brand);
  color: white;
}
.lang-switch a.active:hover { background: var(--brand-deep); }

@media (max-width: 900px) {
  .lang-switch {
    margin: 0 0 0 12px;
  }
  .lang-switch a {
    padding: 5px 9px;
    font-size: 10px;
  }
}

/* On mobile, lang switcher stays visible next to the hamburger button */
@media (max-width: 980px) {
  /* lang-switch is a direct child of nav-inner now, sitting in the top bar */
  .nav-inner > .lang-switch {
    display: inline-flex;
    flex-wrap: nowrap;
    margin: 0 8px 0 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-inner > .lang-switch a {
    width: auto;
    padding: 6px 9px;
    border-bottom: 0;
  }
}
@media (max-width: 600px) {
  .nav-inner > .lang-switch a { padding: 5px 5.5px; font-size: 11px; }
}
@media (max-width: 430px) {
  .nav-inner > .lang-switch { margin-right: 4px; }
  .nav-inner > .lang-switch a { padding: 4px 4px; font-size: 10px; }
  html[dir="rtl"] .nav-inner > .lang-switch { margin-left: 4px; }
}
@media (max-width: 360px) {
  .nav-inner > .lang-switch a { padding: 3px 3px; font-size: 9px; }
}

/* RTL spacing for the top-bar lang-switch on mobile */
@media (max-width: 980px) {
  html[dir="rtl"] .nav-inner > .lang-switch {
    margin: 0 0 0 8px;
  }
}

/* ----- RTL (Arabic) Support ----- */
html[dir="rtl"] body {
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Inter Tight", -apple-system, system-ui, sans-serif;
}
html[dir="rtl"] .display,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Fraunces", Georgia, serif;
  font-style: normal !important;
  letter-spacing: 0;
}
html[dir="rtl"] em {
  font-style: normal;
  color: var(--brand);
  font-weight: 600;
}

/* RTL: italic Fraunces accents (eyebrows, captions) become regular */
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .pillar-num,
html[dir="rtl"] .badge,
html[dir="rtl"] .gallery-item .caption .tag,
html[dir="rtl"] .related-card .tag,
html[dir="rtl"] .sector-sidebar .card .lbl,
html[dir="rtl"] .sectors-strip-grid div [style*="italic"],
html[dir="rtl"] .stat em,
html[dir="rtl"] .hero-card .lbl {
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0;
}

/* RTL: arrows flip direction */
html[dir="rtl"] .arrow,
html[dir="rtl"] .more svg,
html[dir="rtl"] .btn svg,
html[dir="rtl"] .gallery-item .caption .arrow-wrap svg,
html[dir="rtl"] .related-card .more-link svg,
html[dir="rtl"] .sector-hero .crumb .sep { transform: scaleX(-1); }

/* RTL: nav adjustments */
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 16px; }

/* RTL: border side-swaps */
html[dir="rtl"] .svc-item:nth-child(odd) {
  padding-right: 0;
  padding-left: 32px;
}
html[dir="rtl"] .svc-item:nth-child(even) {
  padding-left: 0;
  padding-right: 32px;
  border-left: 0;
  border-right: 1px solid var(--line);
}
html[dir="rtl"] .value {
  border-right: 0;
  border-left: 1px solid var(--line);
}
html[dir="rtl"] .value:last-child { border-left: 0; }
html[dir="rtl"] .sectors-strip-grid > div {
  border-right: 0 !important;
  border-left: 1px solid var(--line);
}
html[dir="rtl"] .sectors-strip-grid > div:last-child { border-left: 0; }

/* RTL: license card values aligned to left in RTL context */
html[dir="rtl"] .license-row .v { text-align: left; }

/* RTL: sector page sidebar meta values */
html[dir="rtl"] .sector-sidebar .meta-list .row .v { text-align: left; }

/* RTL: WhatsApp button on the left */
html[dir="rtl"] .wa-float {
  right: auto;
  left: 24px;
}

/* RTL: forms */
html[dir="rtl"] .field input,
html[dir="rtl"] .field textarea,
html[dir="rtl"] .field select { text-align: right; }
html[dir="rtl"] .form .submit-row { flex-direction: row-reverse; }

/* RTL: scope-list bullet on right side */
html[dir="rtl"] .sector-body-grid .content ul.scope-list li {
  padding-right: 32px;
  padding-left: 0;
}
html[dir="rtl"] .sector-body-grid .content ul.scope-list li::before {
  left: auto;
  right: 0;
}

/* RTL: breadcrumb separator and sector hero alignment */
html[dir="rtl"] .sector-hero .crumb { direction: rtl; }

/* RTL: stat number alignment */
html[dir="rtl"] .stat .num em { color: var(--brand); }

/* ---------- PARTNERSHIP CALLOUT (sector pages) ---------- */
.partnership-callout {
  position: relative;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: white;
  border-radius: 18px;
  padding: 36px 36px 32px;
  margin: 40px 0;
  box-shadow: 0 8px 28px rgba(15, 46, 79, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.partnership-callout::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.22), transparent 60%);
  z-index: -1;
}
.partnership-callout::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 65%);
  z-index: -1;
}
.partnership-callout .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}
.partnership-callout .badge-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 155, 60, 0.25);
}
.partnership-callout h3 {
  font-family: "Fraunces", serif;
  color: white;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.partnership-callout h3 .partner-name {
  font-style: italic;
  color: var(--accent);
}
.partnership-callout p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 720px;
}
/* Beat the .sector-body-grid .content p / strong rules so banner text stays light */
.sector-body-grid .content .partnership-callout p { color: rgba(255,255,255,0.92); font-size: 16px; }
.sector-body-grid .content .partnership-callout p strong,
.partnership-callout p strong { color: #fff; font-weight: 600; }
.sector-body-grid .content .partnership-callout h3,
.partnership-callout h3 { color: #fff; }
.partnership-callout p:last-of-type { margin-bottom: 20px; }
.partnership-callout .partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.partnership-callout .partner-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.partnership-callout .partner-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.3s;
}
.partnership-callout .partner-cta:hover svg { transform: translateX(3px); }

@media (max-width: 600px) {
  .partnership-callout { padding: 28px 24px 26px; margin: 32px 0; }
}

/* RTL adjustments for partnership */
html[dir="rtl"] .partnership-callout::before {
  right: auto;
  left: -120px;
}
html[dir="rtl"] .partnership-callout::after {
  left: auto;
  right: -80px;
}
html[dir="rtl"] .partnership-callout .partner-cta svg { transform: scaleX(-1); }
html[dir="rtl"] .partnership-callout .partner-cta:hover svg { transform: scaleX(-1) translateX(-3px); }
