/* ===========================================================================
   Reem Bank — replica stylesheet
   Design tokens mirror the live site (reembank.ae)
   =========================================================================== */

:root {
  /* Brand palette (from live site) */
  --color-black: #000;
  --color-white: #fff;
  --color-title: #343434;
  --color-paragraph: #767676;
  --color-primary: #203f6a;
  --color-primary-800: #1a3358;
  --color-reem-purple: #62478c;
  --color-secondary: #f2f7fd;
  --color-card-bg: #f3f3f3;
  --color-footer-bg: #0e2441;
  --color-stroke: #b4b4b4;
  --color-gradient-start: #005bc3;
  --color-gradient-end: #2d8cf8;

  /* Fonts — single family (Tajawal) across the whole site */
  --font-base: "Tajawal", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-display: "Tajawal", "Segoe UI", sans-serif;

  --container: 1200px;
  --header-h: 88px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-base);
  color: var(--color-title);
  background: var(--color-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Hide elements not matching the current language direction, and reveal on toggle */
[data-i18n] { transition: opacity .15s ease; }

/* ===========================================================================
   Header / Navigation
   =========================================================================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.on-dark { color: var(--color-white); }
.site-header.on-dark .nav-link { color: rgba(255, 255, 255, .92); }
.site-header.on-dark .nav-link:hover { color: #fff; }
.site-header.on-dark .nav-link.active { color: #fff; }
.site-header.on-dark .nav-link.active::after { background: #b18ae8; }
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  color: var(--color-title);
  box-shadow: 0 6px 24px rgba(14, 36, 65, .08);
  backdrop-filter: blur(8px);
}
.site-header.scrolled .nav-link { color: var(--color-title); }
.site-header.scrolled .logo-img { filter: none; }

.header-inner {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; flex: none; }
.logo-img { height: 44px; width: auto; }
.on-dark .logo-img { filter: brightness(0) invert(1); }

/* Right-hand cluster: nav links + language pill grouped together */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-start: auto;   /* push the whole cluster to the right */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.nav-link {
  position: relative;
  padding: 6px 4px;
  font-weight: 500;
  font-size: 1rem;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--color-reem-purple); }
.nav-link.active { color: var(--color-reem-purple); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-reem-purple);
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  flex: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lang-toggle:hover { background: var(--color-reem-purple); border-color: var(--color-reem-purple); color: #fff; }
.lang-toggle svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px; border-radius: 2px;
  background: currentColor; transition: transform .3s ease, opacity .3s ease;
}

/* ===========================================================================
   Hero (home)
   =========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  height: max(100vh, 50rem);
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--color-white);
  overflow-x: clip;
  /* radial base: #040F23 centre → footer navy at the edges (as on the live site) */
  background: radial-gradient(circle, #040f23 0%, var(--color-footer-bg) 100%);
}

/* Animated watermark layer (Lottie) — full-bleed, behind content */
.hero-lottie {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: -1;
  pointer-events: none;
}
.hero-lottie svg { display: block; width: 100%; height: 100%; }

/* Two large blurred colour glows (purple right-of-centre, blue left) */
.hero-glows {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(100px);
  pointer-events: none;
}
.glow {
  position: absolute;
  height: 70vh;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.glow-purple {
  background: radial-gradient(circle, rgba(98, 71, 140, .65) 0%, rgba(98, 71, 140, .40) 50%, transparent 100%);
  inset-inline-start: calc(50% - 10vh);
  top: calc(50% - 35vh);
}
.glow-blue {
  background: radial-gradient(circle, rgba(9, 54, 122, .65) 0%, rgba(9, 54, 122, .40) 50%, transparent 100%);
  inset-inline-start: calc(50% - 60vh);
  top: calc(50% - 30vh);
}

/* Content column: heading centred, phone pinned to the bottom */
.hero-body {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.hero-content { margin-block: auto; padding-bottom: 6rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.35;
  margin-bottom: 20px;
}
.hero-title .underline-word { position: relative; white-space: nowrap; }
.hero-title .underline-word .stroke {
  position: absolute;
  inset-block-end: -14px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 105%;
  filter: brightness(0) invert(1);
}
html[dir="rtl"] .hero-title .underline-word .stroke { transform: translateX(50%) scaleX(-1); }

.hero-text {
  font-size: 1.06rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  margin: 0 auto 32px;
}
/* Phone mockup — sits at the bottom of the hero flow with an open bottom.
   Matches the live site: min(90vw, 25rem) wide, 4px white border, 4rem top radius. */
.phone-mock {
  width: min(90vw, 25rem);
  padding: 0 2rem 2.5rem;
  border: 4px solid var(--color-white);
  border-block-end: 0;
  border-radius: 4rem 4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.phone-mock .notch-wrap {
  margin-bottom: 2rem;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.phone-mock .notch {
  display: block;
  width: 5.5rem;
  height: 1.5rem;
  margin-top: .5rem;
  border: 3px solid var(--color-white);
  border-radius: 999px;
  opacity: .9;
}
.phone-mock .cs {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.4;
  text-align: center;
  color: var(--color-white);
  margin-bottom: 5rem;
}

/* ===========================================================================
   Why Reem — three feature cards
   =========================================================================== */
.why-section { padding: 96px 0 56px; background: var(--color-white); }
.why-head { max-width: 720px; margin-bottom: 48px; }
.why-head .eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--color-reem-purple);
  margin-bottom: 14px;
}
.why-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--color-title);
  line-height: 1.25;
  margin-bottom: 14px;
}
.why-head p { color: var(--color-paragraph); font-size: 1.08rem; }

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 18px;
  padding: 30px 28px 34px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: #d9c8f5;
  box-shadow: 0 22px 48px rgba(32, 63, 106, .1);
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-reem-purple));
  color: #fff;
  margin-bottom: 22px;
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-title);
  margin-bottom: 8px;
}
.why-card p { color: var(--color-paragraph); font-size: .97rem; line-height: 1.65; }

/* ===========================================================================
   Meet Reem — AI banker panel with chat preview
   =========================================================================== */
.meet-section { padding: 24px 0 88px; background: var(--color-white); }
.meet-panel {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  border-radius: 28px;
  padding: clamp(32px, 5vw, 60px);
  color: #fff;
  background:
    radial-gradient(700px 420px at 85% 110%, rgba(138, 86, 201, .5), transparent 65%),
    linear-gradient(115deg, #1c3050 0%, #33255e 55%, #4e3380 100%);
  overflow: hidden;
}
.meet-eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  color: #c9b8ea;
  margin-bottom: 16px;
}
.meet-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 16px;
}
.meet-text {
  color: rgba(255, 255, 255, .85);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 22px;
}
.meet-checks { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.meet-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .93rem;
  color: rgba(255, 255, 255, .88);
}
.meet-checks svg { flex: none; color: #9ed9b5; }

.meet-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meet-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  background: #fff;
  color: #2a1d52;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.meet-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }
.meet-btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
}
.meet-btn.ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }

.chat-preview {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(6px);
}
.cp-bubble {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.55;
}
.cp-user {
  align-self: flex-end;
  background: #fff;
  color: #2a2140;
  border-start-end-radius: 4px;
}
.cp-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, .14);
  color: #f1eafe;
  border-start-start-radius: 4px;
}

/* Scroll-reveal micro animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .why-cards { grid-template-columns: 1fr; }
  .meet-panel { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Bank-message band (animated GIF, edge-faded like the live site)
   =========================================================================== */
.gif-band {
  background: var(--color-white);
  padding: 80px 24px;
  display: flex;
  justify-content: center;
}
.gif-band img {
  width: 100%;
  max-width: 860px;            /* keep near the GIF's native size so the logo isn't oversized */
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 1%, #000 8%, #000 92%, transparent 99%);
          mask-image: linear-gradient(to right, transparent 1%, #000 8%, #000 92%, transparent 99%);
}

/* ===========================================================================
   Generic page header (Our Team hero band)
   =========================================================================== */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 72px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(900px 500px at 50% -20%, rgba(98,71,140,.6), transparent 60%),
    linear-gradient(160deg, #203f6a 0%, #142c4d 60%, #0e2441 100%);
}
.page-hero .eyebrow {
  display: inline-block;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; color: #a99cc8; margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 18px;
}
.page-hero p {
  color: rgba(255,255,255,.82);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===========================================================================
   Our Team sections
   =========================================================================== */
.section { padding: 72px 0; }

/* Light header variant for white pages */
.site-header.on-light { color: var(--color-title); background: #fff; }

/* Intro */
.team-intro {
  padding: calc(var(--header-h) + 56px) 0 24px;
  text-align: center;
  background: #fff;
}
.badge-pill {
  display: inline-block;
  background: #e9f2fc;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  padding: 12px 26px;
  border-radius: 999px;
}
.team-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3rem);
  color: var(--color-title);
  line-height: 1.35;
  max-width: 820px;
  margin: 36px auto 22px;
}
.team-sub {
  color: var(--color-paragraph);
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
}

.section-head { text-align: center; max-width: 820px; margin: 0 auto 52px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  color: var(--color-title);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-head p { color: var(--color-paragraph); font-size: 1.02rem; }

/* Board carousel */
.board-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.board-track::-webkit-scrollbar { display: none; }
.board-slide {
  flex: 0 0 calc((100% - 4 * 24px) / 5);
  scroll-snap-align: start;
  text-align: center;
  cursor: pointer;
}
.board-slide .b-photo {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-card-bg);
}
.board-slide .b-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: grayscale(1);
}
.board-slide h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--color-title);
  margin: 18px 0 6px;
}
.board-slide .role { color: var(--color-paragraph); font-size: .95rem; }

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.carousel-nav button {
  width: 42px; height: 42px;
  border: 0; border-radius: 10px;
  background: #f1f3f8;
  color: var(--color-title);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.carousel-nav button:hover { background: var(--color-primary); color: #fff; }
html[dir="rtl"] .carousel-nav button svg { transform: scaleX(-1); }

/* CEO — photo left, light-blue card right */
.ceo {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 28px;
  align-items: stretch;
}
.ceo-photo {
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-card-bg);
}
.ceo-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: grayscale(1);
}
.ceo-card {
  background: var(--color-secondary);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ceo-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 22px;
}
.ceo-card p {
  color: var(--color-paragraph);
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Visionary team — plain 4-column grid */
.team-grid {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(4, 1fr);
}
.t-member { cursor: pointer; }
.t-member .t-photo {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-card-bg);
}
.t-member .t-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .3s ease;
}
.t-member:hover .t-photo img { transform: scale(1.04); }
.t-member h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-title);
  margin: 20px 0 8px;
}
.t-member .role { color: var(--color-paragraph); font-size: .98rem; }

/* Passionate team */
.passion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  align-items: start;
}
.passion-col { display: flex; flex-direction: column; gap: 44px; }
.passion-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: var(--color-title);
  line-height: 1.55;
}
.passion-title .underline-word { position: relative; white-space: nowrap; }
.passion-title .underline-word .stroke {
  position: absolute;
  inset-block-end: -16px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 100%;
}
html[dir="rtl"] .passion-title .underline-word .stroke { transform: translateX(50%) scaleX(-1); }
.passion-text {
  color: var(--color-paragraph);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 540px;
}
.passion-img { border-radius: 20px; width: 100%; object-fit: cover; }
.passion-img.img-1 { height: 340px; margin-top: auto; }
.passion-img.img-2 { height: 620px; }
.passion-img.img-3 { height: 430px; margin-top: 32px; }

/* Modal for full bios */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(14, 36, 65, .55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 24px;
  max-width: 720px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 0;
}
.modal-head {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
  align-items: center;
  padding: 28px 28px 20px;
  border-bottom: 1px solid #eef1f5;
  position: sticky; top: 0; background: #fff; border-radius: 24px 24px 0 0;
}
.modal-head img { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; background: var(--color-card-bg); }
.modal-head h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-primary); }
.modal-head .role { color: var(--color-reem-purple); font-weight: 700; }
.modal-body { padding: 24px 28px 32px; }
.modal-body p { color: var(--color-paragraph); margin-bottom: 14px; }
.modal-close {
  position: absolute; inset-block-start: 20px; inset-inline-end: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #f0f2f6; color: var(--color-title);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--color-reem-purple); color: #fff; }

/* ===========================================================================
   Footer
   =========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, .72);
  padding: 64px 0 34px;
}
/* Top row: brand/about on the left, Links + Info columns on the right */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 460px; }
.footer-brand img { height: 46px; filter: brightness(0) invert(1); margin-bottom: 24px; }
.footer-brand p { font-size: .95rem; line-height: 1.85; color: rgba(255, 255, 255, .66); }

.footer-cols { display: flex; gap: 96px; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; }
.footer-nav h5 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.footer-nav a { font-size: .95rem; color: rgba(255, 255, 255, .66); transition: color .2s ease; }
.footer-nav a:hover { color: #fff; }

.footer-divider { height: 1px; background: rgba(255, 255, 255, .12); margin: 44px 0 24px; }

/* Bottom: copyright then powered-by, stacked and left-aligned */
.footer-bottom { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-bottom .copyright {
  font-size: .86rem; line-height: 1.75; color: rgba(255, 255, 255, .55); margin: 0;
}
.footer-bottom .powered {
  font-size: .86rem; color: rgba(255, 255, 255, .82);
  text-decoration: underline; text-underline-offset: 3px;
}
.footer-bottom .powered:hover { color: #fff; }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .board-slide { flex-basis: calc((100% - 2 * 24px) / 3); }
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .ceo { grid-template-columns: 1fr; }
  .ceo-photo { max-width: 420px; }
  .passion-grid { grid-template-columns: 1fr; gap: 36px; }
  .passion-img.img-1, .passion-img.img-2 { height: 360px; }
  .passion-img.img-3 { height: 300px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    color: var(--color-title);
    padding: 12px 24px 20px;
    box-shadow: 0 20px 40px rgba(14,36,65,.14);
    transform: translateY(-140%);
    transition: transform .3s ease;
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links .nav-link { color: var(--color-title); padding: 14px 8px; border-radius: 8px; }
  .nav-links .nav-link.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav { gap: 10px; }
}

@media (max-width: 760px) {
  .footer-top { gap: 36px; }
  .footer-cols { gap: 56px; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .board-slide { flex-basis: calc((100% - 24px) / 1.5); }
  .modal-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-cols { gap: 48px; }
}

/* ===========================================================================
   Reem Assistant widget — edge tab + full-height side drawer
   =========================================================================== */
.ra-root { font-family: var(--font-base); }

/* Edge tab launcher */
.ra-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 10px 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(165deg, #9a4df5 0%, #6d28d9 55%, #4c1d95 100%);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    -6px 8px 26px rgba(91, 33, 182, .45),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: padding .25s ease, box-shadow .25s ease, filter .25s ease;
}
.ra-tab::after {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .35) 50%, transparent 58%);
  transform: translateY(-100%);
  animation: ra-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ra-shine { 0%, 70% { transform: translateY(-100%); } 85%, 100% { transform: translateY(100%); } }
.ra-tab:hover {
  padding-right: 15px;
  filter: brightness(1.08);
  box-shadow: -8px 10px 34px rgba(109, 40, 217, .6), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.ra-tab-icon { display: block; }
.ra-tab-icon svg { width: 18px; height: 18px; }
.ra-tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ra-root.ra-open .ra-tab { display: none; }

/* Dimmed backdrop behind the open drawer */
.ra-scrim {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(10, 4, 26, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.ra-root.ra-open .ra-scrim { opacity: 1; visibility: visible; }

/* Drawer — full-height side panel overlaying the page */
.ra-drawer {
  position: fixed;
  inset-block: 0;
  right: 0;
  z-index: 1400;
  width: min(400px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 22px 0 0 22px;   /* curved on the leading edge only */
  overflow: hidden;
  box-shadow: -24px 0 70px rgba(15, 8, 35, .35);
  transform: translateX(110%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.22,.8,.3,1), visibility .35s;
}
.ra-root.ra-open .ra-drawer { transform: none; visibility: visible; }

/* Header */
.ra-head {
  background: linear-gradient(100deg, #45246e 0%, #6d3fa8 100%);
  color: #fff;
  padding: 14px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: start;
  flex: none;
}
.ra-head-slim { padding-bottom: 14px; }
.ra-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.ra-head-title { flex: 1; text-align: center; }
.ra-head-right { display: flex; align-items: center; gap: 8px; }
.ra-brand { font-size: .85rem; color: #cbb7ea; font-weight: 500; margin-top: 8px; }
.ra-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.ra-chat-title { font-weight: 700; font-size: 1.02rem; }
.ra-icon-btn {
  width: 34px; height: 34px; flex: none;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.ra-icon-btn:hover { background: rgba(255, 255, 255, .26); }
.ra-icon-btn svg { width: 17px; height: 17px; }
[dir="rtl"] .ra-icon-btn svg { transform: scaleX(-1); }

/* Language pills */
.ra-langs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 3px;
}
.ra-lang {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .85);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.ra-lang.active { background: #fff; color: #45246e; }

/* Menu header identity */
.ra-head-menu { padding-bottom: 26px; }
.ra-identity { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.ra-avatar {
  position: relative;
  width: 58px; height: 58px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #a06ee0, #5b2e91 75%);
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.ra-avatar img { width: 28px; height: auto; }
.ra-online-dot {
  position: absolute;
  inset-block-end: 2px;
  inset-inline-end: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #34d17b;
  border: 2px solid #58307f;
}
.ra-id-text { display: flex; flex-direction: column; gap: 2px; }
.ra-id-text .ra-brand { margin-top: 0; }
.ra-online { font-size: .78rem; color: #b8f5d3; display: flex; align-items: center; gap: 6px; }

/* Menu options */
.ra-body { padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }

.ra-section-label {
  margin: 18px 4px 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9c92b3;
}
.ra-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ra-chip {
  border: 1.5px solid #e6def5;
  background: #faf8fd;
  color: #4a3d6b;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .86rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.ra-chip:hover {
  background: linear-gradient(135deg, #8a56c9, #5b2e91);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

.ra-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ra-stat {
  background: #f7f5fb;
  border: 1px solid #eee9f7;
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.ra-stat strong { font-size: .95rem; color: #3d2a63; }
.ra-stat small { font-size: .72rem; color: #8a8f9c; }
.ra-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #eee9f7;
  border-radius: 14px;
  cursor: pointer; text-align: start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  font-family: inherit;
  margin-bottom: 10px;
}
.ra-option:hover {
  border-color: #d9c8f5;
  box-shadow: 0 10px 26px rgba(98, 71, 140, .12);
  transform: translateY(-1px);
}
.ra-opt-go {
  margin-inline-start: auto;
  color: #b9a8d8;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.ra-opt-go svg { width: 18px; height: 18px; }
[dir="rtl"] .ra-opt-go svg { transform: scaleX(-1); }
.ra-option:hover .ra-opt-go { opacity: 1; transform: translateX(0); }

.ra-powered {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: .76rem;
  letter-spacing: .04em;
  color: #a99bc4;
}
.ra-powered svg { width: 12px; height: 12px; }
.ra-opt-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: #efe8fa;
  color: #62478c;
  display: grid; place-items: center;
}
.ra-opt-icon svg { width: 22px; height: 22px; }
.ra-opt-text { display: flex; flex-direction: column; gap: 2px; }
.ra-opt-text strong { font-size: 1.02rem; color: #22143d; font-weight: 700; }
.ra-opt-text small { font-size: .82rem; color: #8a8f9c; }

.ra-close {
  border: 0; border-top: 1px solid #eef0f4;
  background: none;
  padding: 14px;
  font-size: .92rem;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  flex: none;
}
.ra-close:hover { color: #22143d; background: #fafafa; }

/* Chat view */
.ra-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #faf9fc;
}
.ra-bubble {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: .93rem;
  line-height: 1.55;
  word-break: break-word;
  box-shadow: 0 2px 10px rgba(34, 20, 61, .06);
  animation: ra-pop .28s cubic-bezier(.2,.9,.35,1.2) both;
}
@keyframes ra-pop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.ra-user { white-space: pre-wrap; }
.ra-bubble p { margin: 0 0 8px; }
.ra-bubble p:last-child, .ra-bubble ul:last-child, .ra-bubble ol:last-child { margin-bottom: 0; }
.ra-bubble ul, .ra-bubble ol { margin: 2px 0 10px; padding-inline-start: 20px; }
.ra-bubble li { margin-bottom: 5px; }
.ra-bubble li:last-child { margin-bottom: 0; }
.ra-bubble strong { color: #3d2a63; }
.ra-bubble code {
  background: rgba(98, 71, 140, .12);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: .86em;
}
.ra-bot {
  align-self: flex-start;
  background: #efeaf7;
  color: #2a2140;
  border-start-start-radius: 4px;
}
.ra-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #7a4cb8, #5b2e91);
  color: #fff;
  border-start-end-radius: 4px;
}
.ra-typing { display: flex; gap: 5px; padding: 14px 16px; }
.ra-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #9b86c4;
  animation: ra-blink 1.2s infinite;
}
.ra-typing span:nth-child(2) { animation-delay: .2s; }
.ra-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ra-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.ra-input-row {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid #eef0f4;
  background: #fff;
  flex: none;
}
.ra-input {
  flex: 1;
  border: 1.5px solid #e3e6ee;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: .93rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.ra-input:focus { border-color: #8a56c9; box-shadow: 0 0 0 4px rgba(138, 86, 201, .12); }
.ra-send { transition: transform .15s ease, filter .15s ease; }
.ra-send:hover { transform: scale(1.06); filter: brightness(1.1); }
.ra-send {
  width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #8a56c9, #5b2e91);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.ra-send svg { width: 18px; height: 18px; }
[dir="rtl"] .ra-send svg { transform: scaleX(-1); }

/* ---------------- Voice call view (call-style UX) ---------------- */
.ra-drawer-call {
  background: linear-gradient(180deg, #3b1d63 0%, #2a1349 55%, #1f0e38 100%);
  color: #fff;
}
.ra-callhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px 8px;
  flex: none;
}
.ra-callmeta { display: flex; flex-direction: column; gap: 2px; }
.ra-call-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c4b0e8;
}
.ra-call-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.ra-drawer-call .ra-icon-btn { background: rgba(255,255,255,.12); }
.ra-drawer-call .ra-langs { background: rgba(255,255,255,.12); }

.ra-callstage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 20px;
}
.ra-orbwrap { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.ra-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .14);
  inset: 0;
}
.ra-ring.r2 { inset: -22px; border-color: rgba(255, 255, 255, .07); }
.ra-callorb {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #8b52d6, #4b2585 72%);
  box-shadow:
    0 0 60px rgba(124, 72, 196, .5),
    inset 0 2px 14px rgba(255, 255, 255, .18);
  transition: box-shadow .3s ease, transform .3s ease;
}
.ra-callorb img { width: 64px; height: auto; }
.ra-callorb::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.55) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
}
.ra-speaking .ra-callorb::before,
.ra-thinking .ra-callorb::before { opacity: 1; animation: ra-orbit 1.6s linear infinite; }
@keyframes ra-orbit { to { transform: rotate(360deg); } }
.ra-listening .ra-callorb { box-shadow: 0 0 70px rgba(96, 200, 140, .45); }
.ra-listening .ra-ring { animation: ra-ringpulse 1.8s infinite; }
.ra-speaking .ra-callorb { animation: ra-orbtalk 1.1s ease-in-out infinite; box-shadow: 0 0 80px rgba(170, 110, 255, .65); }
.ra-thinking .ra-callorb { opacity: .75; animation: ra-orbthink 1.4s ease-in-out infinite; }
@keyframes ra-ringpulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes ra-orbtalk { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes ra-orbthink { 0%,100% { opacity: .75; } 50% { opacity: .5; } }

.ra-callstatus { font-size: .95rem; color: #d9cdf2; min-height: 1.4em; }

.ra-voicepick { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #c4b0e8; }
.ra-voice-select {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .85rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  backdrop-filter: blur(6px);
  max-width: 220px;
  transition: border-color .2s ease, background .2s ease;
}
.ra-voice-select:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .18); }
.ra-voice-select option { color: #22143d; }

.ra-callstrip {
  flex: none;
  background: rgba(255, 255, 255, .07);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 12px 16px;
}
.ra-calllog {
  max-height: 168px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .93rem;
  line-height: 1.55;
  color: #e8e0f7;
}
.ra-callline strong { color: #fff; }
.ra-callline.u { color: #cbb7ea; }

.ra-callcontrols {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 16px 0 22px;
}
.ra-ctl {
  width: 56px; height: 56px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.ra-ctl:hover { transform: scale(1.07); }
.ra-ctl svg { width: 24px; height: 24px; }
.ra-ctl-mic { background: rgba(255, 255, 255, .16); color: #fff; }
.ra-ctl-mic.muted { background: #f3c623; color: #3b1d63; }
.ra-ctl-hang { background: #e0244a; color: #fff; box-shadow: 0 8px 22px rgba(224, 36, 74, .45); }

/* Voice placeholder view (unconfigured) */
.ra-voice-body {
  padding: 40px 26px;
  text-align: center;
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.7;
}
.ra-voice-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #efe8fa;
  color: #62478c;
  display: grid; place-items: center;
}
.ra-voice-icon svg { width: 26px; height: 26px; }

@media (max-width: 480px) {
  .ra-drawer { width: 100vw; border-radius: 0; }
  .ra-orbwrap { width: 150px; height: 150px; }
  .ra-callorb { width: 126px; height: 126px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; scroll-behavior: auto; transition: none; }
}
