/**
 * Leadership Carousel block (views/blocks/leadership-carousel.twig).
 *
 * Plain CSS outside the Sass build; loaded on the front end and in the
 * block editor by AssetsServiceProvider.
 */

.leader-carousel {
  --lc-ink: #16201d;
  --lc-text: #1e2b28;
  --lc-muted: #53625e;
  --lc-green: #00ce7c;
  --lc-green-text: #00744b; /* brand green darkened for text (AA) */
  --lc-line: #d5deda;
  --lc-paper: #f1f5f3;      /* light green-grey panel, set off from the white intro */
  --lc-tile: #0e2622;
  margin: 0 !important;
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--lc-paper);
  color: var(--lc-text);
}

.leader-carousel__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--global--container-horizontal-padding, 20px);
}

/* ---- Head: copy on the left, button on the right ----------------------- */

.leader-carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.leader-carousel__copy { max-width: 760px; }

.leader-carousel .leader-carousel__title {
  margin: 0 0 16px;
  font-family: "TradeGothicLT-BoldCondTwenty", "TradeGothicLT-Bold", "Arial Narrow", sans-serif;
  font-weight: normal;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--lc-ink);
}

.leader-carousel .leader-carousel__intro {
  max-width: 64ch;
  margin: 0;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
}

.leader-carousel .leader-carousel__cta { margin-top: 0 !important; }

/* Slides per view; track, arrows and progress line: carousel.css. */
@media (max-width: 1199px) { .leader-carousel { --carousel-per-view: 4; } }
@media (max-width: 899px)  { .leader-carousel { --carousel-per-view: 3; } }
@media (max-width: 599px)  { .leader-carousel { --carousel-per-view: 1.6; --carousel-gap: 14px; } }

/* ---- Card -------------------------------------------------------------- */

.leader-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.leader-card__photo {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--lc-tile);
}

.leader-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.leader-card__name {
  display: block;
  font-family: "TradeGothicLT-Bold", "Helvetica Neue", Arial, sans-serif;
  font-weight: normal;
  font-size: 19px;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.leader-card__role {
  display: block;
  margin-top: 4px;
  font-family: "TradeGothicLT", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--lc-muted);
}

a.leader-card:hover .leader-card__photo img { transform: scale(1.03); }
a.leader-card:hover .leader-card__name { color: var(--lc-green-text); }

a.leader-card:focus-visible {
  outline: 3px solid var(--lc-green);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .leader-card__photo img { transition: none; }
}
