/**
 * Our Team — homepage grid section
 * Bright Horizons Psychiatry
 */

.bhp-team {
	position: relative;
	padding-top: var(--bhp-section-y);
	padding-bottom: var(--bhp-section-y);
	background: var(--bhp-surface);
	overflow: hidden;
}

.bhp-team::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 55% 50% at 0% 0%, rgba(1, 58, 101, 0.05), transparent 55%),
		radial-gradient(ellipse 45% 40% at 100% 100%, rgba(75, 190, 221, 0.07), transparent 55%);
}

.bhp-team__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 5vw, 4rem);
}

/* ——— Header ——— */
.bhp-team__header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--bhp-space-8);
}

@media (min-width: 992px) {
	.bhp-team__header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--bhp-space-16);
	}
}

.bhp-team__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-4);
	max-width: 36rem;
}

.bhp-team__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-6);
	max-width: 30rem;
}

@media (min-width: 992px) {
	.bhp-team__aside {
		align-items: flex-end;
		text-align: right;
		margin-left: auto;
	}
}

.bhp-team__eyebrow {
	margin: 0;
	font-size: var(--bhp-fs-xs);
	font-weight: var(--bhp-fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bhp-primary);
}

.bhp-team__title {
	margin: 0;
	font-size: clamp(1.85rem, 3.4vw, 2.65rem);
	font-weight: var(--bhp-fw-bold);
	line-height: var(--bhp-lh-tight);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink);
	text-wrap: balance;
}

.bhp-team__lead {
	margin: 0;
	font-size: var(--bhp-fs-body-lg);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-snug);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink);
	text-wrap: pretty;
}

.bhp-team__text {
	margin: 0;
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

.bhp-team__cta {
	border-radius: var(--bhp-btn-radius);
}

/* ——— Grid ——— */
.bhp-team__grid {
	display: grid;
	gap: var(--bhp-space-4);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.bhp-team__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.bhp-team__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* ——— Card ——— */
.bhp-team__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	border-radius: var(--bhp-btn-radius);
	overflow: hidden;
	background: var(--bhp-surface-soft);
}

.bhp-team__card:hover,
.bhp-team__card:focus-visible {
	color: inherit;
	outline: none;
}

.bhp-team__card:focus-visible {
	box-shadow: 0 0 0 3px rgba(75, 190, 221, 0.45);
}

.bhp-team__photo {
	position: relative;
	aspect-ratio: 6 / 7;
	overflow: hidden;
	background: linear-gradient(160deg, #d5e3ee 0%, #b8cddc 100%);
}

.bhp-team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform var(--bhp-transition-slow);
}

.bhp-team__card:hover .bhp-team__photo img,
.bhp-team__card:focus-visible .bhp-team__photo img {
	transform: scale(1.04);
}

.bhp-team__photo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: var(--bhp-fw-semibold);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-primary);
	opacity: 0.55;
}

.bhp-team__meta {
	display: flex;
	flex-direction: column;
	gap: var(--bhp-space-1);
	padding: var(--bhp-space-4) var(--bhp-space-4) var(--bhp-space-5);
}

.bhp-team__name {
	margin: 0;
	font-size: var(--bhp-fs-md);
	font-weight: var(--bhp-fw-semibold);
	line-height: var(--bhp-lh-snug);
	letter-spacing: var(--bhp-ls-tight);
	color: var(--bhp-ink);
}

.bhp-team__role {
	margin: 0;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-snug);
	letter-spacing: var(--bhp-ls-normal);
	color: var(--bhp-ink-muted);
}

@media (prefers-reduced-motion: reduce) {
	.bhp-team__photo img {
		transition: none;
	}

	.bhp-team__card:hover .bhp-team__photo img,
	.bhp-team__card:focus-visible .bhp-team__photo img {
		transform: none;
	}
}
