/**
 * Team & Guides Section Styles
 *
 * Implements centered header, 2-in-a-row guide cards (4 members total),
 * high-contrast white cards, short bios, and interactive trail photos.
 *
 * @package Brandalay
 * @subpackage Blocks/TeamSection
 */

.team-section {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	padding: clamp(4.5rem, 6.5vw, 6.5rem) 0;
	background-color: #f8fafc;
	isolation: isolate;
}

/* Background Tones */
.team-section.bg-alpine-grey {
	background-color: #f8fafc;
}

.team-section.bg-cool-mist {
	background-color: #f1f5f9;
}

.team-section.bg-pure-white {
	background-color: #ffffff;
}

/* Crisp Separator Borders */
.team-section.has-borders {
	border-top: 1px solid #cbd5e1;
	border-bottom: 1px solid #cbd5e1;
}

/* Container */
.team-container {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1rem, 3vw, 2rem);
	padding-right: clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

/* Centered Header */
.team-header-centric {
	text-align: center;
	max-width: 760px;
	margin: 0 auto clamp(2.5rem, 4vw, 3.5rem) auto;
	box-sizing: border-box;
}

.team-eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #047857;
	margin-bottom: 0.75rem;
}

.team-title {
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.025em;
	color: #0f172a;
	margin: 0 0 0.875rem 0;
}

.team-subtitle {
	font-size: clamp(0.975rem, 1.15vw, 1.125rem);
	line-height: 1.6;
	color: #64748b;
	margin: 0 auto;
	max-width: 680px;
}

/* 2-Column Grid (Two persons in one row, 4 total) */
.team-grid-2col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	box-sizing: border-box;
}

/* Modern Guide Card */
.team-card-modern {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1.25rem;
	padding: 1.75rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
	position: relative;
}

.team-card-modern:hover {
	transform: translateY(-5px);
	border-color: #cbd5e1;
	box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.team-card-inner {
	display: flex;
	flex-direction: column;
}

/* Top Guide Identity Row */
.team-header-row {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	margin-bottom: 1.15rem;
}

.team-avatar-link {
	display: block;
	flex-shrink: 0;
	text-decoration: none;
}

.team-avatar-img {
	width: 84px;
	height: 84px;
	border-radius: 1rem;
	object-fit: cover;
	border: 2px solid #f1f5f9;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: block;
}

.team-card-modern:hover .team-avatar-img {
	transform: scale(1.05);
}

.team-identity {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.team-name {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.25;
	color: #0f172a;
	margin: 0 0 0.25rem 0;
}

.team-name a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.15s ease;
}

.team-name a:hover,
.team-card-modern:hover .team-name a {
	color: #047857;
}

.team-designation {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #047857;
	line-height: 1.35;
}

/* Guide Bio */
.team-bio {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 1.35rem 0;
	font-style: italic;
}

/* Trail Photos Row (Exact Testimonial/Review Pattern) */
.team-photos-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-top: auto;
}

.team-photos-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
}

.team-photos-label svg {
	color: #059669;
	flex-shrink: 0;
}

.team-photos-grid {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.team-photo-item {
	display: block;
	width: 62px;
	height: 62px;
	border-radius: 0.625rem;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.team-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.team-photo-item:hover {
	transform: scale(1.08);
	border-color: #047857;
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

.team-photo-item:hover .team-photo-img {
	transform: scale(1.1);
}

/* Card Bottom Action Footer */
.team-card-footer {
	border-top: 1px solid #f1f5f9;
	padding-top: 1rem;
	margin-top: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.team-action-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #047857;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-action-link:hover {
	color: #065f46;
	transform: translateX(3px);
}

.team-action-link svg {
	transition: transform 0.2s ease;
}

.team-action-link:hover svg {
	transform: translateX(3px);
}

/* Empty State */
.team-empty {
	padding: 3rem;
	text-align: center;
	background-color: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 1rem;
	color: #64748b;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 900px) {
	.team-grid-2col {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (max-width: 640px) {
	.team-section {
		padding: 2.75rem 0;
	}

	.team-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.team-header-centric {
		margin-bottom: 2rem;
	}

	.team-title {
		font-size: 1.65rem;
		line-height: 1.25;
	}

	.team-subtitle {
		font-size: 0.95rem;
		line-height: 1.6;
	}

	.team-grid-2col {
		gap: 1.25rem;
	}

	.team-card-modern {
		padding: 1.5rem 1.25rem;
		border-radius: 1.25rem;
	}

	.team-header-row {
		gap: 0.875rem;
	}

	.team-avatar-img {
		width: 60px;
		height: 60px;
	}

	.team-name {
		font-size: 1.15rem;
		margin-bottom: 0.2rem;
	}

	.team-role {
		font-size: 0.72rem;
		line-height: 1.35;
		letter-spacing: 0.04em;
	}

	.team-bio {
		font-size: 0.9rem;
		line-height: 1.55;
		margin-bottom: 1.15rem;
	}

	.team-photos-label {
		font-size: 0.75rem;
		margin-bottom: 0.45rem;
	}

	.team-photos-row {
		gap: 0.45rem;
		margin-bottom: 1.15rem;
	}

	.team-photo-item {
		width: 52px;
		height: 52px;
		border-radius: 0.5rem;
	}
}
