/* WP Consultant Toolkit — Team Cards widget. Based on .team-grid / .team-card in outputs/style.css.
   Selectors are two classes deep so kit rules like `.elementor-kit-10 h3` don't win. */

/* Fill the container, also when it centers its items (a widget without a
   width then shrinks to its content). Zero specificity, so a width set in
   Elementor (Advanced > Layout) still wins. */
:where(.elementor-widget-wpct-team-cards) {
	width: 100%;
}

.wpct-tcards {
	display: grid;
	grid-template-columns: repeat(var(--wpct-tcards-columns, 3), minmax(0, 1fr));
	gap: var(--wpct-tcards-gap, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpct-tcards .wpct-tcards-item {
	display: flex;
	margin: 0;
	padding: 0;
}

.wpct-tcards .wpct-tcard {
	box-sizing: border-box;
	display: flex;
	width: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #dce4eb;
	border-radius: 28px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(7, 24, 47, .08);
}

/* Photo (or initials on an accent gradient) with an optional caption. */
.wpct-tcards .wpct-tcard-photo {
	box-sizing: border-box;
	position: relative;
	display: flex;
	min-height: var(--wpct-tcards-photo-h, 390px);
	align-items: flex-end;
	overflow: hidden;
	padding: 24px;
	color: #ffffff;
	isolation: isolate;
}

.wpct-tcards .wpct-tcard-photo--navy {
	color: var(--wpct-tcards-navy-text, #ffffff);
	background: var(--wpct-tcards-shape, none), linear-gradient(145deg, var(--wpct-tcards-navy-start, #123056), var(--wpct-tcards-navy-end, #245bff));
}

.wpct-tcards .wpct-tcard-photo--mint {
	color: var(--wpct-tcards-mint-text, #07182f);
	background: var(--wpct-tcards-shape, none), linear-gradient(145deg, var(--wpct-tcards-mint-start, #baf6e5), var(--wpct-tcards-mint-end, #42d9b0));
}

.wpct-tcards .wpct-tcard-photo--coral {
	color: var(--wpct-tcards-coral-text, #07182f);
	background: var(--wpct-tcards-shape, none), linear-gradient(145deg, var(--wpct-tcards-coral-start, #ffd0c6), var(--wpct-tcards-coral-end, #ff7357));
}

/* Decorative circle + curve; only visible behind the initials (a photo covers them). */
.wpct-tcards--shapes .wpct-tcard-photo {
	--wpct-tcards-shape: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .22) 0 15%, transparent 15.5%);
}

.wpct-tcards--shapes .wpct-tcard-photo::after {
	position: absolute;
	right: -12%;
	bottom: -24%;
	width: 78%;
	height: 70%;
	border-radius: 50% 50% 20% 20%;
	background: rgba(255, 255, 255, .12);
	content: "";
}

.wpct-tcards .wpct-tcard-img {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wpct-tcards .wpct-tcard-initials {
	position: absolute;
	top: 50%;
	left: 50%;
	font-family: "Manrope", Arial, sans-serif;
	font-size: clamp(4rem, 8vw, 7rem);
	font-weight: 800;
	line-height: 1;
	opacity: .9;
	transform: translate(-50%, -50%);
}

.wpct-tcards .wpct-tcard-scrim {
	position: absolute;
	z-index: 1; /* Same as the photo but later in the DOM, so it paints over it. */
	right: 0;
	bottom: 0;
	left: 0;
	height: 55%;
	background: linear-gradient(
		to top,
		var(--wpct-tcards-scrim-color, rgba(7, 24, 47, .78)) 0%,
		color-mix(in srgb, var(--wpct-tcards-scrim-color, rgba(7, 24, 47, .78)) 45%, transparent) 50%,
		transparent 100%
	);
	pointer-events: none;
}

.wpct-tcards .wpct-tcard-photo.wpct-tcard-photo--scrim {
	color: #ffffff;
}

.wpct-tcards .wpct-tcard-photo.wpct-tcard-photo--glass {
	color: var(--wpct-tcards-glass-text, #07182f);
}

.wpct-tcards .wpct-tcard-caption {
	position: relative;
	z-index: 2;
	display: flex;
	width: 100%;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.wpct-tcards .wpct-tcard-photo--scrim .wpct-tcard-caption {
	text-shadow: 0 1px 14px rgba(7, 24, 47, .35);
}

.wpct-tcards .wpct-tcard-caption-text {
	min-width: 0;
}

.wpct-tcards .wpct-tcard-photo--glass .wpct-tcard-caption-text,
.wpct-tcards .wpct-tcard-photo--glass .wpct-tcard-tag {
	background: var(--wpct-tcards-glass-bg, rgba(255, 255, 255, .72));
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: 0 8px 24px rgba(7, 24, 47, .12), inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.wpct-tcards .wpct-tcard-photo--glass .wpct-tcard-caption-text {
	padding: 12px 16px;
	border-radius: 16px;
}

.wpct-tcards .wpct-tcard-photo--glass .wpct-tcard-tag {
	border-color: transparent;
	opacity: 1;
}

.wpct-tcards .wpct-tcard-caption-name {
	display: block;
	color: inherit;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.3;
}

.wpct-tcards .wpct-tcard-caption-role {
	display: block;
	margin-top: 2px;
	color: inherit;
	font-size: .76rem;
	opacity: .78;
}

.wpct-tcards .wpct-tcard-tag {
	flex: 0 0 auto;
	margin-left: auto;
	padding: .3rem .6rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .66rem;
	font-weight: 800;
	opacity: .8;
	white-space: nowrap;
}

/* Text below the photo. */
.wpct-tcards .wpct-tcard-content {
	flex: 1 1 auto;
	padding: 28px;
}

.wpct-tcards .wpct-tcard-name {
	margin: 0 0 .3rem;
	color: #07182f;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 1.85rem;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
}

.wpct-tcards .wpct-tcard-role {
	display: block;
	margin-bottom: 18px;
	color: #164ad8;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.wpct-tcards .wpct-tcard-bio {
	margin: 0;
	color: #52657b;
	line-height: 1.7;
}

.wpct-tcards-empty {
	padding: 24px;
	border: 1px dashed #dce4eb;
	border-radius: 16px;
	color: #52657b;
	text-align: center;
}

/* Hover: card lifts, photo zooms slowly. Mouse only, never with reduced motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wpct-tcards--hover .wpct-tcard {
		transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
	}

	.wpct-tcards--hover .wpct-tcard-img,
	.wpct-tcards--hover .wpct-tcard-initials {
		transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
	}

	.wpct-tcards--hover .wpct-tcard:hover {
		box-shadow: 0 24px 60px rgba(7, 24, 47, .14);
		transform: translateY(-6px);
	}

	.wpct-tcards--hover .wpct-tcard:hover .wpct-tcard-img {
		transform: scale(1.06);
	}

	.wpct-tcards--hover .wpct-tcard:hover .wpct-tcard-initials {
		transform: translate(-50%, -50%) scale(1.06);
	}
}

/*
 * Phones, swipe carousel (opt-in): cards side by side in a scroll-snap
 * strip, the next one peeking in. The negative margin + padding leave room
 * for the shadow, which overflow-x would otherwise clip. CSS only.
 */
@media (max-width: 767px) {
	.wpct-tcards.wpct-tcards--swiper {
		display: flex;
		margin: -12px 0 -32px;
		padding: 12px 0 32px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.wpct-tcards.wpct-tcards--swiper::-webkit-scrollbar {
		display: none;
	}

	.wpct-tcards--swiper .wpct-tcards-item {
		flex: 0 0 var(--wpct-tcards-swipe-w, 84%);
		scroll-snap-align: start;
	}
}
