/* CACHE-BUSTING: this file is linked as "team-style.css?v=N" in every team page.
   Netlify caches CSS for a year, so AFTER EDITING THIS FILE bump the version:
   run a find-and-replace across team/*.html changing ?v=1 -> ?v=2 (then ?v=3, etc.).
   Without bumping, returning visitors keep the old styles. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --emerald: #2ECE8C; --charcoal: #3B3A52; --grey: #6B6B7B;
  --warm-white: #F8F7F4; --off-white: #F2F0EC; --border: rgba(59,58,82,0.1);
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
}
body { font-family: var(--font-body); color: var(--charcoal); background: var(--warm-white); -webkit-font-smoothing: antialiased; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 76px;
  background: rgba(248,247,244,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo img { height: 52px; }
.nav-back {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--grey);
  text-decoration: none; transition: color 0.2s;
}
.nav-back:hover { color: var(--emerald); }

.hero {
  padding: 140px 0 80px;
  background: var(--charcoal);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: rgba(46,206,140,0.05);
  pointer-events: none;
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 60px;
  display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: end;
}
.hero-photo {
  width: 280px; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 16px; display: block;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px); color: white; font-weight: 400; line-height: 1.1;
}
.hero-title {
  font-size: 18px; color: rgba(255,255,255,0.55); margin-top: 12px; font-weight: 300;
}

.content { max-width: 1160px; margin: 0 auto; padding: 80px 60px; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 80px; }
.bio-section h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 400;
  color: var(--charcoal); margin-bottom: 28px;
}
.bio-section p {
  font-size: 16px; color: var(--grey); line-height: 1.85; margin-bottom: 20px;
}
.sidebar-card {
  background: white; border-radius: 16px; padding: 32px;
  border: 1px solid var(--border); height: fit-content;
  position: sticky; top: 96px;
}
.sidebar-card h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 20px;
}
.sidebar-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--grey); line-height: 1.5;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald); flex-shrink: 0; margin-top: 7px;
}

.team-strip {
  background: white; border-top: 1px solid var(--border); padding: 60px 0;
}
.team-strip-inner { max-width: 1160px; margin: 0 auto; padding: 0 60px; }
.team-strip h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 32px;
}
.team-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-mini { text-decoration: none; }
.team-mini-photo {
  width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: var(--off-white); margin-bottom: 12px; transition: opacity 0.2s;
}
.team-mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-mini:hover .team-mini-photo { opacity: 0.8; }
.team-mini-name { font-size: 15px; font-weight: 600; color: var(--charcoal); }
.team-mini-role { font-size: 13px; color: var(--grey); margin-top: 2px; }
.team-mini.active .team-mini-name { color: var(--emerald); }
.team-mini.active .team-mini-photo { outline: 3px solid var(--emerald); border-radius: 12px; }

.footer {
  background: var(--charcoal); padding: 32px 60px;
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.4); font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer a:hover { color: white; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
  .nav { padding: 0 20px; }
  .hero { padding: 116px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; align-items: start; }
  .hero-photo { width: 200px; }
  .content { padding: 56px 20px; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .sidebar-card { position: static; }
  .team-strip { padding: 48px 0; }
  .team-strip-inner { padding: 0 20px; }
  .team-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
