/**
 * TWC Team Grid Block Styles
 */

.twc-team {
  --twc-dark-navy:  #060f1d;
  --twc-white:      #f0f2f5;
  --twc-grey:       #8a96a8;
  --twc-accent:     #0976bb;
  --twc-steel:      #2d3f5e;

  position: relative;
  z-index: 2;
  padding: 120px 24px;
  background: var(--twc-dark-navy);
}

.twc-team__inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ─── Section header ─── */
.twc-team__header {
  text-align: center;
  margin-bottom: 64px;
}

.twc-team__header .twc-section-label {
  font-size: 13px;
  color: var(--twc-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  font-family: 'DM Sans', sans-serif;
}

.twc-team__header .twc-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--twc-white);
  margin: 12px 0 0;
}

/* ─── Grid ─── */
.twc-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* ─── Card ─── */
.twc-team__card {
  padding: 36px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.5s ease, border-color 0.5s ease;
}

.twc-team__card:hover {
  background: rgba(9, 124, 195, 0.04);
  border-color: rgba(9, 124, 195, 0.15);
}

/* ─── Avatar ─── */
.twc-team__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid rgba(9, 124, 195, 0.15);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.twc-team__card:hover .twc-team__avatar {
  border-color: var(--twc-accent);
}

.twc-team__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Initials placeholder — shown when no headshot is set */
.twc-team__avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--twc-steel);
  color: var(--twc-accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ─── Text ─── */
.twc-team__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--twc-white);
  margin: 0 0 4px;
}

.twc-team__role {
  font-size: 13px;
  color: var(--twc-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}

.twc-team__bio {
  font-size: 14px;
  color: var(--twc-grey);
  line-height: 1.7;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

/* ─── Scroll reveal (handled by theme.js) ─── */
.twc-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.twc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.block-editor .twc-reveal {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .twc-team {
    padding: 80px 24px;
  }

  .twc-team__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}
