/* ==========================================================================
   Macaw Bytes - Team page (corporate dark mood)
   Extends home.css tokens via body.page-team
   ========================================================================== */

.team-hero {
  position: relative;
  min-height: min(68svh, 580px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(7rem, 14vw, 9.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(165deg, #0a1218 0%, #0b0d10 45%, #0c1410 100%);
}

.team-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 14% 22%, rgba(74, 168, 224, 0.28), transparent 62%),
    radial-gradient(ellipse 48% 45% at 88% 16%, rgba(46, 174, 78, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 95%, rgba(240, 180, 41, 0.12), transparent 55%);
}

.team-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 4.8vw, 3.45rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  margin: 0.65rem auto 1.15rem;
  max-width: 14ch;
}

.team-hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--home-muted);
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.team-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--home-line);
  background: var(--home-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
  scroll-margin-top: 6rem;
}

.team-card:hover {
  border-color: rgba(46, 174, 78, 0.4);
  transform: translateY(-2px);
}

.team-card:target {
  border-color: rgba(74, 168, 224, 0.5);
  box-shadow: 0 0 0 1px rgba(74, 168, 224, 0.2);
}

.team-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.team-card__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--home-green);
  background: rgba(46, 174, 78, 0.1);
  border: 1px solid rgba(46, 174, 78, 0.25);
}

.team-card__num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--home-blue);
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--home-ink);
  margin: 0 0 0.25rem;
}

.team-card__role {
  margin: 0 0 0.45rem;
  color: var(--home-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.team-card__years {
  margin: 0 0 0.75rem;
  color: var(--home-muted);
  font-size: 0.85rem;
}

.team-card__bio {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.team-card__tags span {
  font-size: 0.75rem;
  color: var(--home-muted);
  border: 1px solid var(--home-line);
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  background: rgba(11, 13, 16, 0.4);
}

.team-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--home-green) !important;
}

.team-note {
  margin: 2rem 0 0;
  max-width: 42rem;
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.team-note a {
  color: var(--home-green) !important;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .team-hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .team-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card:hover {
    transform: none;
  }
}
