:root {
  --bg:#071d1a; --bg2:#0b2b25; --card:#ffffff; --muted:#5c6b68; --text:#10211f;
  --white:#fff; --gold:#d9a441; --green:#0d5c4d; --light:#f4f7f3; --border:#dfe8e4;
  --shadow:0 24px 70px rgba(0,0,0,.14);
}

* { box-sizing:border-box }
html { scroll-behavior:smooth }
body {
  margin:0;
  font-family:'Tajawal',system-ui,sans-serif;
  background:var(--light);
  color:var(--text);
  line-height:1.8;
}
a { text-decoration:none; color:inherit }
.container { width:min(1180px,92%); margin:auto }

/* ================= HEADER ================= */
.site-header {
  min-height:100vh;
  background:radial-gradient(circle at 12% 18%,rgba(217,164,65,.22),transparent 24%),
             linear-gradient(135deg,var(--bg),var(--bg2));
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.site-header:after {
  content:"";
  position:absolute;
  inset:auto -10% -35% -10%;
  height:55%;
  background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(217,164,65,.08));
  transform:rotate(-5deg);
  border-radius:50%;
}

/* ================= NAVBAR ================= */
.navbar {
  height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  z-index:3;
}
.brand {
  display:flex;
  flex-direction:column; /* stack logo + tagline */
  align-items:center;
  gap:4px;
  text-decoration:none;
}
.brand-logo {
  height:50px;
  width:auto;
  display:block;
}
.brand strong { display:block; font-size:1.15rem }
.brand small {
  display:block;
  font-size:.75rem;
  color:rgba(255,255,255,.72);
  text-align:center;
}
.brand-mark {
  width:46px; height:46px;
  border-radius:15px;
  background:linear-gradient(135deg,var(--gold),#f2d282);
  display:grid; place-items:center;
  color:#08241f; font-weight:800; font-size:1.45rem;
  box-shadow:0 10px 28px rgba(217,164,65,.25);
}
.nav-links {
  display:flex; align-items:center; gap:24px; font-weight:700;
}
.nav-links a { color:rgba(255,255,255,.82); transition:.25s }
.nav-links a:hover { color:var(--gold) }
.nav-cta {
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  padding:10px 18px;
}
.menu-toggle { display:none; background:none; border:0; color:#fff; font-size:1.8rem }

/* ================= HERO ================= */
.hero {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:48px;
  position:relative;
  z-index:2;
  padding:70px 0 120px;
}
.hero-content { flex:1 1 55%; min-width:320px }
.hero-panel { flex:1 1 40%; min-width:280px }
.eyebrow { display:inline-block; color:var(--gold); font-weight:800; margin-bottom:10px }
.hero h1 {
  font-size:clamp(2.2rem,4.2vw,4.4rem);
  line-height:1.13;
  margin:0 0 22px;
}
body.lang-en .hero h1 {
  font-size:clamp(2rem,4vw,4.2rem);
}
.hero p {
  font-size:1.08rem;
  color:rgba(255,255,255,.82);
  max-width:730px;
}
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:34px }

/* ================= BUTTONS ================= */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; padding:13px 24px; font-weight:800;
  border:0; cursor:pointer; transition:.25s;
}
.btn.primary { background:var(--gold); color:#08241f }
.btn.primary:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(217,164,65,.26) }
.btn.secondary {
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
}

/* ================= METRICS ================= */
.hero-panel { display:flex; flex-direction:column; gap:18px; flex:1 1 40%; min-width:280px }
.metric-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px }
.metric-card {
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.15);
  border-radius:26px;
  padding:22px;
  backdrop-filter:blur(12px);
}
.metric-card.large { padding:28px; text-align:center; }
.metric-label { display:block; font-size:.85rem; color:rgba(255,255,255,.65); margin-bottom:2px }
.metric-card strong { display:block; font-size:2rem; color:var(--gold); line-height:1.2 }
.metric-card.large strong { font-size:4.5rem }
.metric-card span,.metric-card p { color:rgba(255,255,255,.78); margin:0 }

/* ================= SECTIONS ================= */
.section { padding:92px 0 }
.section-heading { text-align:center; max-width:820px; margin:0 auto 48px }
.section h2 { font-size:clamp(2rem,3.5vw,3.25rem); line-height:1.25; margin:0 0 18px; color:var(--text) }

/* ================= CONTACT ================= */
.contact { background:linear-gradient(135deg,var(--bg),var(--bg2)); color:#fff }
.contact h2 { color:#fff }
.contact p { color:rgba(255,255,255,.75) }
.contact-card {
  padding:42px;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:36px;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
  box-shadow:none;
}
.contact-form { display:grid; gap:14px }
.contact-form label { font-weight:700; color:rgba(255,255,255,.9) }
.contact-form input,.contact-form textarea {
  width:100%; margin-top:6px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:16px;
  padding:13px 14px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-family:inherit;
}
.contact-form input::placeholder,.contact-form textarea::placeholder { color:rgba(255,255,255,.55) }

/* ================= FOOTER ================= */
.site-footer { background:#061715; color:#fff; padding:54px 0 20px }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1.4fr; gap:34px }
.site-footer a { display:block; color:rgba(255,255,255,.75); margin:8px 0 }
.site-footer p,.copyright { color:rgba(255,255,255,.62) }
.footer-brand {
  display: table;
  text-decoration: none;
}
.footer-logo {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 6px;
}
.footer-brand small {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  width: max-content;
  max-width: 100%;
}
.copyright { text-align:center; border-top:1px solid rgba(255,255,255,.08); margin-top:34px; padding-top:18px }

/* ================= REVEAL ANIMATION ================= */
.reveal { opacity:0; transform:translateY(22px); transition:opacity .7s ease,transform .7s ease }
.reveal.visible { opacity:1; transform:translateY(0) }

/* ================= RESPONSIVE ================= */
@media(max-width:980px){
  .hero { flex-direction:column; text-align:center }
  .hero-content,.hero-panel { flex:1 1 100% }
  .service-grid,.cards.three { grid-template-columns:1fr 1fr }
  .team-grid { grid-template-columns:1fr 1fr }
  .nav-links {
    position:absolute; top:76px; right:0; left:0;
    background:#09241f;
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    padding:18px;
    display:none;
    flex-direction:column;
    align-items:stretch;
  }
  .nav-links.open { display:flex }
  .menu-toggle { display:block }
  .metric-card { padding:16px }
  .contact-card { grid-template-columns:1fr }
  .footer-grid { grid-template-columns:1fr }
}

/* ================= LANGUAGE TOGGLE ================= */
/* Hide the "other" language; shown elements keep their natural display value */
body.lang-ar .lang-en { display: none; }
body.lang-en .lang-ar { display: none; }

/* Lang toggle link styling */
.lang-toggle {
  color: var(--gold) !important;
  font-weight: 800;
  border: 1px solid rgba(217,164,65,.4);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  transition: .25s;
}
.lang-toggle:hover { background: rgba(217,164,65,.12); }

/* ================= TWO-COL LAYOUT ================= */
.two-col {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:52px;
  align-items:center;
}
.two-col.reverse > :first-child { order:2 }
.two-col.reverse > :last-child  { order:1 }
.section-copy {}

/* ================= HIGHLIGHT BOX (About pillars) ================= */
.highlight-box {
  background:var(--white);
  border-radius:24px;
  padding:32px;
  box-shadow:var(--shadow);
}
.highlight-box h3 { margin:0 0 18px; color:var(--green); font-size:1.15rem }
.check-list { list-style:none; margin:0; padding:0 }
.check-list li {
  padding:10px 0;
  border-bottom:1px solid var(--border);
  color:var(--text);
  padding-inline-start:26px;
  position:relative;
}
.check-list li:last-child { border-bottom:0 }
.check-list li::before {
  content:"✓";
  position:absolute;
  inset-inline-start:0;
  color:var(--gold);
  font-weight:800;
}

/* ================= TIMELINE ================= */
.timeline {
  display:flex;
  flex-direction:column;
  gap:0;
  border-inline-end:3px solid var(--gold);
  padding-inline-end:28px;
}
.timeline > div {
  position:relative;
  padding-bottom:28px;
}
.timeline > div:last-child { padding-bottom:0 }
.timeline > div::before {
  content:"";
  position:absolute;
  inset-inline-end:-35px;
  top:6px;
  width:14px; height:14px;
  border-radius:50%;
  background:var(--gold);
  border:3px solid var(--bg);
}
.timeline > div span {
  display:block;
  font-size:1.6rem;
  font-weight:800;
  color:var(--gold);
  line-height:1.2;
  margin-bottom:4px;
}
.timeline > div p { margin:0; color:var(--muted) }

/* ================= SECTION BACKGROUNDS ================= */
.section.intro     { background:var(--light) }
.section.background{ background:var(--white) }
.section.advisory  { background:var(--light) }
.section.finance   { background:var(--white) }
.section.clients   { background:var(--light) }
.section.strategy  { background:var(--white) }
.section.team      { background:var(--light) }

/* ================= PARTNER SECTION (dark) ================= */
.section.partner {
  background:linear-gradient(135deg,var(--bg),var(--bg2));
  color:var(--white);
}
.section.partner .section-heading h2 { color:var(--white) }
.section.partner .section-heading p  { color:rgba(255,255,255,.78) }
.section.partner .eyebrow            { color:var(--gold) }
.section.partner .card {
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:none;
}
.section.partner .card h3 { color:var(--gold) }
.section.partner .card p  { color:rgba(255,255,255,.78) }

/* ================= SERVICE CARDS ================= */
.service-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.service-card {
  background:var(--white);
  border-radius:24px;
  padding:28px;
  box-shadow:0 8px 30px rgba(0,0,0,.07);
  transition:.25s;
}
.service-card:hover { transform:translateY(-4px); box-shadow:0 18px 50px rgba(0,0,0,.12) }
.service-card .icon { font-size:2rem; display:block; margin-bottom:14px }
.service-card h3 { margin:0 0 10px; color:var(--green); font-size:1.05rem }
.service-card p  { color:var(--muted); margin:0 0 12px }
.service-card ul { padding-inline-start:18px; margin:0 }
.service-card li { color:var(--muted); margin-bottom:5px; font-size:.93rem }

/* ================= CARDS THREE (Partner) ================= */
.cards.three {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:40px;
}
.card {
  background:var(--white);
  border-radius:24px;
  padding:28px;
  box-shadow:0 8px 30px rgba(0,0,0,.07);
}
.card h3 { margin:0 0 10px; color:var(--green) }
.card p  { margin:0; color:var(--muted) }

/* ================= ADVISORY PILL LIST ================= */
.pill-list {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-content:flex-start;
}
.pill-list > span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 18px;
  font-size:.9rem;
  color:var(--green);
  font-weight:600;
  transition:.2s;
}
.pill-list > span:hover { background:var(--green); color:var(--white) }

/* ================= FINANCE FEATURE LIST ================= */
.feature-list { display:grid; gap:24px }
.feature-list > div {
  border-inline-end:3px solid var(--gold);
  padding-inline-end:20px;
}
.feature-list strong { display:block; margin-bottom:4px; color:var(--text) }
.feature-list p { margin:0; color:var(--muted) }

/* ================= CLIENT GRID ================= */
.client-grid {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
}
.client-grid span {
  background:var(--white);
  border-radius:14px;
  padding:12px 22px;
  font-weight:700;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
  color:var(--text);
}

/* ================= STRATEGY DRIVERS ================= */
.drivers {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-content:center;
}
.drivers > span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--white);
  color:var(--green);
  border:1.5px solid var(--border);
  border-radius:999px;
  padding:10px 22px;
  font-weight:700;
  font-size:.9rem;
  transition:.2s;
}
.drivers > span:hover {
  background:var(--green);
  color:var(--white);
  border-color:var(--green);
}

/* ================= TEAM GRID ================= */
.team-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.team-card {
  background:var(--white);
  border-radius:24px;
  padding:28px;
  box-shadow:0 8px 30px rgba(0,0,0,.07);
  transition:.25s;
}
.team-card:hover { transform:translateY(-3px) }
.team-card h3   { margin:0 0 4px; color:var(--green); font-size:1.05rem }
.team-card > span {
  display:block;
  color:var(--gold);
  font-weight:700;
  font-size:.88rem;
  margin-bottom:12px;
}
.team-card p { margin:0; color:var(--muted); font-size:.92rem; line-height:1.7 }

/* ================= RESPONSIVE (additional) ================= */
@media(max-width:980px){
  .two-col { grid-template-columns:1fr }
  .two-col.reverse > :first-child,
  .two-col.reverse > :last-child { order:unset }
  .service-grid { grid-template-columns:1fr 1fr }
  .cards.three  { grid-template-columns:1fr 1fr }
  .team-grid    { grid-template-columns:1fr 1fr }
}
@media(max-width:600px){
  .service-grid { grid-template-columns:1fr }
  .cards.three  { grid-template-columns:1fr }
  .team-grid    { grid-template-columns:1fr }
}

/* ================= TEAM TWO-ROW LAYOUT ================= */
.team-grid-top {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}
.team-grid-bottom {
  grid-template-columns: repeat(4, 1fr);
}
@media(max-width:980px){
  .team-grid-top  { grid-template-columns: 1fr 1fr }
  .team-grid-bottom { grid-template-columns: 1fr 1fr }
}
@media(max-width:600px){
  .team-grid-top  { grid-template-columns: 1fr }
  .team-grid-bottom { grid-template-columns: 1fr }
}

/* ================= TEAM CARD CLICKABLE ================= */
.team-card {
  cursor: pointer;
  position: relative;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.13);
}
.card-read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  transition: opacity .2s;
}
.team-card:hover .card-read-more { opacity: 1; }

/* ================= MODAL ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,29,26,.88);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: 28px;
  padding: 48px;
  max-width: 660px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform .35s ease;
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  background: var(--light);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: .2s;
  line-height: 1;
}
.modal-close:hover { background: var(--border); }
.modal-name {
  color: var(--green);
  font-size: 1.6rem;
  margin: 0 0 6px;
  padding-inline-end: 48px;
}
.modal-role {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 24px;
}
.modal-bio p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.85;
  font-size: .97rem;
}
.modal-credentials {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.modal-credentials h4 {
  color: var(--green);
  margin: 0 0 14px;
  font-size: .95rem;
  font-weight: 700;
}
.modal-credentials ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-credentials li {
  color: var(--text);
  font-size: .9rem;
  padding: 8px 14px;
  background: var(--light);
  border-radius: 10px;
  border-inline-start: 3px solid var(--gold);
}
@media(max-width:600px){
  .modal-box { padding: 28px 20px; }
  .modal-name { font-size: 1.3rem; }
}
