/* =========================================================
   TEAM PAGE — leadership grid (with founder highlight + a
   "growing team" placeholder card), values section, closing CTA.
   Depends on tokens defined in base.css.
   ========================================================= */

/* ---------- Hero ---------- */
.team-hero {
  padding-block: var(--space-xl) var(--space-lg);
  background: linear-gradient(180deg, var(--color-gray-bg) 0%, var(--color-white) 100%);
}
.team-hero-inner { max-width: 680px; }
.team-hero-inner h1 { margin-top: 0.6rem; }
.team-hero-inner .lead { margin-top: var(--space-sm); }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: var(--space-lg) var(--space-md);
}
.team-card-founder {
  border-color: var(--color-orange);
  box-shadow: 0 6px 24px rgba(241, 138, 1, 0.14);
}

.team-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(241, 138, 1, 0.12);
  color: var(--color-orange-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.team-photo {
  width: 128px; height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-gray-bg);
  margin-bottom: 0.75rem;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-card);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-navy);
  opacity: 0.35;
}
.icon-xl { width: 60px; height: 60px; }

.team-card h2 { font-size: 1.3rem; margin-top: 0.15rem; }
.team-role { font-weight: 700; color: var(--color-orange); font-size: 0.88rem; }
.team-bio { font-size: 0.92rem; margin-top: 0.35rem; max-width: 320px; }

.team-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  width: 100%;
}
.team-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-line);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-navy);
  transition: border-color var(--transition), color var(--transition);
}
.team-link:hover { border-color: var(--color-orange); color: var(--color-orange); }

/* ---------- "Growing team" placeholder card ---------- */
.team-card-join {
  justify-content: center;
  border-style: dashed;
  background: var(--color-gray-bg);
  box-shadow: none;
}
.team-join-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(37, 17, 150, 0.08);
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}
.team-card-join h3 { font-size: 1.1rem; }
.team-card-join p { font-size: 0.9rem; max-width: 280px; }

/* ---------- Values section ---------- */
.team-value {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.team-value-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(241, 138, 1, 0.16);
  color: var(--color-orange);
  margin-bottom: 0.3rem;
}
.team-value h3 { color: var(--color-white); font-size: 1.05rem; }
.team-value p { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }

/* ---------- Closing CTA ---------- */
.team-cta-inner { text-align: center; max-width: 620px; margin-inline: auto; }
.team-cta-inner .hero-actions { justify-content: center; margin-top: var(--space-md); }
