/**
 * BV Core — team grid.
 * Palette from the Blue Vineyard Figma design.
 */

.bv-team {
	--bv-blue: #2455dd;
	--bv-blue-light: #d3ddf8;
	--bv-ink: #212b36;
	--bv-muted: #637381;
	--bv-card: #f9fafb;

	display: grid;
	grid-template-columns: repeat(var(--bv-team-cols, 4), minmax(0, 1fr));
	gap: 20px 16px;
	color: var(--bv-ink);
	font-family: "Archivo", inherit;
}

.bv-team *,
.bv-team *::before,
.bv-team *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- Card --- */

.bv-team__card {
	display: flex;
	flex-direction: column;
	padding: 8px;
	border-radius: 24px;
	background: var(--bv-card);
	box-shadow:
		0 0 2px rgba(145, 158, 171, 0.2),
		0 12px 24px -4px rgba(145, 158, 171, 0.12);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bv-team__photo {
	position: relative;
	aspect-ratio: 412 / 481;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 32px;
	background: #fff;
}

.bv-team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter 0.35s ease, transform 0.5s ease;
}

.bv-team__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c4cdd5;
}

.bv-team__placeholder svg {
	width: 53%;
	height: auto;
}

.bv-team__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 32px;
	text-align: center;
}

.bv-team__name {
	margin: 0;
	font-size: 24px;
	line-height: 36px;
	font-weight: 700;
	color: var(--bv-ink);
}

.bv-team__role {
	margin: 0;
	font-size: 20px;
	line-height: 30px;
	font-weight: 400;
	color: var(--bv-muted);
}

/* Default: light lavender button (matches the greyed card state). */
.bv-team__video {
	display: block;
	margin-top: auto;
	padding: 16px 32px;
	border-radius: 100px;
	background: var(--bv-blue-light);
	color: var(--bv-blue);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

/* Hover: photo goes full colour, button becomes solid blue. */
.bv-team__card:hover {
	transform: translateY(-2px);
	box-shadow:
		0 0 2px rgba(145, 158, 171, 0.24),
		0 18px 30px -6px rgba(145, 158, 171, 0.22);
}

.bv-team__card:hover .bv-team__photo img {
	filter: grayscale(0);
	transform: scale(1.02);
}

.bv-team__card:hover .bv-team__video,
.bv-team__video:hover,
.bv-team__video:focus-visible {
	background: var(--bv-blue);
	color: #fff;
}

/* ---------------------------------------------------------- Responsive --- */

@media (max-width: 1080px) {
	.bv-team {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.bv-team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.bv-team {
		grid-template-columns: minmax(0, 1fr);
	}
}
