/**
 * Team member single template (single-team.php). Only enqueued on
 * singular `team` posts (see inc/theme-setup.php).
 *
 * All values confirmed against the real site's Theme Builder "Single
 * team" template (Elementor post 11996) and, where the JSON didn't
 * carry it (line-height, icon color, container width, section
 * background), direct DevTools measurement on a live member page.
 */

/* ---------- Decorative top band ---------- */
.team-single-banner {
	min-height: 360px;
	background: var(--bf-color-dark-green) url('../images/newsletter-bg.svg') top center / cover no-repeat;
}

@media (max-width: 1024px) {
	.team-single-banner {
		min-height: 180px;
	}
}

@media (max-width: 767px) {
	.team-single-banner {
		min-height: 160px;
	}
}

/* ---------- Photo + info ---------- */
.team-single-info {
	background: var(--bf-color-primary);
	padding-bottom: 80px;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.team-single-info {
		padding-bottom: 40px;
	}
}

@media (max-width: 767px) {
	.team-single-info {
		padding-bottom: 30px;
	}
}

.team-single-info__grid {
	display: flex;
	flex-wrap: wrap;
	max-width: 1270px;
	margin: 0 auto;
}

.team-single-info__photo,
.team-single-info__body {
	flex: 0 0 50%;
	max-width: 50%;
	box-sizing: border-box;
}

.team-single-info__photo img {
	display: block;
	width: 100%;
	height: 615px;
	object-fit: cover;
	border-radius: 20px;
	margin-top: -100px;
}

@media (max-width: 1024px) {
	.team-single-info__photo img {
		height: 500px;
		margin-top: -50px;
	}
}

@media (max-width: 767px) {
	.team-single-info__photo img {
		height: auto;
		margin-top: -50px;
	}
}

.team-single-info__body {
	padding: 30px;
	color: var(--bf-color-white);
}

@media (max-width: 1024px) {
	.team-single-info__body {
		padding: 20px;
	}
}

@media (max-width: 767px) {
	.team-single-info__body {
		padding: 10px;
	}
}

/* The role text's <strong> (e.g. "Co-Founder") breaks onto its own
   line in accent gold — the rest of the string (e.g. "Master Personal
   Trainer") stays plain white below it. */
.team-single-info__role {
	font-size: 25px;
	font-weight: 300;
	line-height: 35px;
	margin: 0;
}

.team-single-info__role strong {
	display: block;
	color: var(--bf-color-accent);
	font-weight: 800;
	font-size: 22px;
}

@media (max-width: 1024px) {
	.team-single-info__role {
		font-size: 22px;
		line-height: 32px;
	}
}

@media (max-width: 767px) {
	.team-single-info__role {
		font-size: 20px;
		line-height: 30px;
	}
}

.team-single-info__name {
	font-size: 50px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 4px;
	line-height: 1;
	margin: 30px 0;
}

@media (max-width: 1024px) {
	.team-single-info__name {
		font-size: 38px;
		line-height: 43px;
		margin: 20px 0;
	}
}

@media (max-width: 767px) {
	.team-single-info__name {
		font-size: 32px;
		line-height: 40px;
		margin: 0 0 20px;
	}
}

.team-single-info__social {
	display: flex;
	gap: 15px;
	list-style: none;
	margin: 0 0 60px;
	padding: 0;
}

.team-single-info__social a {
	color: var(--bf-color-white);
	font-size: 42px;
	line-height: 1;
	display: block;
}

@media (max-width: 1024px) {
	.team-single-info__social {
		margin-bottom: 20px;
	}

	.team-single-info__social a {
		font-size: 32px;
	}
}

@media (max-width: 767px) {
	.team-single-info__social {
		margin-bottom: 10px;
	}

	.team-single-info__social a {
		font-size: 28px;
	}
}

.team-single-info__bio {
	color: var(--bf-color-accent);
	font-size: 22px;
	font-weight: 700;
	line-height: 32px;
	margin: 0;
}

@media (max-width: 1024px) {
	.team-single-info__bio {
		font-size: 20px;
		line-height: 30px;
	}
}

.team-single-info__cta {
	display: inline-block;
	background: var(--bf-color-white);
	color: var(--bf-color-accent);
	font-family: 'Matter', var(--bf-font-body);
	font-size: 20px;
	text-transform: capitalize;
	text-decoration: none;
	border-radius: 6px;
	padding: 15px 40px;
	margin-top: 15px;
}

@media (max-width: 767px) {
	.team-single-info__cta {
		display: block;
		text-align: center;
	}
}

/* ---------- Long-form bio (post content) ---------- */
.team-single-content {
	background: var(--bf-color-primary);
	color: var(--bf-color-white);
	padding-bottom: 40px;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.team-single-content {
		padding-bottom: 10px;
	}
}

.team-single-content__inner {
	max-width: 1270px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	font-size: 18px;
	font-weight: 300;
	line-height: 30px;
}

@media (max-width: 767px) {
	.team-single-content__inner {
		font-size: 16px;
		line-height: 28px;
	}
}

.team-single-content__inner p,
.team-single-content__inner ul {
	margin: 0 0 20px;
}

.team-single-content__inner ul {
	padding-left: 25px;
}

.team-single-content__inner a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Mobile stacking ---------- */
@media (max-width: 767px) {
	.team-single-info__photo,
	.team-single-info__body {
		flex: 0 0 100%;
		max-width: 100%;
	}
}
