/* 2P Energia Solar — página Nosso Time (/empresa/time/) */

/* ------------------------------ HERO ------------------------------ */
.team-hero { position: relative; max-width: 1240px; margin: 0 auto; padding: 150px 24px 72px; }
.team-hero__title { font-family: var(--font-title); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 18px; max-width: 640px; }
.team-hero__title span { color: var(--orange); }
.team-hero__lead { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.78); max-width: 560px; margin: 0; }

/* ------------------------------ GRID ------------------------------ */
.team-wrap { padding: 64px 0 84px; }
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 52px 28px; max-width: 760px; margin: 0 auto;
}
.team-card {
  border: none; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-family: var(--font-body);
}
.team-card__photo {
  width: 164px; height: 164px; border-radius: 50%; object-fit: cover;
  border: 3px solid #FFFFFF; box-shadow: 0 12px 32px rgba(12,18,32,0.14);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card:hover .team-card__photo,
.team-card:focus-visible .team-card__photo {
  transform: translateY(-5px);
  border-color: rgba(240,104,32,0.55);
  box-shadow: 0 18px 44px rgba(240,104,32,0.26);
}
.team-card:focus-visible { outline: none; }
.team-card__name { margin-top: 16px; font-family: var(--font-title); font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.01em; }
.team-card__role { margin-top: 5px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); max-width: 220px; line-height: 1.5; }
.team-card__more { margin-top: 9px; font-size: 13px; font-weight: 700; color: var(--orange); transition: color .2s ease; }
.team-card:hover .team-card__photo { border-color: rgba(240,104,32,0.5); }
.team-card.is-open .team-card__photo { border-color: var(--orange); box-shadow: 0 16px 40px rgba(240,104,32,0.3); }
.team-card.is-open .team-card__more::after { content: ' ▴'; }
.team-card:not(.is-open) .team-card__more::after { content: ' ▾'; }

/* ------------------- DETALHE EXPANSÍVEL (inline) ------------------- */
.team-detail {
  grid-column: 1 / -1;
  background: #FFFFFF; border: 1px solid var(--line-soft); border-radius: 20px;
  box-shadow: 0 26px 60px rgba(12,18,32,0.12);
  margin: 4px 0 8px; overflow: hidden;
  /* folga para o auto-scroll (scrollIntoView) nao colar o card nas bordas */
  scroll-margin-top: 128px; scroll-margin-bottom: 28px;
}
.team-detail[hidden] { display: none; }
.team-detail.is-in { animation: teamDetailIn .32s ease; }
@keyframes teamDetailIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.team-detail__inner { position: relative; padding: 28px 34px; }
.team-detail__body { min-width: 0; padding-right: 44px; }
.team-detail__name { margin: 2px 0 0; font-family: var(--font-title); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--text); }
.team-detail__role { margin: 6px 0 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--orange); }
.team-detail__p { margin: 0 0 13px; font-size: 15px; line-height: 1.75; color: #3A4350; }
.team-detail__p:last-child { margin-bottom: 0; }
.team-detail__close {
  position: absolute; top: 16px; right: 18px; width: 34px; height: 34px;
  border: none; border-radius: 9px; background: var(--paper); color: var(--muted);
  font-size: 14px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.team-detail__close:hover { background: var(--ink); color: #FFFFFF; }
.team-detail__close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------------------------- RESPONSIVO ---------------------------- */
@media (max-width: 620px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 460px; gap: 40px 16px; }
}
@media (max-width: 640px) {
  .team-hero { padding: 128px 24px 56px; }
  .team-card__photo { width: 128px; height: 128px; }
  .team-detail__inner { padding: 22px 20px; }
  .team-detail__body { padding-right: 34px; }
  .team-detail__close { top: 12px; right: 12px; }
}
