/* ============================================================
   GURUDEV TRADERS — Team Page Styles
   css/team.css
   ============================================================ */

/* ── Page hero ───────────────────────────────────────────────────── */
.page-hero {
  background: var(--cream);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse 55% 80% at 100% 60%, rgba(107,62,31,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 1; }

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.page-breadcrumb a { color: var(--gold); }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb span { opacity: 0.5; }

/* ── Founding Legacy strip ───────────────────────────────────────── */
.legacy-strip {
  background: var(--warm-dark);
  padding: 0;
}

.legacy-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.legacy-cell {
  padding: 32px 28px;
  border-right: 1px solid rgba(253,248,242,0.08);
  text-align: center;
}

.legacy-cell:last-child { border-right: none; }

.legacy-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.legacy-num em {
  font-style: normal;
  color: var(--gold-light);
}

.legacy-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253,248,242,0.4);
}

/* ── Generation divider ──────────────────────────────────────────── */
.gen-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
}

.gen-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gen-divider-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
  padding: 6px 16px;
  border: 1px solid var(--border-hi);
  border-radius: 99px;
}

/* ── Team grid ───────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ── Team card ───────────────────────────────────────────────────── */
.team-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: rgba(107,62,31,0.28);
}

/* Accent bar at top */
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.team-card:hover::before { transform: scaleX(1); }

.team-card-inner {
  display: flex;
  gap: 28px;
  padding: 36px 32px;
  align-items: flex-start;
}

/* ── Avatar ──────────────────────────────────────────────────────── */
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  color: var(--ivory);
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(107,62,31,0.2);
  transition: border-color var(--transition);
}

.team-card:hover .team-avatar::after { border-color: var(--gold); }

.gen-1 .team-avatar {
  background: linear-gradient(145deg, var(--warm-dark), #4a2e14);
}

.gen-2 .team-avatar {
  background: linear-gradient(145deg, var(--gold), var(--gold-light));
}

/* ── Card body ───────────────────────────────────────────────────── */
.team-card-body { flex: 1; min-width: 0; }

.team-gen-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.gen-1 .team-gen-tag {
  background: rgba(44,26,14,0.08);
  color: var(--warm-dark);
  border: 1px solid rgba(44,26,14,0.15);
}

.gen-2 .team-gen-tag {
  background: rgba(107,62,31,0.1);
  color: var(--gold);
  border: 1px solid rgba(107,62,31,0.22);
}

.team-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--warm-dark);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  line-height: 1.2;
}

.team-role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.team-divider {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: 99px;
  margin-bottom: 16px;
}

.team-bio {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ── Skill tags ──────────────────────────────────────────────────── */
.team-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.team-highlight-tag {
  font-size: 11px;
  color: var(--text-soft);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 6px;
  transition: border-color var(--transition), color var(--transition);
}

.team-card:hover .team-highlight-tag {
  border-color: var(--border-hi);
  color: var(--text-mid);
}

/* ── Values section ──────────────────────────────────────────────── */
.values-section { background: var(--cream); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
  border-color: rgba(107,62,31,0.28);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(107,62,31,0.12), rgba(107,62,31,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}

.value-icon svg { width: 22px; height: 22px; }

.value-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(107,62,31,0.25);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.value-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--warm-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.value-body {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ── Join CTA ────────────────────────────────────────────────────── */
.join-section {
  background: var(--warm-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(107,62,31,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.join-section .section-title  { color: var(--ivory); position: relative; }
.join-section .section-title em { color: var(--gold-light); }
.join-section .section-body {
  color: rgba(253,248,242,0.6);
  margin: 0 auto 40px;
  position: relative;
}

.join-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .team-grid        { grid-template-columns: 1fr; }
  .legacy-inner     { grid-template-columns: repeat(2, 1fr); }
  .legacy-cell:nth-child(2) { border-right: none; }
  .values-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .team-card-inner  { flex-direction: column; gap: 20px; }
  .team-avatar      { width: 80px; height: 80px; font-size: 26px; }
  .values-grid      { grid-template-columns: 1fr; }
}
