/* =====================================================================
   Equipe › Grid de membros + paginação.
   Faixa CLARA (lideranças): card COM foto + bio (hover/+) + LinkedIn.
   Faixa ESCURA (#404040): só nome + cargo. Featured (Muller) tem foto à parte.
   ===================================================================== */

.page-equipe .team-grid-sec { padding-block: 0 clamp(2rem, 1.5rem + 3vw, 56px); }
.page-equipe .team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 1rem + 2vw, 30px) clamp(1rem, .5rem + 2vw, 30px); }

/* Sócios: mostra 2 linhas; o resto expande no botão "Ver mais" (4 col → 8 cards). */
.page-equipe .team-socios:not(.is-expanded) .team-card--photo:nth-child(n+9) { display: none; }
.page-equipe .team-more { display: flex; justify-content: center; margin-top: clamp(1.5rem, 1rem + 2vw, 40px); }
.page-equipe .team-more__btn {
	display: inline-flex; align-items: center; gap: .6rem; height: 48px; padding: 0 26px;
	border-radius: 999px; border: 1px solid rgba(45,45,45,.4); background: transparent;
	color: var(--leto-ink); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
	transition: background .25s, color .25s, border-color .25s;
}
.page-equipe .team-more__btn:hover { background: var(--leto-ink); color: #fff; border-color: var(--leto-ink); }
.page-equipe .team-more__icon { font-size: 19px; line-height: 1; transition: transform .25s; }
.page-equipe .team-socios.is-expanded .team-more__icon { transform: rotate(45deg); }

/* ---------- card COM foto (faixa clara) ---------- */
.page-equipe .team-card--photo { display: flex; flex-direction: column; }
.page-equipe .team-card__photo { position: relative; display: block; aspect-ratio: 273/231; overflow: hidden; border-radius: 6px; background: var(--leto-charcoal); }
.page-equipe .team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: transform .5s var(--ease); }
.page-equipe .team-card--photo:hover .team-card__photo img { transform: scale(1.04); }
.page-equipe .team-card--photo .team-card__name { margin-top: 1rem; font-size: 19.8px; font-weight: 500; color: var(--leto-ink); }
.page-equipe .team-card--photo .team-card__role { display: flex; align-items: flex-start; gap: 7px; margin-top: .25rem; font-size: 12.6px; line-height: 1.35; color: var(--leto-gray); }
.page-equipe .team-card--photo .team-card__name + .team-card__role { margin-bottom: clamp(.8rem, 1.4vw, 1.1rem); }

/* ponto verde antes do cargo (fiel ao Figma) — bullet preso ao topo da 1ª linha;
   com flex + align-items:flex-start o marcador nunca é "comido" pelo cargo multi-linha. */
.page-equipe .team-card__role,
.page-equipe .team-card__orole { display: flex; align-items: flex-start; gap: 7px; }
.page-equipe .team-card__role::before,
.page-equipe .team-card__orole::before {
	content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
	background: #9FB45E; margin-top: calc(1.35em / 2 - 3.5px);
}

/* rodapé do card com foto: hairline + botões (LinkedIn "in" + "+") */
.page-equipe .team-card__foot {
	margin-top: auto; padding-top: clamp(.7rem, 1vw, 1rem);
	border-top: 1px solid rgba(45,45,45,.16);
	display: flex; align-items: center; justify-content: flex-end; gap: .5rem;
}
.page-equipe .team-card__icon {
	flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid rgba(45,45,45,.32); background: transparent; color: var(--leto-ink);
	display: grid; place-items: center; cursor: pointer; text-decoration: none;
	transition: background .25s, color .25s, border-color .25s;
}
.page-equipe .team-card__icon svg { width: 16px; height: 16px; }
.page-equipe .team-card__icon:hover { background: var(--leto-ink); color: #fff; border-color: var(--leto-ink); }

/* Linha de ações do sócio em destaque (LinkedIn + artigos). */
.page-equipe .team-featured__actions { display: flex; gap: 10px; margin-top: clamp(1.25rem, 1rem + 1.5vw, 26px); }

/* clique no "+" (ou hover) abre a bio sobre a foto (painel escuro com "in" + "×") */
.page-equipe .team-card__overlay {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; gap: .5rem;
	padding: clamp(.95rem, 1.7vw, 1.3rem);
	background: #2d2d2d;
	opacity: 0; pointer-events: none; transition: opacity .3s var(--ease, ease);
}
.page-equipe .team-card.is-open .team-card__overlay,
.page-equipe .team-card--has-bio:hover .team-card__overlay,
.page-equipe .team-card--has-bio:focus-within .team-card__overlay { opacity: 1; pointer-events: auto; }
.page-equipe .team-card__oname { font-size: 14.5px; font-weight: 500; color: #fff; }
.page-equipe .team-card__orole { font-size: 11px; line-height: 1.3; color: #cfcfcf; }
.page-equipe .team-card__orole::before { background: var(--leto-green); }
.page-equipe .team-card__bio {
	flex: 1 1 auto; min-height: 0; overflow-y: auto;
	font-size: 11.4px; line-height: 1.46; color: rgba(255,255,255,.84); padding-right: 4px;
}
.page-equipe .team-card__bio::-webkit-scrollbar { width: 4px; }
.page-equipe .team-card__bio::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 4px; }
.page-equipe .team-card__actions { display: flex; gap: .5rem; padding-top: .3rem; }
.page-equipe .team-card__overlay .team-card__icon { width: 36px; height: 36px; border-color: rgba(255,255,255,.45); color: #fff; }
.page-equipe .team-card__overlay .team-card__icon:hover { background: #fff; color: var(--leto-ink); border-color: #fff; }

/* ---------- card MÍNIMO (faixa escura: só nome + cargo) ---------- */
.page-equipe .team-grid-dark { background: #404040; padding-block: clamp(3rem, 2rem + 4vw, 88px); margin-top: clamp(1.25rem, 1rem + 2vw, 30px); }
.page-equipe .team-grid-dark__head { margin-bottom: clamp(1.6rem, 1rem + 2.2vw, 40px); }
.page-equipe .team-grid-dark__title { font-size: clamp(1.35rem, 1rem + 1.4vw, 26px); font-weight: 500; line-height: 1.1; color: #fff; }
.page-equipe .team-card--min { padding-top: clamp(.9rem, 1.3vw, 1.15rem); border-top: 1px solid rgba(255,255,255,.22); }
.page-equipe .team-card--min .team-card__name { font-size: 19.8px; font-weight: 500; line-height: 1.15; color: #fff; }
.page-equipe .team-card--min .team-card__role { margin-top: .35rem; font-size: 12.6px; line-height: 1.35; color: #cfcfcf; }

/* responsivo — "2 linhas" acompanha o nº de colunas */
@media (max-width: 900px) {
	.page-equipe .team-grid { grid-template-columns: repeat(2, 1fr); }
	.page-equipe .team-socios:not(.is-expanded) .team-card--photo:nth-child(n+9) { display: flex; }
	.page-equipe .team-socios:not(.is-expanded) .team-card--photo:nth-child(n+5) { display: none; }
}
@media (max-width: 520px) {
	.page-equipe .team-grid { grid-template-columns: 1fr; }
	.page-equipe .team-socios:not(.is-expanded) .team-card--photo:nth-child(n+5) { display: flex; }
	.page-equipe .team-socios:not(.is-expanded) .team-card--photo:nth-child(n+3) { display: none; }
}

/* =====================================================================
   Equipe — variante MINI com abas (estilo JGP)
   Filtro horizontal no topo + cards minimais (nome / hairline / cargo / "+")
   ===================================================================== */
.page-equipe .team-tabs {
	display: flex; gap: clamp(1.4rem, 1rem + 2vw, 44px); flex-wrap: nowrap;
	border-bottom: 1px solid rgba(45,45,45,.12);
	margin-bottom: clamp(1.6rem, 1rem + 2vw, 38px);
	overflow-x: auto; overflow-y: hidden;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	/* Folga nas extremidades pra 1ª e última aba aparecerem inteiras (sem letra cortada).
	   SEM mask-image: o fade nas bordas estava "comendo" a 1ª/última letra. */
	padding-inline: 4px;
	scroll-padding-inline: 12px;
}
.page-equipe .team-tabs::-webkit-scrollbar { height: 4px; }
.page-equipe .team-tabs::-webkit-scrollbar-thumb { background: rgba(45,45,45,.18); border-radius: 4px; }
.page-equipe .team-tab {
	appearance: none; border: 0; background: transparent; padding: 0 0 16px;
	font-family: inherit; font-size: clamp(15px, 13px + .25vw, 17px); font-weight: 500;
	color: var(--leto-gray); cursor: pointer; position: relative;
	flex: 0 0 auto; white-space: nowrap; scroll-snap-align: center;
	transition: color .2s;
}
.page-equipe .team-tab:hover { color: var(--leto-ink); }
.page-equipe .team-tab.is-active { color: var(--leto-ink); }
.page-equipe .team-tab.is-active::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
	height: 3px; background: var(--leto-green, #9FB45E);
}

.page-equipe .team-grid--mini {
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1rem, .8rem + 1.6vw, 22px);
}
.page-equipe .team-card--mini {
	position: relative;
	display: flex; flex-direction: column; gap: 0;
	padding: clamp(1.2rem, 1rem + 1vw, 1.6rem) clamp(1.1rem, .9rem + 1vw, 1.4rem);
	border: 1px solid rgba(45,45,45,.18); border-radius: 6px;
	background: transparent;
	min-height: 168px;
}
.page-equipe .team-card--mini .team-card__name {
	font-size: clamp(17px, 14px + .6vw, 22px); font-weight: 700; line-height: 1.18;
	color: var(--leto-ink); margin: 0;
}
.page-equipe .team-card--mini .team-card__hr {
	display: block; margin: clamp(1rem, .7rem + 1vw, 1.5rem) 0 clamp(.85rem, .6rem + .8vw, 1.1rem);
	height: 1px; background: rgba(45,45,45,.22);
}
.page-equipe .team-card--mini .team-card__roles { display: flex; flex-direction: column; gap: .5rem; }
.page-equipe .team-card--mini .team-card__role {
	display: flex; align-items: flex-start; gap: 7px;
	font-size: clamp(13px, 12px + .25vw, 15px); font-weight: 400; line-height: 1.4;
	color: var(--leto-gray); margin: 0;
}
/* Bullet verde alinhado ao topo da 1ª linha (nunca "comido" pelo cargo multi-linha). */
.page-equipe .team-card--mini .team-card__role::before {
	content: ""; display: block; flex: 0 0 auto;
	width: 6px; height: 6px; border-radius: 50%; background: #9FB45E;
	margin-top: .5em;
}

/* Foot fixo no fim do card mini: LinkedIn à esquerda · "+" à direita. */
.page-equipe .team-card--mini .team-card__foot {
	margin-top: auto;
	padding-top: clamp(.9rem, .7rem + .8vw, 1.2rem);
	display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.page-equipe .team-card--mini .team-card__foot:empty { display: none; }
.page-equipe .team-card--mini .team-card__icon--li {
	display: inline-grid; place-items: center;
	width: 28px; height: 28px; border-radius: 50%;
	color: var(--leto-gray); text-decoration: none;
	transition: color .2s, background .2s;
}
.page-equipe .team-card--mini .team-card__icon--li svg { width: 14px; height: 14px; }
.page-equipe .team-card--mini .team-card__icon--li:hover,
.page-equipe .team-card--mini .team-card__icon--li:focus-visible { color: var(--leto-ink); }
.page-equipe .team-card__plus {
	width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent;
	color: var(--leto-green-deep, #5e6b3a); cursor: pointer;
	display: grid; place-items: center; padding: 0;
	margin-left: auto; /* mantém à direita mesmo sem LinkedIn */
	transition: transform .25s var(--ease, ease);
}
.page-equipe .team-card__plus-icon { font-size: 26px; line-height: 1; font-weight: 300; }
.page-equipe .team-card--mini.is-open .team-card__plus { transform: rotate(45deg); }
.page-equipe .team-card--mini:hover { border-color: rgba(45,45,45,.42); }

.page-equipe .team-card--mini .team-card__bio {
	margin-top: clamp(.7rem, .5rem + .6vw, .9rem);
	font-size: 13.5px; line-height: 1.55; color: var(--leto-ink);
}
.page-equipe .team-card--mini .team-card__bio p { margin: 0; }

/* Filtro: esconde cards que não casam */
.page-equipe .team-card--mini.is-filtered-out { display: none; }
.page-equipe .team-empty { margin-top: 1.5rem; text-align: center; color: var(--leto-gray); font-size: 14px; }

@media (max-width: 1100px) { .page-equipe .team-grid--mini { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .page-equipe .team-grid--mini { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .page-equipe .team-grid--mini { grid-template-columns: 1fr; } }
