/* Ontowin — Team Page Styles */

/* ── HERO ── */
.team-hero {
  background: var(--surface);
  padding: 10rem 3rem 5rem;
  border-bottom: 1px solid var(--border);
}

.team-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.team-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.team-hero-lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 560px;
}

/* ── MAIN ── */
.team-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* ── GROUP SECTION ── */
.team-group-header {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.team-group-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
}

.team-group-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-group-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.team-group-meta {
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.team-flag { font-size: 1rem; }

.team-group-desc {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 580px;
}

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* ── TEAM CARD ── */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,14,26,0.08);
}

/* Photo area */
.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--accent-light);
  overflow: hidden;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Initials avatar — shown when no photo */
.team-card-photo::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--deep-light) 100%);
  letter-spacing: -0.02em;
  /* Hidden when real image loads */
  z-index: 0;
}

.team-card-photo img {
  position: relative;
  z-index: 1;
}

/* If img fails to load, onerror hides it → avatar shows */

/* Card body */
.team-card-body {
  padding: 1rem 0.875rem 1.125rem;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.team-card-role {
  font-size: 0.775rem;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.4;
}

/* ── COMING SOON PLACEHOLDER ── */
.team-grid-placeholder {
  grid-template-columns: 1fr;
}

.team-coming-soon {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-3);
}

.team-coming-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-3);
  flex-shrink: 0;
}

.team-coming-soon p {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── NAV ACTIVE ── */
.nav-active {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .team-hero { padding: 8rem 1.5rem 3.5rem; }
  .team-main { padding: 3rem 1.5rem 4rem; gap: 4rem; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-group-header { flex-direction: column; gap: 1rem; }
}

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