/* =============================================================
   HZL Microsite — Section 7: Board of Directors
   Continuous GSAP marquee · Beams background
   Hover: #7fb942 highlight · colour photo · role info
   ============================================================= */

/* ── Section shell ─────────────────────────────────────────── */
.bod {
  position: relative;
  background: var(--navy-900);
  padding: 1.2rem 0 1.2rem;
  overflow: hidden;
  min-height: 860px;
}

/* ── Beam background ────────────────────────────────────────── */
.bod__beam-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Vertical gradient beam columns */
.bod__beam-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(79,224,207,0.08) 40%, transparent 100%)
      10% 0 / 140px 100% no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(0,96,163,0.07) 50%, transparent 100%)
      26% 0 / 90px 100% no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(127,185,66,0.07) 38%, transparent 100%)
      44% 0 / 110px 100% no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(79,224,207,0.06) 44%, transparent 100%)
      63% 0 / 100px 100% no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(0,96,163,0.06) 35%, transparent 100%)
      80% 0 / 80px 100% no-repeat,
    linear-gradient(180deg, transparent 0%, rgba(127,185,66,0.05) 42%, transparent 100%)
      93% 0 / 70px 100% no-repeat;
  animation: beamBreath 5s ease-in-out infinite alternate;
}

/* Ambient glow blob at bottom-centre */
.bod__beam-bg::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 300px;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(79,224,207,0.07) 0%, transparent 70%);
  animation: beamGlow 7s ease-in-out infinite alternate;
}

@keyframes beamBreath {
  0%   { opacity: 0.35; }
  100% { opacity: 1; }
}

@keyframes beamGlow {
  0%   { opacity: 0.5; transform: translateX(-50%) scale(1); }
  100% { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

/* ── Section header — centred ───────────────────────────────── */
.bod__header {
  position: relative;
  z-index: 1;
  padding: 2.6rem var(--gutter) 0;
  margin-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bod__title {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(238, 242, 246, 0.96);
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

/* ── Carousel outer ─────────────────────────────────────────── */
.bod__carousel {
  position: relative;
  z-index: 1;
}

/* ── Track viewport — clips overflow ────────────────────────── */
.bod__track-wrap {
  overflow: hidden;
  height: 600px;
  display: flex;
  align-items: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

/* ── Track — GSAP animates transform, no CSS transition ─────── */
.bod__track {
  display: flex;
  align-items: center;
  gap: 16px;
  will-change: transform;
  transform-style: preserve-3d;   /* passes perspective through to cards */
  /* NO transition here — GSAP drives it */
}

/* ── Director card — all equal size ─────────────────────────── */
.bod__card {
  flex-shrink: 0;
  width: 390px;
  height: 440px;
  border-radius: 32px;            /* premium rounded — was 16px */
  background: rgba(238, 242, 246, 0.04);
  border: 1px solid rgba(238, 242, 246, 0.09);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  position: relative;             /* required for z-index stacking */
  transition:
    background   0.32s ease,
    border-color 0.32s ease;
}

/* ── Hover: olive-green highlight ───────────────────────────── */
.bod__card:hover {
  background: #7fb942;
  border-color: #7fb942;
}

.bod__card:hover .bod__card-name {
  color: var(--navy-900);
}

.bod__card:hover .bod__card-photo {
  filter: grayscale(0%);
}

.bod__card:hover .bod__card-bottom {
  max-height: 64px;
  opacity: 1;
}

/* ── Card name ──────────────────────────────────────────────── */
.bod__card-name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0em;
  line-height: 1.2;
  color: rgba(238, 242, 246, 0.9);
  margin: 0;
  flex-shrink: 0;
  transition: color 0.28s ease;
}

/* ── Photo wrap — fixed height ──────────────────────────────── */
.bod__card-photo-wrap {
  flex: none;
  height: 300px;
  border-radius: 18px;            /* matches card's larger radius — was 10px */
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(79, 224, 207, 0.07) 0%, transparent 70%),
    linear-gradient(to bottom, var(--navy-600) 0%, var(--navy-700) 100%);
}

.bod__card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.38s ease;
}

/* ── Bottom info — slides in on hover ───────────────────────── */
.bod__card-bottom {
  flex-shrink: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.3s ease 0.05s;
}

.bod__card-role-label {
  display: none;
}

.bod__card-role {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  line-height: 1.35;
}

/* ── Navigation arrows ──────────────────────────────────────── */
.bod__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 242, 246, 0.16);
  background: rgba(238, 242, 246, 0.04);
  color: rgba(238, 242, 246, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.bod__nav:hover {
  background: rgba(127, 185, 66, 0.15);
  border-color: #7fb942;
  color: #7fb942;
}

.bod__nav svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bod__nav--prev { left:  var(--gutter); }
.bod__nav--next { right: var(--gutter); }

/* ── Footer: CTA ────────────────────────────────────────────── */
.bod__footer {
  position: relative;
  z-index: 1;
  padding: 0.3rem var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bodCtaShimmer {
  0%   { background-position: 0 0, 0%   50%; }
  50%  { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0%   50%; }
}

.bod__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.68em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--navy-900), var(--navy-900)) padding-box,
    linear-gradient(
      135deg,
      #0060a3  0%,
      #4fe0cf 22%,
      #ffffff 44%,
      #7fb942 66%,
      #4fe0cf 82%,
      #0060a3 100%
    ) border-box;
  background-size: 100%, 300% 300%;
  animation: bodCtaShimmer 2.8s ease-in-out infinite;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.88);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s;
}

.bod__cta:hover { color: #ffffff; }

.bod__cta-arrow {
  display: inline-block;
  transition: transform 0.22s;
}

.bod__cta:hover .bod__cta-arrow { transform: translateX(5px); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bod__track-wrap { height: 520px; }
  .bod__card       { width: 300px; height: 370px; border-radius: 24px; }
  .bod__card-photo-wrap { height: 240px; border-radius: 14px; }
}

@media (max-width: 640px) {
  .bod            { padding: 2rem 0; }
  /* Disable 3D perspective — normal flat slider on mobile */
  .bod__track-wrap {
    height: 440px;
    perspective: none;
  }
  .bod__track {
    transform-style: flat;
  }
  .bod__card      { width: 240px; height: 310px; border-radius: 20px; padding: 14px; }
  .bod__card-photo-wrap { height: 200px; border-radius: 12px; }
  .bod__card-name { font-size: 18px; }
  .bod__nav--prev { left: 0.5rem; }
  .bod__nav--next { right: 0.5rem; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bod__beam-bg::before,
  .bod__beam-bg::after { animation: none; }
  .bod__card       { transition: background 0.2s; }
  .bod__card-photo { transition: none; }
}
