/* ===== Leadership page (leadership.php) — site theme: --rr-* colours, .rr-eyebrow / .rr-title from style.css ===== */

/* ---- Our Core Management ---- */
.cm-section {
  --cm-ink: var(--rr-red, #15171c);
  --cm-navy: var(--rr-navy, #1b2a5b);
  --cm-gray: var(--rr-gray, #5e6470);
  --cm-border: #d8dbe2;
  padding: 80px 0;
  background: #f6f7fa;
}
.cm-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.cm-head .rr-title { margin-bottom: .8rem; }
.cm-head p { margin: 0; font-size: 1.05rem; line-height: 1.75; color: var(--cm-gray); }

/* 4 per row; the shorter last row stays centred */
.cm-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cm-card {
  position: relative;
  flex: 0 1 calc((100% - 72px) / 4);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: #1d1f25;
  box-shadow: 0 14px 36px rgba(27, 42, 91, .12);
  transition: box-shadow .35s, transform .35s;
}
.cm-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(27, 42, 91, .2); }
.cm-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  transition: transform .7s ease;
}
.cm-card:hover img { transform: scale(1.05); }
.cm-card::after {           /* deeper fade so the name always reads */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 11, 11, .92) 0%, rgba(12, 11, 11, .55) 28%, transparent 55%);
  pointer-events: none;
}

.cm-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.3rem 1.4rem 1.4rem;
  color: #fff;
}
.cm-info h3 { margin: 0 0 .55rem; font-size: 1.25rem; font-weight: 700; color: #fff; }
.cm-info h3::after {        /* short accent line between name and role */
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: .55rem;
  background: rgba(255, 255, 255, .6);
  transition: width .35s;
}
.cm-card:hover .cm-info h3::after { width: 56px; }
.cm-role { margin: 0; font-size: .9rem; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.cm-in {                    /* LinkedIn: top-right corner so every card lines up */
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--cm-ink);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.cm-in:hover { background: #0a66c2; color: #fff; transform: scale(1.08); }

/* reveal on scroll (only when JS is running) */
.cm-js .cm-card { opacity: 0; }
.cm-js .cm-card.is-in { animation: cm-rise .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .08s) both; }
@keyframes cm-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
@media (prefers-reduced-motion: reduce) {
  .cm-js .cm-card { opacity: 1; }
  .cm-js .cm-card.is-in { animation: none; }
}

@media (max-width: 1199.98px) {
  .cm-card { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 767.98px) {
  .cm-section { padding: 56px 0; }
  .cm-head { margin-bottom: 32px; }
  /* one card per row on phones */
  .cm-grid { gap: 18px; }
  .cm-card { flex-basis: 100%; max-width: 420px; border-radius: 20px; }
  .cm-info { padding: 1.2rem 1.3rem 1.3rem; }
  .cm-info h3 { font-size: 1.25rem; }
  .cm-role { font-size: .92rem; }
  .cm-in { top: 14px; right: 14px; width: 38px; height: 38px; }
}

/* ---- "Need Assistance?" banner ---- */
.lp-cta { padding: 0 0 80px; background: #f6f7fa; }
.lp-cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 3.2rem 3.5rem;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0c0b0b, #625651);   /* same as the enquiry popups */
  box-shadow: 0 20px 50px rgba(21, 23, 28, .18);
}
.lp-cta-card::before,
.lp-cta-card::after {       /* soft rings for depth */
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none;
}
.lp-cta-card::before { width: 340px; height: 340px; right: -90px; top: -170px; }
.lp-cta-card::after  { width: 220px; height: 220px; right: 140px; bottom: -150px; }
.lp-cta-copy { position: relative; max-width: 600px; }
.lp-cta .rr-eyebrow { color: rgba(255, 255, 255, .7); }
.lp-cta .rr-title { margin: .6rem 0 .8rem; color: #fff; }
.lp-cta .rr-title span { color: rgba(255, 255, 255, .7); }
.lp-cta-copy p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.lp-cta-actions { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 14px; flex: 0 0 auto; }
.lp-cta .rr-btn { justify-content: space-between; min-height: 54px; border: 0; background: #fff; color: var(--cm-ink, #15171c); cursor: pointer; }
.lp-cta .rr-btn:hover { background: #eef0f6; color: #15171c; }
.lp-cta .rr-btn .arrow { background: #15171c; }
.lp-cta-call {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.lp-cta-call:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff; }
.lp-cta-call small { display: block; font-size: .75rem; font-weight: 500; color: rgba(255, 255, 255, .65); }
.lp-cta-call-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

@media (max-width: 991.98px) {
  .lp-cta-card { flex-direction: column; align-items: flex-start; padding: 2.6rem 2.2rem; }
  .lp-cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  .lp-cta { padding-bottom: 56px; }
  .lp-cta-card { padding: 2rem 1.4rem; border-radius: 22px; gap: 24px; }
  .lp-cta-actions { flex-direction: column; width: 100%; }
}

/* ---- Meet Our Visionary Leaders (founders) ---- */
.vl-section {
  --vl-ink: var(--rr-red, #15171c);
  --vl-navy: var(--rr-navy, #1b2a5b);
  --vl-gray: var(--rr-gray, #5e6470);
  --vl-border: #d8dbe2;
  padding: 40px 0 40px;         /* the intro card above already adds 64px of space */
  background: #fff;
  isolation: isolate;          /* keeps the photo frame (z-index -1) above the section background */
}
.vl-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.vl-head .rr-title { margin-bottom: .8rem; }
.vl-head p { margin: 0; font-size: 1.08rem; line-height: 1.75; color: var(--vl-gray); }

.vl-leader {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 100px;
}
.vl-leader.vl-flip .vl-media { order: 2; }
@media (min-width: 992px) {
  .vl-body { padding-top: 1.2rem; }
}

/* photo: cut-out portrait standing on a soft panel */
.vl-media {
  position: relative;
  aspect-ratio: 1346 / 1264;
  border-radius: 36px;
  background:
    radial-gradient(circle at 70% 30%, #fff 0, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #eef0f6 0%, #dfe3ee 100%);
  box-shadow: 0 30px 60px rgba(27, 42, 91, .12);
}
.vl-media::before {           /* thin offset frame */
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--vl-border);
  border-radius: 36px;
  z-index: -1;
}
.vl-flip .vl-media::before { inset: 18px 18px -18px -18px; }
.vl-media img {
  position: absolute;
  left: 0;
  bottom: -5.8%;              /* the photos have ~6% empty space under the feet */
  width: 100%;
  height: auto !important;
}
.vl-badge {
  position: absolute;
  right: -22px;
  bottom: 34px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(21, 23, 28, .16);
  font-size: .82rem;
  color: var(--vl-gray);
}
.vl-flip .vl-badge { right: auto; left: -22px; }
.vl-badge strong { display: block; font-size: 1rem; color: var(--vl-ink); }
.vl-badge-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0c0b0b, #625651);
  color: #fff;
  font-size: 1.15rem;
}

/* text */
.vl-role {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rr-circle, #eef0f6);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vl-navy);
}
.vl-name {
  margin: .9rem 0 1.4rem;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--vl-ink);
}
.vl-quote {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.3rem 1.5rem 1.3rem 3.6rem;
  border-radius: 18px;
  background: #f6f7fa;
  font-size: 1.12rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--vl-ink);
}
.vl-quote::before {
  content: '\201C';
  position: absolute;
  left: 1.1rem;
  top: .6rem;
  font-family: Georgia, serif;
  font-size: 3.6rem;
  font-style: normal;
  line-height: 1;
  color: var(--vl-navy);
  opacity: .35;
}
.vl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.vl-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--vl-border);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--vl-ink);
}
.vl-tags i { color: var(--vl-navy); }
.vl-text { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.85; color: var(--vl-gray); }
.vl-more:not([hidden]) { animation: vl-open .4s ease both; }
@keyframes vl-open { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: none; } }

.vl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 1.6rem; }
.vl-toggle,
.vl-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 1.3rem;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.vl-toggle { border: 0; background: var(--vl-ink); color: #fff; }
.vl-toggle:hover { background: #000; }
.vl-toggle i { transition: transform .3s; }
.vl-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.vl-in { border: 1px solid var(--vl-border); background: #fff; color: var(--vl-ink); }
.vl-in i { color: #0a66c2; }
.vl-in:hover { border-color: #0a66c2; color: #0a66c2; }

/* reveal on scroll (only when JS is running) */
.vl-js [data-vl-reveal] { opacity: 0; }
.vl-js [data-vl-reveal].is-in { animation: cm-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.vl-js .vl-body.is-in { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .vl-js [data-vl-reveal] { opacity: 1; }
  .vl-js [data-vl-reveal].is-in, .vl-more:not([hidden]) { animation: none; }
}

@media (max-width: 991.98px) {
  .vl-leader { grid-template-columns: 1fr; gap: 48px; margin-bottom: 80px; }
  .vl-leader.vl-flip .vl-media { order: 0; }
  .vl-media { max-width: 560px; width: calc(100% - 18px); margin: 0 auto; }
  .vl-badge, .vl-flip .vl-badge { right: 16px; left: auto; bottom: 16px; }
}
@media (max-width: 575.98px) {
  .vl-section { padding: 24px 0 20px; }
  .vl-head { margin-bottom: 40px; }
  .vl-leader { gap: 36px; margin-bottom: 64px; }
  .vl-media, .vl-media::before { border-radius: 26px; }
  .vl-media::before, .vl-flip .vl-media::before { inset: 12px -12px -12px 12px; }
  .vl-badge, .vl-flip .vl-badge { right: 10px; bottom: 10px; padding: 8px 12px 8px 8px; gap: 8px; font-size: .72rem; border-radius: 14px; }
  .vl-badge strong { font-size: .88rem; }
  .vl-badge-ico { width: 34px; height: 34px; font-size: .95rem; border-radius: 10px; }
  .vl-name { margin-bottom: 1.1rem; }
  .vl-quote { padding: 1.1rem 1.1rem 1.1rem 3rem; font-size: 1rem; }
  .vl-quote::before { left: .8rem; font-size: 3rem; }
  .vl-text { font-size: .98rem; }
  .vl-actions > * { flex: 1 1 100%; justify-content: center; }
}
