/* ============================================================
   MEEZAN Legal Protection - Luxury Legal-Tech Design System
   Palette: Burgundy / Cream / Ornamental Gold
   ============================================================ */

:root {
  /* Brand */
  --burgundy: #6B1E2A;
  --burgundy-2: #8C2E3E;
  --wine: #3E111B;
  --wine-deep: #2E0C14;
  --gold: #C9A66E;
  --gold-soft: #F0E5D0;
  --cream: #F5EDE0;
  --surface: #FEFBF5;
  --line: #E2D5C3;

  /* Ink */
  --ink: #2B191D;
  --ink-2: #6A4A52;
  --ink-muted: #9C7D85;
  --on-dark: #FDFBF7;
  --on-dark-2: #E5D9C8;

  /* Type */
  --font-display-en: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body-en: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-display-ar: "Amiri", "Noto Naskh Arabic", serif;
  --font-body-ar: "Cairo", "Noto Sans Arabic", sans-serif;

  /* Effects */
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 16px 34px rgba(62, 17, 27, 0.08);
  --shadow-hover: 0 24px 48px rgba(62, 17, 27, 0.14);
  --border-warm: 1px solid var(--line);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 76px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body-en);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: var(--font-body-ar);
  letter-spacing: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display-en);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 600;
  text-wrap: balance;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .display-font {
  font-family: var(--font-display-ar);
  line-height: 1.35;
}

::selection { background: rgba(201, 166, 110, 0.4); color: var(--wine); }

:focus-visible {
  outline: 2px solid var(--burgundy-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }

/* ---------- Shared atoms ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0.06em; font-size: 13.5px; }
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.centered::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 14px 0 18px;
}
.section-title em {
  font-style: italic;
  color: var(--burgundy);
}
.section-lead {
  max-width: 640px;
  font-size: 17.5px;
}
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.centered { text-align: center; }
.section-head.centered .section-lead { margin-inline: auto; }

.gold-sep {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 22px 0;
  border: none;
}
.centered .gold-sep { margin-inline: auto; }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--gold-soft);
  color: var(--burgundy);
  border: 1px solid rgba(201, 166, 110, 0.55);
  white-space: nowrap;
}
.chip.on-dark {
  background: rgba(201, 166, 110, 0.12);
  color: var(--gold);
  border-color: rgba(201, 166, 110, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}
.btn-sm svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-2));
  color: var(--on-dark);
  box-shadow: 0 12px 26px rgba(107, 30, 42, 0.28);
}
.btn-primary:hover { box-shadow: 0 18px 36px rgba(107, 30, 42, 0.36); }

.btn-gold {
  background: linear-gradient(135deg, #D8BA85, var(--gold));
  color: var(--wine);
  box-shadow: 0 12px 26px rgba(201, 166, 110, 0.35);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--burgundy);
  background: rgba(254, 251, 245, 0.6);
}
.btn-outline:hover { background: var(--gold-soft); }

.btn-ghost-light {
  border-color: rgba(201, 166, 110, 0.5);
  color: var(--on-dark);
}
.btn-ghost-light:hover { background: rgba(201, 166, 110, 0.12); }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-2));
  color: var(--on-dark);
  box-shadow: 0 12px 26px rgba(107, 30, 42, 0.28);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245, 237, 224, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(62, 17, 27, 0.07);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(201, 166, 110, 0.45);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(62, 17, 27, 0.12);
  padding: 2px;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.brand-mark svg { width: 24px; height: 24px; stroke: var(--gold); }
.brand-name {
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--ink);
  line-height: 1.05;
}
html[dir="rtl"] .brand-name { letter-spacing: 0.02em; }
.brand-sub {
  display: block;
  font-family: var(--font-body-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
html[dir="rtl"] .brand-sub { letter-spacing: 0.08em; font-size: 10.5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--burgundy); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--burgundy);
  transition: background 0.25s, border-color 0.25s;
}
.lang-toggle:hover { background: var(--gold-soft); border-color: var(--gold); }
.lang-toggle svg { width: 15px; height: 15px; }

.nav-cta { padding: 12px 22px; font-size: 14px; }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  place-items: center;
}
.nav-burger svg { width: 20px; height: 20px; stroke: var(--burgundy); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(245, 237, 224, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 30px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 10px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid rgba(226, 213, 195, 0.6);
}
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 90px)) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(58% 46% at 12% 8%, rgba(107, 30, 42, 0.08), transparent 70%),
    radial-gradient(50% 42% at 88% 18%, rgba(201, 166, 110, 0.14), transparent 70%),
    radial-gradient(40% 36% at 55% 100%, rgba(107, 30, 42, 0.05), transparent 70%),
    var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 22px; }

.hero-title {
  font-size: clamp(42px, 5.6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--burgundy);
}
.hero-title .gold { color: var(--gold); }
html[dir="rtl"] .hero-title { font-size: clamp(38px, 5.2vw, 60px); }

.hero-sub {
  margin-top: 22px;
  max-width: 540px;
  font-size: 18px;
  color: var(--ink-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(18px, 3vw, 36px);
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  justify-content: start;
}
.metric-num {
  font-family: var(--font-display-en);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.1;
}
html[dir="rtl"] .metric-num { font-family: var(--font-body-ar); }
.metric-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  max-width: 140px;
  line-height: 1.45;
  margin-top: 5px;
}

/* Hero visual */
.hero-visual { position: relative; justify-self: center; }
.hero-frame {
  position: relative;
  width: min(380px, 78vw);
  border-radius: 200px 200px 22px 22px;
  padding: 14px;
  background: linear-gradient(160deg, var(--surface), var(--gold-soft));
  border: 1px solid rgba(201, 166, 110, 0.6);
  box-shadow: var(--shadow-hover);
}
.hero-frame img {
  border-radius: 190px 190px 14px 14px;
  width: 100%;
  aspect-ratio: 3 / 3.9;
  object-fit: cover;
  object-position: top;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(201, 166, 110, 0.45);
  border-radius: 215px 215px 30px 30px;
  pointer-events: none;
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-radius: var(--radius);
  background: var(--wine);
  border: 1px solid rgba(201, 166, 110, 0.45);
  box-shadow: 0 18px 38px rgba(46, 12, 20, 0.35);
  color: var(--on-dark);
  animation: floaty 6s ease-in-out infinite;
}
.float-badge svg { width: 22px; height: 22px; stroke: var(--gold); flex: none; }
.float-badge b { font-size: 13.5px; line-height: 1.3; display: block; }
.float-badge span { font-size: 11.5px; color: var(--on-dark-2); display: block; }
.float-badge.top { top: 6%; inset-inline-start: -8%; }
.float-badge.bottom { bottom: 8%; inset-inline-end: -6%; animation-delay: 2.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Ribbon marquee ---------- */
.ribbon {
  background: var(--wine);
  border-block: 1px solid rgba(201, 166, 110, 0.35);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
}
.ribbon-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
html[dir="rtl"] .ribbon-track { animation-name: marquee-rtl; }
.ribbon-item {
  display: flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-display-en);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
html[dir="rtl"] .ribbon-item { font-family: var(--font-body-ar); letter-spacing: 0.04em; font-size: 15.5px; }
.ribbon-item::after {
  content: "✦";
  color: rgba(201, 166, 110, 0.55);
  font-size: 12px;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- About ---------- */
.about-head {
  max-width: 840px;
  margin: 0 auto clamp(36px, 4.5vw, 56px);
  text-align: center;
}
.about-head .section-title {
  margin-inline: auto;
}
.about-head .section-lead {
  margin-inline: auto;
}
.about-points-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 76px);
}
.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px;
  background: var(--surface);
  border: var(--border-warm);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(62, 17, 27, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.about-point:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.about-point svg {
  width: 22px;
  height: 22px;
  stroke: var(--burgundy);
  flex: none;
  margin-top: 2px;
}
.about-point b {
  color: var(--ink);
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.about-point span {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Leadership Showcase */
.leadership-block {
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 5.5vw, 68px);
}
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
.founder-card {
  position: relative;
  background: var(--wine);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 166, 110, 0.45);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  color: var(--on-dark-2);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.founder-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}
.founder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament-dark.jpg") center / 540px repeat;
  opacity: 0.4;
  pointer-events: none;
}
.founder-card > * { position: relative; }
.founder-media {
  flex: none;
}
.founder-media img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  display: block;
}
.founder-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.founder-name {
  font-family: var(--font-display-en);
  font-size: 18px;
  color: var(--on-dark);
  font-weight: 700;
  line-height: 1.3;
}
html[dir="rtl"] .founder-name { font-family: var(--font-display-ar); }
.founder-role {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
html[dir="rtl"] .founder-role { letter-spacing: 0.02em; }
.founder-bio {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-dark-2);
}
.founder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.founder-chips .chip {
  font-size: 10.5px;
  padding: 3px 9px;
}
.founder-cta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Mission & Vision ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.mission-block {
  background: var(--surface);
  border: var(--border-warm);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.mission-block h3 {
  font-family: var(--font-display-en);
  font-size: 24px;
  color: var(--wine);
  margin-bottom: 20px;
  font-weight: 700;
}
html[dir="rtl"] .mission-block h3 { font-family: var(--font-display-ar); }
.mission-block p {
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 16px;
  font-size: 15.5px;
}
.mission-block p:last-child { margin-bottom: 0; }

.promise-block {
  background: var(--wine);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 166, 110, 0.45);
  padding: 48px;
  text-align: center;
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.promise-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament-dark.jpg") center / 540px repeat;
  opacity: 0.4;
  pointer-events: none;
}
.promise-block h3 {
  position: relative;
  font-size: 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 700;
}
html[dir="rtl"] .promise-block h3 { letter-spacing: 0.02em; }
.promise-block h4 {
  position: relative;
  font-family: var(--font-display-en);
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--surface);
  line-height: 1.2;
}
html[dir="rtl"] .promise-block h4 { font-family: var(--font-display-ar); }
.promise-block p {
  position: relative;
  color: var(--on-dark-2);
  line-height: 1.6;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 8px;
}
.promise-block p:last-child { margin-bottom: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: var(--border-warm);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--wine), var(--burgundy));
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(62, 17, 27, 0.22);
}
.service-icon svg { width: 27px; height: 27px; stroke: var(--gold); }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { font-size: 14.8px; }
.service-num {
  position: absolute;
  top: 22px;
  inset-inline-end: 24px;
  font-family: var(--font-display-en);
  font-size: 15px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}

/* ---------- Platform preview (dark) ---------- */
.platform {
  background: var(--wine);
  color: var(--on-dark-2);
  overflow: hidden;
}
.platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament-dark.jpg") center / 620px repeat;
  opacity: 0.35;
  pointer-events: none;
}
.platform .container { position: relative; }
.platform .section-title { color: var(--on-dark); }
.platform .section-title em { color: var(--gold); }
.platform .eyebrow { color: rgba(229, 217, 200, 0.7); }
.platform .section-lead { color: var(--on-dark-2); }

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(201, 166, 110, 0.35);
  color: var(--on-dark-2);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.platform-tab .tab-num {
  font-family: var(--font-display-en);
  color: var(--gold);
  font-size: 13px;
}
.platform-tab:hover { border-color: var(--gold); color: var(--on-dark); }
.platform-tab.active {
  background: linear-gradient(135deg, #D8BA85, var(--gold));
  color: var(--wine);
  border-color: transparent;
}
.platform-tab.active .tab-num { color: var(--wine); }

.platform-stage {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.platform-panel h3 {
  color: var(--on-dark);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}
.platform-panel p { font-size: 15.5px; }
.platform-points { margin-top: 22px; display: grid; gap: 12px; }
.platform-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
}
.platform-points svg { width: 18px; height: 18px; stroke: var(--gold); flex: none; margin-top: 3px; }

/* Mock portal UI */
.portal {
  background: linear-gradient(165deg, #FEFBF5, #F5EDE0);
  border-radius: 20px;
  border: 1px solid rgba(201, 166, 110, 0.55);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  color: var(--ink-2);
  overflow: hidden;
}
.portal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.portal-dot { width: 10px; height: 10px; border-radius: 50%; }
.portal-dot:nth-child(1) { background: #D9A6AE; }
.portal-dot:nth-child(2) { background: #E7CFA2; }
.portal-dot:nth-child(3) { background: #B7C9B0; }
.portal-title {
  margin-inline-start: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.portal-body { padding: 22px; display: grid; gap: 12px; }
.portal-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: var(--border-warm);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13.8px;
}
.portal-row .p-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--gold-soft);
}
.portal-row .p-icon svg { width: 17px; height: 17px; stroke: var(--burgundy); }
.portal-row b { color: var(--ink); display: block; font-size: 13.8px; }
.portal-row span { font-size: 12.3px; color: var(--ink-muted); }
.portal-status {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.portal-status.done { background: #E8F1EC; color: #2F6B4A; }
.portal-status.active { background: var(--gold-soft); color: var(--burgundy); }
.portal-status.wait { background: #F3EDE4; color: var(--ink-muted); }
.portal-progress {
  margin-top: 4px;
  height: 8px;
  border-radius: 999px;
  background: #EFE6D6;
  overflow: hidden;
}
.portal-progress i {
  display: block;
  height: 100%;
  width: 66%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
}
.portal-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ---------- Why MEEZAN ---------- */
.why { text-align: center; }
.why-quote {
  font-family: var(--font-display-en);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  max-width: 880px;
  margin: 26px auto 0;
  line-height: 1.35;
}
html[dir="rtl"] .why-quote { font-family: var(--font-display-ar); font-style: normal; }
.why-quote .gold { color: var(--burgundy); }
.why-attr {
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
html[dir="rtl"] .why-attr { letter-spacing: 0.05em; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
  text-align: start;
}
.why-card {
  background: var(--surface);
  border: var(--border-warm);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.why-card .service-icon { margin-bottom: 18px; }
.why-card h3 { font-size: 19.5px; margin-bottom: 9px; }
.why-card p { font-size: 14.5px; }

/* ---------- Articles ---------- */
.articles-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border-warm);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--wine);
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.article-card:hover .article-cover img { transform: scale(1.05); }

/* Editorial monogram cover */
.cover-mono {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background:
    radial-gradient(80% 90% at 80% 0%, rgba(201, 166, 110, 0.22), transparent 60%),
    linear-gradient(150deg, var(--wine), var(--burgundy) 130%);
}
.cover-mono::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament-dark.jpg") center / 460px repeat;
  opacity: 0.5;
}
.cover-mono svg {
  position: absolute;
  top: 18px;
  inset-inline-start: 20px;
  width: 34px;
  height: 34px;
  stroke: var(--gold);
  opacity: 0.95;
}
.cover-mono .cm-cat {
  position: relative;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
html[dir="rtl"] .cover-mono .cm-cat { letter-spacing: 0.05em; }
.cover-mono .cm-title {
  position: relative;
  font-family: var(--font-display-en);
  color: var(--on-dark);
  font-size: 19px;
  line-height: 1.3;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[dir="rtl"] .cover-mono .cm-title { font-family: var(--font-display-ar); }

.article-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
  flex-wrap: wrap;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.article-cat {
  color: var(--burgundy);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
html[dir="rtl"] .article-cat { letter-spacing: 0.04em; font-size: 12.5px; }
.article-title {
  font-size: 20px;
  line-height: 1.3;
}
.article-title a { transition: color 0.25s; }
.article-title a:hover { color: var(--burgundy); }
.article-excerpt {
  font-size: 14.2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-more {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--burgundy);
}
.article-more svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.article-card:hover .article-more svg { transform: translateX(4px); }
html[dir="rtl"] .article-more svg { transform: scaleX(-1); }
html[dir="rtl"] .article-card:hover .article-more svg { transform: scaleX(-1) translateX(4px); }

/* Articles page */
.page-hero {
  padding: calc(var(--nav-h) + clamp(48px, 6vw, 80px)) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(52% 60% at 10% 0%, rgba(107, 30, 42, 0.08), transparent 70%),
    radial-gradient(46% 55% at 92% 12%, rgba(201, 166, 110, 0.13), transparent 70%),
    var(--cream);
  text-align: center;
}
.page-hero .section-lead { margin-inline: auto; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all 0.25s;
}
.filter-chip:hover { border-color: var(--gold); color: var(--burgundy); }
.filter-chip.active {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-2));
  color: var(--on-dark);
  border-color: transparent;
}
.search-box {
  position: relative;
  min-width: 240px;
}
.search-box input {
  width: 100%;
  padding: 11px 18px;
  padding-inline-start: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 13.8px;
  color: var(--ink);
}
.search-box input:focus { outline: 2px solid rgba(201, 166, 110, 0.6); border-color: var(--gold); }
.search-box svg {
  position: absolute;
  inset-inline-start: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-muted);
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
  font-size: 15px;
}

/* Article single */
.article-wrap { max-width: 780px; margin-inline: auto; }
.article-hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 18px;
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 600;
}
.article-h1 { font-size: clamp(30px, 4.6vw, 48px); }
.article-cover-lg {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201, 166, 110, 0.5);
  box-shadow: var(--shadow-card);
  margin: 30px 0 40px;
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: var(--wine);
}
.article-cover-lg img { width: 100%; height: 100%; object-fit: cover; }
.article-cover-lg .cover-mono .cm-title { font-size: clamp(24px, 3.4vw, 36px); -webkit-line-clamp: 3; }
.article-cover-lg .cover-mono svg { width: 46px; height: 46px; top: 26px; inset-inline-start: 28px; }
.article-cover-lg .cover-mono { padding: 32px; }

.prose { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.prose p + p { margin-top: 18px; }
.prose h3 {
  font-size: 24px;
  margin: 38px 0 14px;
  color: var(--burgundy);
}
.prose h4 { font-size: 19px; margin: 28px 0 10px; }
.prose ul, .prose ol {
  margin: 16px 0;
  padding-inline-start: 6px;
  display: grid;
  gap: 10px;
  list-style: none;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-inline-start: 26px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 166, 110, 0.25);
}
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; }
.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  font-family: var(--font-display-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--burgundy);
}
html[dir="rtl"] .prose ol li::before { font-family: var(--font-body-ar); }
.prose blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  background: var(--gold-soft);
  border-inline-start: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display-en);
  font-style: italic;
  font-size: 19px;
  color: var(--burgundy);
}
html[dir="rtl"] .prose blockquote { border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font-display-ar); font-style: normal; }
.prose strong { color: var(--ink); }
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 36px 0;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}
.article-nav a {
  padding: 20px 22px;
  background: var(--surface);
  border: var(--border-warm);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.article-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.article-nav .nav-dir {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 6px;
}
html[dir="rtl"] .article-nav .nav-dir { letter-spacing: 0.04em; }
.article-nav .nav-title {
  font-family: var(--font-display-en);
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.35;
}
html[dir="rtl"] .article-nav .nav-title { font-family: var(--font-display-ar); }
.article-nav .next { text-align: end; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(50% 55% at 8% 12%, rgba(107, 30, 42, 0.07), transparent 70%),
    radial-gradient(45% 50% at 95% 85%, rgba(201, 166, 110, 0.13), transparent 70%),
    var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.contact-card {
  background: var(--wine);
  color: var(--on-dark-2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 166, 110, 0.4);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament-dark.jpg") center / 540px repeat;
  opacity: 0.4;
}
.contact-card > * { position: relative; }
.contact-card h3 { color: var(--on-dark); font-size: 26px; margin-bottom: 12px; }
.contact-card p { font-size: 15px; }
.contact-methods { margin-top: 26px; display: grid; gap: 12px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(201, 166, 110, 0.3);
  background: rgba(201, 166, 110, 0.07);
  transition: background 0.3s, border-color 0.3s;
}
.contact-method:hover { background: rgba(201, 166, 110, 0.14); border-color: var(--gold); }
.contact-method svg { width: 21px; height: 21px; stroke: var(--gold); flex: none; }
.contact-method b { color: var(--on-dark); display: block; font-size: 14.5px; }
.contact-method span { font-size: 12.8px; color: var(--on-dark-2); direction: ltr; unicode-bidi: plaintext; }

.form-card {
  background: var(--surface);
  border: var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.form-card h3 { font-size: 24px; margin-bottom: 8px; }
.form-card > p { font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
html[dir="rtl"] .field label { letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 166, 110, 0.25);
}
.form-note { font-size: 12.5px; color: var(--ink-muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--wine-deep);
  color: var(--on-dark-2);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ornament-dark.jpg") center / 600px repeat;
  opacity: 0.25;
}
.footer .container { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer .brand-name { color: var(--on-dark); }
.footer .brand-sub { color: rgba(229, 217, 200, 0.6); }
.footer-about { margin-top: 16px; font-size: 14px; max-width: 340px; }
.footer h4 {
  color: var(--gold);
  font-family: var(--font-body-en);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
html[dir="rtl"] .footer h4 { font-family: var(--font-body-ar); letter-spacing: 0.05em; }
.footer-links { display: grid; gap: 10px; font-size: 14px; }
.footer-links a { transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: 12px; font-size: 14px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; transition: color 0.25s; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--gold); flex: none; }
.footer-bottom {
  border-top: 1px solid rgba(201, 166, 110, 0.2);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(229, 217, 200, 0.65);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--burgundy), var(--burgundy-2));
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(62, 17, 27, 0.4);
  border: 1px solid rgba(201, 166, 110, 0.5);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); }
.wa-float svg { width: 27px; height: 27px; fill: var(--gold-soft); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-label { max-width: none; }
  .about-points-row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .hero-grid, .about-grid, .contact-grid, .platform-stage, .leaders-grid, .mission-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .float-badge.top { inset-inline-start: -2%; }
  .float-badge.bottom { inset-inline-end: -2%; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .services-grid, .article-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .founder-card { flex-direction: column; align-items: center; text-align: center; }
  .founder-media img { width: 90px; height: 90px; }
  .founder-chips { justify-content: center; }
  .founder-cta { justify-content: center; }
  .promise-block { padding: 32px 20px; }
  .promise-block h4 { font-size: 26px; }
  .promise-block p { font-size: 16px; }
}
