/* ============================================================
   BIODRY TEAM SECTION — Biodry Core plugin
   Namespace: .biodry-team
   ============================================================ */

.biodry-team {
	--bd-red: #FF2D2D;
	--bd-red-dark: #e51d1d;
	--bd-ink: #101820;
	--bd-muted: #667085;
	--bd-border: rgba(16, 24, 32, .08);
	--bd-card: #ffffff;
	--bd-ease: cubic-bezier(.22, 1, .36, 1);

	position: relative;
	padding: clamp(50px, 8vw, 70px) 20px;
	background: transparent;
	isolation: isolate;
}

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

.biodry-team__inner {
	width: min(1200px, 100%);
	margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/*  HEADER                                                            */
/* ------------------------------------------------------------------ */
.bd-team-header {
	max-width: 760px;
	margin: 0 auto clamp(34px, 4vw, 54px);
	text-align: center;
}

.bd-team-eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 18px;
	color: var(--bd-muted);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.bd-team-eyebrow i {
	display: block;
	width: 32px;
	height: 2px;
	background: var(--bd-red);
	border-radius: 999px;
}

.bd-team-title,
.bd-team-header h2,
.bd-team-header h1,
.bd-team-header h3 {
	margin: 0 0 18px;
	color: var(--bd-ink);
	font-size: clamp(32px, 4.2vw, 52px);
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: -0.035em;
}

.bd-team-header p {
	max-width: 690px;
	margin: 0 auto;
	color: var(--bd-muted);
	font-size: 17px;
	line-height: 1.72;
}

/* ------------------------------------------------------------------ */
/*  FILTERS                                                           */
/* ------------------------------------------------------------------ */
.bd-team-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 auto clamp(34px, 4vw, 50px);
}

.bd-team-filters button {
	appearance: none;
	cursor: pointer;
	border: 1px solid var(--bd-border);
	background: #fff;
	color: var(--bd-ink);
	padding: 11px 22px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1;
	font-family: inherit;
	transition:
		background .26s var(--bd-ease),
		color .26s var(--bd-ease),
		border-color .26s var(--bd-ease),
		box-shadow .26s var(--bd-ease),
		transform .26s var(--bd-ease);
}

.bd-team-filters button:hover {
	border-color: rgba(255, 45, 45, .35);
	color: var(--bd-red);
	transform: translateY(-1px);
}

.bd-team-filters button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 45, 45, .22);
}

.bd-team-filters button.is-active {
	background: var(--bd-red);
	border-color: var(--bd-red);
	color: #fff;
	box-shadow: 0 12px 28px rgba(255, 45, 45, .26);
}

.bd-team-filters button.is-active:hover {
	color: #fff;
	transform: translateY(-1px);
}

/* ------------------------------------------------------------------ */
/*  GRID                                                              */
/* ------------------------------------------------------------------ */
.bd-team-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

/* ------------------------------------------------------------------ */
/*  CARD                                                              */
/* ------------------------------------------------------------------ */
.bd-team-card {
	display: flex;
	flex-direction: column;
	background: var(--bd-card);
	border: 1px solid var(--bd-border);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(16, 24, 32, .06);
	transition:
		transform .42s var(--bd-ease),
		box-shadow .34s ease,
		border-color .34s ease;
}

/* Reveal animation */
.bd-team-card[data-bd-reveal] {
	opacity: 0;
	transform: translateY(24px);
}

.bd-team-card[data-bd-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity .7s ease,
		transform .7s var(--bd-ease),
		box-shadow .34s ease,
		border-color .34s ease;
}

.bd-team-card:hover {
	transform: translateY(-8px);
	border-color: rgba(255, 45, 45, .16);
	box-shadow:
		0 30px 70px rgba(16, 24, 32, .12),
		0 16px 36px rgba(255, 45, 45, .08);
}

/* Filtering – hidden state */
.bd-team-card.is-hidden {
	display: none !important;
}

/* IMAGE */
.bd-team-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #eef0f2;
}

.bd-team-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform .6s var(--bd-ease);
}

.bd-team-card:hover .bd-team-image img {
	transform: scale(1.05);
}

/* CONTENT */
.bd-team-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 22px 24px;
}

.bd-team-category {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--bd-red);
	font-size: 11.5px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.bd-team-content h3 {
	margin: 0 0 4px;
	color: var(--bd-ink);
	font-size: 20px;
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.bd-team-content > p {
	margin: 0 0 16px;
	color: var(--bd-muted);
	font-size: 14.5px;
	line-height: 1.5;
}

/* LINKS */
.bd-team-links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--bd-border);
}

.bd-team-links a {
	color: var(--bd-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: color .22s ease;
	word-break: break-word;
}

.bd-team-links a:first-child {
	font-weight: 800;
}

.bd-team-links a:hover {
	color: var(--bd-red);
}

/* EMPTY STATE */
.bd-team-empty {
	margin: 30px 0 0;
	text-align: center;
	color: var(--bd-muted);
	font-size: 16px;
}

.bd-team-empty[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ */
/*  RESPONSIVE                                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.bd-team-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

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

	.bd-team-header {
		text-align: left;
	}

	.bd-team-eyebrow {
		justify-content: flex-start;
	}

	.bd-team-header p {
		margin-left: 0;
	}

	.bd-team-filters {
		justify-content: flex-start;
	}

	.bd-team-content {
		padding: 18px 18px 20px;
	}

	.bd-team-content h3 {
		font-size: 18px;
	}
}

@media (max-width: 460px) {
	.biodry-team {
		padding: 56px 16px;
	}

	.bd-team-grid {
		grid-template-columns: 1fr;
	}

	.bd-team-filters button {
		padding: 10px 16px;
		font-size: 13.5px;
	}
}

/* ------------------------------------------------------------------ */
/*  REDUCED MOTION / NO ANIM                                          */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.biodry-team *,
	.biodry-team *::before,
	.biodry-team *::after {
		animation: none !important;
		transition-duration: .01ms !important;
	}

	.bd-team-card[data-bd-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}
}

.biodry-team--no-anim .bd-team-card[data-bd-reveal] {
	opacity: 1 !important;
	transform: none !important;
}
