/* template-parts/section/built_for_teams.php */
/* ----------------------------------------------------------
   BUILT FOR TEAMS  (white bg | px 150px | py 80px)
   "Built for the realities of modern homebuilding"
---------------------------------------------------------- */
.built-for-teams {
	background-color: var(--color-white);
	padding: var(--section-py) var(--section-px);
}

.built-for-teams__container {
	max-width: var(--container-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.built-for-teams__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	max-width: 892px;
	margin: 0 auto;
	width: 100%;
}

.built-for-teams__heading {
	font-size: var(--fs-3xl);
	font-weight: 700;
	line-height: var(--lh-2xl);
	letter-spacing: -0.2px;
	color: var(--color-text-dark);
}

.built-for-teams__subtext {
	font-size: var(--fs-md);
	font-weight: 400;
	line-height: var(--lh-md);
	color: var(--color-text-dark);
}

.built-for-teams__subtext p {
	line-height: 24px;
}

.built-for-teams__content {
	display: flex;
	align-items: stretch;
	gap: 24px;
}

.built-for-teams__image-side {
	flex: 1 0 0;
	min-width: 0;
	overflow: hidden;
}
.flex-image-2{
    display: flex;
    flex-direction: column;
    gap: 24px;	
}
.built-for-teams__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.built-for-teams__cards {
	flex: 1 0 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.team-card {
	background-color: var(--color-card-bg);
	padding: 40px 30px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	align-self: stretch;
	position: relative;
	overflow: hidden;
}

/* Gradient overlay fades in on hover — only way to animate solid→gradient */
.team-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gradient-primary);
	opacity: 0;
	transition: opacity var(--transition-slow);
}

.team-card:hover::before {
	opacity: 1;
}

.team-card__title {
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: var(--lh-md);
	color: var(--color-text-dark);
	position: relative;
	z-index: 1;
	transition: color 0.35s ease;
}
.team-card__title span{
	color: var(--color-primary);
}
.team-card__body {
	font-size: var(--fs-md);
	font-weight: 400;
	line-height: var(--lh-md);
	color: var(--color-text-muted);
	position: relative;
	z-index: 1;
	transition: color 0.35s ease;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.team-card:hover .team-card__title,
.team-card:hover .team-card__title span,
.team-card:hover .team-card__body {
	color: var(--color-white);
	transition: color 0.35s ease;
}

.team-card:hover .team-card__icon {
	filter: brightness(0) invert(1);
	-webkit-filter: brightness(0) invert(1);
}
@media (max-width: 1024px) {
	.built-for-teams {
		padding: var(--section-py) var(--section-px);
	}
	.built-for-teams__container {
		gap: 48px;
	}
	.built-for-teams__header {
		gap: 30px;
	}
	.built-for-teams__heading {
		font-size: 32px;
		line-height: 34px;
	}
	.built-for-teams__content {
		flex-direction: column;
		gap: 48px;
	}
	.built-for-teams__cards {
		gap: 8px;
	}
	.built-for-teams__image-side {
		width: 100%;
		height: 370px;
		flex: none;
	}
}

@media (max-width: 767.9px) {
	.built-for-teams {
		padding: var(--section-py) var(--section-px);
	}
	.built-for-teams__container {
		gap: 24px;
	}
	.built-for-teams__header {
		gap: 24px;
	}
	.built-for-teams__heading {
		font-size: 24px;
		line-height: 34px;
	}
	.built-for-teams__content {
		gap: 20px;
	}
	.built-for-teams__image-side {
		height: 217px;
	}
	.team-card__title {
		font-size: var(--fs-md);
	}
	.team-card__body {
		font-size: var(--fs-xs);
		line-height: var(--lh-xs);
	}
}
