/* css/team.css - organigram layout & styling (keeps animations/features intact) */
:root {
  --bg: #f6fbfc;
  --card: #ffffff;
  --muted: #6b7a88;
  --accent: #15a57a;
  --glass: rgba(21, 165, 122, 0.07);
  --soft-shadow: 0 10px 30px rgba(22, 40, 60, 0.06);
  --radius: 12px;
  --gap: 18px;
  --max: 1200px;
  --easing: cubic-bezier(0.2, 0.9, 0.3, 1);
}

* {
  box-sizing: border-box;
}
.page {
  max-width: var(--max);
  margin: 28px auto;
  padding: 18px;
}
.org {
  position: relative;
  padding: 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--soft-shadow);
  overflow: visible;
}
.svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* card base */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition:
    transform 0.24s var(--easing),
    box-shadow 0.24s var(--easing);
  border: 1px solid rgba(10, 30, 40, 0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  object-position: top;
}
.card .body {
  padding: 10px;
}
.card h3,
.card h4 {
  margin: 6px 0 8px;
}
.role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

/* CEO */
.ceo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 3;
}
.card-ceo {
  width: 320px;
  border-radius: 12px;
}
.card-ceo img {
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  object-position: top;
}

/* Officers row */
.officers-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 18px;
  z-index: 3;
  align-items: flex-start;
}
.officer {
  width: 240px;
}
.officer img {
  height: 200px;
  object-fit: cover;
  object-position: top;
}

/* groups below */
.groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  z-index: 3;
}
.group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.group-head {
  background: var(--glass);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(10, 30, 40, 0.03);
}
.group-head h4 {
  margin: 0;
  color: var(--accent);
}
.group-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ensure equal height cards inside group */
.group-members .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* hover + active */
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 46px rgba(10, 30, 60, 0.08);
}
.card.active {
  outline: 3px solid rgba(21, 165, 122, 0.12);
  box-shadow: 0 26px 70px rgba(21, 165, 122, 0.06);
}

/* footer note */
.footer-note {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* responsive */
@media (max-width: 1100px) {
  .groups {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 980px) {
  .groups {
    grid-template-columns: 1fr;
  }
  .officers-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .officer {
    width: 92%;
  }
  .card-ceo {
    width: 92%;
  }
}
@media (max-width: 720px) {
  .group-members {
    grid-template-columns: 1fr;
  }
  .card img {
    height: 300px;
  }
}

/* CEO contact buttons (append to team.css) */
.contact-actions {
  margin-top: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* shared button base */
.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(10, 30, 40, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* phone button (uses your --accent color) */
.btn-phone {
  background: linear-gradient(180deg, var(--accent), #0e8a66);
  color: #fff;
}
.btn-phone:hover,
.btn-phone:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 30, 40, 0.08);
  outline: 3px solid rgba(21, 165, 122, 0.08);
}

/* whatsapp button (WhatsApp brand green) */
.btn-whatsapp {
  background: linear-gradient(180deg, #25d366, #1da851);
  color: #ffffff;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 30, 40, 0.08);
  outline: 3px solid rgba(37, 211, 102, 0.08);
}

/* icon sizing inside buttons */
.contact-actions .fa-phone,
.contact-actions .fa-whatsapp {
  font-size: 16px;
  line-height: 1;
}

/* small screen adjustments (keeps layout intact) */
@media (max-width: 720px) {
  .contact-actions {
    gap: 8px;
  }
  .contact-actions a {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
  }
}

/* visually-hidden helper (if you want SR-only text) */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
/* Keep CEO and VP side-by-side; matches existing card sizing */
.ceo-wrap.ceo-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 22px; /* space between CEO and VP */
  margin-bottom: 22px;
  position: relative;
  z-index: 3;
}

/* make VP card visually similar to the CEO card */
.card-vp {
  width: 300px; /* close to .card-ceo width but slightly narrower */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ensure VP image matches CEO image height and cropping */
.card-vp .media img,
.card-ceo .media img {
  height: 250px;
  object-fit: cover;
  display: block;
  object-position: top;
}

/* keep body padding consistent */
.card-vp .body {
  padding: 10px;
}

/* responsive: stack on smaller screens (matches your existing breakpoints) */
@media (max-width: 980px) {
  .ceo-wrap.ceo-pair {
    flex-wrap: wrap;
    gap: 18px;
  }
  .card-ceo,
  .card-vp {
    width: 92%;
  }
}

/* minor visual polish: match buttons (if you enable contact on VP later) */
.card-vp .contact-actions {
  margin-top: 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* ==============================
   CEO highlight styles (append)
   - keeps original sizing so layout is unchanged
   ============================== */

/* make the CEO card stand out with stronger shadow & subtle gold trim */
.card-ceo--highlight {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 26px 70px rgba(34, 20, 8, 0.08); /* richer shadow */
  transform-origin: center top;
  overflow: visible;
}

/* image overlay for subtle vignette and warmth */
.card-ceo--highlight .media {
  position: relative;
}
.card-ceo--highlight .media img {
  display: block;
  width: 100%;
  height: 250px; /* matches your existing height */
  object-fit: cover;
  object-position: top;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* warm overlay to make portrait pop */
.card-ceo--highlight .ceo-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    rgba(255, 215, 120, 0.04)
  );
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* badge (crown + CEO) top-left */
.card-ceo--highlight .ceo-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffd36b, #f2b84f);
  color: #2b1a00;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(42, 24, 8, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* crown icon sizing */
.card-ceo--highlight .ceo-badge .fa-crown {
  font-size: 14px;
  line-height: 1;
}

/* larger, more prominent name */
.card-ceo--highlight .ceo-name {
  margin: 6px 0 4px;
  font-size: 18px;
  letter-spacing: 0.2px;
  font-weight: 800;
  color: #0b2b1f;
}

/* role pill */
.card-ceo--highlight .role-ceo {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(21, 165, 122, 0.12),
    rgba(21, 165, 122, 0.06)
  );
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(21, 165, 122, 0.08);
}

/* tagline & extra lines */
.card-ceo--highlight .ceo-tagline {
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.card-ceo--highlight .ceo-extra {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 15px;
}

/* slightly larger contact buttons for the CEO */
.card-ceo--highlight .contact-actions a {
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 10px;
}

/* subtle transform on hover to emphasize leadership */
.card-ceo--highlight:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 40px 90px rgba(34, 20, 8, 0.12);
}

/* keep responsive behavior consistent with existing breakpoints */
@media (max-width: 980px) {
  .card-ceo--highlight .ceo-badge {
    left: 10px;
    top: 10px;
    padding: 5px 8px;
    font-size: 15px;
  }
  .card-ceo--highlight .ceo-name {
    font-size: 16px;
  }
}
