/* ==========================================================
   SEÇÃO CONHEÇA NOSSO TIME
   ========================================================== */

.team-section {
	--team-primary: #0878ce;
	--team-primary-dark: #0563ad;
	--team-title: #1e293b;
	--team-text: #64748b;
	--team-card-background: #ffffff;
	--team-section-background: #f7f9fc;
	--team-border: rgba(15, 23, 42, 0.08);

	position: relative;
	overflow: hidden;
	padding: 90px 0 100px;
	background:
		radial-gradient(
			circle at 50% 0%,
			rgba(8, 120, 206, 0.06),
			transparent 35%
		),
		var(--team-section-background);
}

.team-section::before {
	content: "";
	position: absolute;
	top: -180px;
	right: -180px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: rgba(8, 120, 206, 0.04);
	pointer-events: none;
}

.team-section::after {
	content: "";
	position: absolute;
	bottom: -220px;
	left: -220px;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: rgba(8, 120, 206, 0.03);
	pointer-events: none;
}

.team-container {
	position: relative;
	z-index: 1;
}

/* ==========================================================
   CABEÇALHO
   ========================================================== */

.team-heading {
	max-width: 850px;
	margin: 0 auto 55px;
	text-align: center;
}

.team-heading-line {
	display: block;
	width: 70px;
	height: 3px;
	margin: 0 auto 22px;
	border-radius: 20px;
	background: var(--team-primary);
}

.team-title {
	margin: 0 0 18px;
	color: var(--team-title);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -1px;
	text-transform: uppercase;
}

.team-title span {
	color: var(--team-primary);
}

.team-description {
	max-width: 790px;
	margin: 0 auto;
	color: var(--team-text);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
}

/* ==========================================================
   GRID
   ========================================================== */

.team-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 22px;
	align-items: stretch;
}

/* ==========================================================
   CARD
   ========================================================== */

.team-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--team-border);
	border-radius: 18px;
	background: var(--team-card-background);
	box-shadow:
		0 12px 35px rgba(15, 23, 42, 0.07),
		0 2px 8px rgba(15, 23, 42, 0.03);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.team-card:hover {
	transform: translateY(-8px);
	border-color: rgba(8, 120, 206, 0.2);
	box-shadow:
		0 22px 50px rgba(15, 23, 42, 0.12),
		0 4px 12px rgba(15, 23, 42, 0.05);
}

/* ==========================================================
   FOTO
   ========================================================== */

.team-card-image {
	position: relative;
	height: 280px;
	margin: 10px 10px 0;
	overflow: hidden;
	border-radius: 13px;
	background: #e8edf3;
}

.team-card-image::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4px;
	background: var(--team-primary);
}

.team-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.45s ease;
}

.team-card:hover .team-card-image img {
	transform: scale(1.035);
}

/* ==========================================================
   CONTEÚDO
   ========================================================== */

.team-card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 21px 17px 18px;
	text-align: center;
}

.team-card-name {
	margin: 0 0 5px;
	color: var(--team-title);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.team-card-role {
	display: block;
	color: var(--team-primary);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.team-card-divider {
	display: block;
	width: 32px;
	height: 2px;
	margin: 17px auto;
	border-radius: 20px;
	background: rgba(8, 120, 206, 0.25);
}

.team-card-text {
	margin: 0 0 22px;
	color: var(--team-text);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.65;
}

/* ==========================================================
   REDES SOCIAIS
   ========================================================== */

.team-card-socials {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: auto;
	padding-top: 4px;
}

.team-card-socials a {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(8, 120, 206, 0.14);
	border-radius: 50%;
	background: #ffffff;
	color: var(--team-primary);
	font-size: 15px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.team-card-socials a:hover,
.team-card-socials a:focus {
	border-color: var(--team-primary);
	background: var(--team-primary);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-3px);
	outline: none;
}

.team-card-socials a:focus-visible {
	outline: 3px solid rgba(8, 120, 206, 0.22);
	outline-offset: 3px;
}

/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (min-width: 1400px) {

	.team-container {
		width: 1320px;
		max-width: calc(100% - 40px);
	}

}

@media (max-width: 1199px) {

	.team-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.team-card-image {
		height: 300px;
	}

}

@media (max-width: 991px) {

	.team-section {
		padding: 75px 0 85px;
	}

	.team-title {
		font-size: 36px;
	}

	.team-description {
		font-size: 16px;
	}

	.team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.team-card-image {
		height: 340px;
	}

}

@media (max-width: 767px) {

	.team-section {
		padding: 65px 0 70px;
	}

	.team-heading {
		margin-bottom: 38px;
		padding: 0 10px;
	}

	.team-heading-line {
		margin-bottom: 18px;
	}

	.team-title {
		font-size: 29px;
		letter-spacing: -0.5px;
	}

	.team-description {
		font-size: 15px;
		line-height: 1.65;
	}

	.team-grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}

	.team-card-image {
		height: 390px;
	}

	.team-card-content {
		padding-right: 24px;
		padding-left: 24px;
	}

	.team-card-name {
		font-size: 22px;
	}

	.team-card-text {
		font-size: 14px;
	}

}

@media (max-width: 480px) {

	.team-card-image {
		height: 340px;
	}

}