/* ============================================================
   Team (h2g/team) — teamblok op /over-ons, dynamisch uit CPT
   'teamlid' (inc/cpt-teamlid.php). Eén blok, twee ontwerp-
   varianten (attribuut 'variant'):
     - tm-sectie--a → portretgrid   (team-blok-1a.html)
     - tm-sectie--b → spotlight-lijst (team-blok-1b.html)
   Maten/kleuren 1:1 uit design/Contact+team/design_handoff_team_contact/.
   Kop (.sec-head/.eyebrow/.wrap) hergebruikt de sitebrede atomen
   (main.css) — zelfde conventie als h2g/reviews en h2g/over; de
   centrerende .sec-head.centered-varianten komen (net als bij
   h2g/reviews) uit reviews.css, dat sitebreed wordt geladen.
   ============================================================ */

.tm-sectie {
  background: var(--nile-900);
  padding: 120px 0;

  /* Sectie-gescopede kleuren die niet 1-op-1 op een bestaand token vallen. */
  --tm-bg-kaart:   #0D1420;
  --tm-rand-kaart: rgba(255, 255, 255, .07);
  --tm-rand-lijst: rgba(255, 255, 255, .08);
  --tm-zacht:      #7C8AA5;
  --tm-dim:        #52627E;
  --tm-hover:      #5FD5C2;
}

/* ── Kop: hergebruikte .wrap/.sec-head/.eyebrow, met kleine scoped
   overrides voor exacte handoff-maten (zelfde techniek als de
   .reviews-slider .sec-head h2-override in reviews.css). ── */
.tm-sectie .wrap { padding-left: 64px; padding-right: 64px; }

.tm-sectie .eyebrow { gap: 10px; }
.tm-sectie .eyebrow::before { width: 26px; }

.tm-sectie .sec-head { margin-bottom: 0; }

.tm-sectie--a .sec-head h2 { font-size: 46px; letter-spacing: -.5px; margin: 18px 0 14px; }
.tm-sectie--a .sec-head p  { margin-top: 0; font-size: 16px; line-height: 1.6; font-weight: 400; max-width: none; color: var(--tm-zacht); }

.tm-sectie--b .sec-head h2 { font-size: 46px; letter-spacing: -.5px; line-height: 1.12; margin: 18px 0 16px; }

/* ── Variant A — portretgrid ─────────────────────────────────── */
.tm-grid {
  margin-top: 56px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(var(--tm-cols, 4), 1fr);
}

.tm-kaart {
  display: flex;
  flex-direction: column;
  background: var(--tm-bg-kaart);
  border: 1px solid var(--tm-rand-kaart);
  border-radius: 14px;
  overflow: hidden;
  transition: .35s cubic-bezier(.2,.7,.3,1);
}
.tm-kaart:hover { transform: translateY(-4px); border-color: rgba(59,198,177,.4); }

.tm-foto {
  aspect-ratio: 3 / 4;
  background: #0F1826;
  overflow: hidden;
}
.tm-foto--placeholder {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 12px, transparent 12px 24px);
}
.tm-foto-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tm-body { padding: 20px 22px 22px; }
.tm-naam { font-family: var(--font-h); font-weight: 700; font-size: 19px; color: #fff; }
.tm-rol  { font-size: 13.5px; line-height: 1.45; color: var(--tm-zacht); margin-top: 4px; }
.tm-meer { margin-top: 16px; font-family: var(--font-h); font-weight: 600; font-size: 13.5px; color: var(--teal-300); }

.tm-cta { margin-top: 44px; display: flex; justify-content: center; }

/* ── CTA-knop (beide varianten) — hergebruikt .btn/.btn-primary
   (buttons.css); alleen de hover-tint volgt hier exact de handoff
   (#5FD5C2), zelfde techniek als .rvo-knop:hover in reviews-overzicht.css. ── */
.tm-knop:hover { background: var(--tm-hover); }
.tm-links .tm-knop { margin-top: 30px; }

/* ── Variant B — spotlight-lijst ─────────────────────────────── */
.tm-layout-b {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: start;
}

.tm-copy { margin: 0; font-size: 16px; line-height: 1.7; color: var(--tm-zacht); text-wrap: pretty; }

.tm-lijst { border-bottom: 1px solid var(--tm-rand-lijst); }
.tm-rij {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 18px;
  border-top: 1px solid var(--tm-rand-lijst);
  transition: .3s;
}
.tm-rij:hover { background: rgba(255,255,255,.03); }

.tm-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 16px;
  color: rgba(255,255,255,.85);
  letter-spacing: .5px;
}
.tm-avatar-img { object-fit: cover; display: block; }

.tm-mid { flex: 1; }
.tm-rij-naam { font-family: var(--font-h); font-weight: 700; font-size: 20px; color: #fff; }
.tm-rij-rol  { font-size: 14px; color: var(--tm-zacht); margin-top: 3px; }

.tm-focus { font-size: 14px; color: var(--tm-dim); text-align: right; }

.tm-pijl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(59,198,177,.35);
  color: var(--teal-300);
  font-size: 17px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}

/* ── Responsive — media queries 1-op-1 uit team-blok-1a.html / -1b.html ── */
@media (max-width: 1024px) {
  .tm-sectie .wrap { padding-left: 32px; padding-right: 32px; }

  .tm-sectie--a .sec-head h2,
  .tm-sectie--b .sec-head h2 { font-size: 36px; }

  .tm-sectie--a .tm-grid { grid-template-columns: repeat(2, 1fr); }

  .tm-layout-b { grid-template-columns: 1fr; gap: 40px; }
  .tm-focus { display: none; }
}

@media (max-width: 640px) {
  .tm-sectie { padding: 80px 0; }
  .tm-sectie .wrap { padding-left: 20px; padding-right: 20px; }

  .tm-sectie--a .sec-head h2,
  .tm-sectie--b .sec-head h2 { font-size: 30px; }

  .tm-sectie--a .tm-grid { grid-template-columns: 1fr; }

  .tm-rij { padding: 18px 10px; gap: 14px; }
  .tm-avatar { width: 52px; height: 52px; font-size: 14px; }
  .tm-rij-naam { font-size: 17px; }
}

/* ── Toetsenbord-focus: duidelijke teal ring op de donkere achtergrond ───── */
.tm-kaart:focus-visible,
.tm-rij:focus-visible,
.tm-knop:focus-visible {
  outline: 2px solid var(--teal-300);
  outline-offset: 3px;
}

/* ── Editor-only: informatieve placeholder i.p.v. teamleden-lijst ── */
.tm-editor-placeholder {
  margin-top: 32px;
  padding: 28px 24px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  text-align: center;
  color: rgba(255,255,255,.6);
}
.tm-editor-placeholder p { margin: 0 0 6px; }
.tm-editor-placeholder p:last-child { margin-bottom: 0; }
.tm-editor-placeholder__count { color: var(--teal-300); font-weight: 600; }
