/**
 * Volley Team — card grid.
 *
 * Every colour and size worth touching is an Elementor control; the custom
 * properties below are only the defaults those controls overwrite.
 *
 * Deliberately avoids the `inset` shorthand (Safari 14.1+) and keeps
 * :focus-visible in its own rule, because one selector Safari cannot parse
 * invalidates the whole list it sits in.
 */

.vt {
	position: relative;
	box-sizing: border-box;
	padding: 96px 24px;
	background: radial-gradient(120% 120% at 50% 0%, #1f4bd8 0%, #0b2a9e 100%);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.vt__inner {
	max-width: 1160px;
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------------------------ Heading */

.vt__head {
	text-align: center;
	margin-bottom: 46px;
}

.vt__eyebrow {
	margin: 0 0 14px;
	color: #f2b705;
	font-family: "Montserrat", inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 3.5px;
	text-transform: uppercase;
}

.vt__title {
	margin: 0 0 16px;
	color: #fff;
	font-family: "Montserrat", inherit;
	/* Elementor's typography control overrides this when a size is set. */
	font-size: clamp(34px, 6vw, 62px);
	font-weight: 800;
	line-height: 1.05;
}

.vt__title-main,
.vt__title-accent {
	display: block;
}

.vt__title-accent {
	color: #2ee0d5;
}

.vt__subtitle {
	max-width: 760px;
	margin: 0 auto;
	color: #e8eeff;
	font-size: 17px;
	line-height: 1.6;
}

.vt__empty {
	padding: 24px;
	border: 1px dashed rgba(255, 255, 255, 0.4);
	border-radius: 12px;
	color: #fff;
	text-align: center;
}

/* --------------------------------------------------------------------- Grid */

.vt__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

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

.vt-card {
	--vt-disc: #2ac7be;
	--vt-disc-b: #1fa9c4;
	--vt-disc-size: 74%;
	--vt-disc-shift: 0px;
	--vt-zoom: 1.06;
	--vt-fade: 22%;
	--vt-lift: -10px;
	--vt-arrow: 46px;
	--vt-glow: rgba(46, 224, 213, 0.28);
	--vt-ease: cubic-bezier(0.22, 1, 0.36, 1);

	position: relative;
	overflow: hidden;
	padding: 0 22px 22px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 26px;
	background-color: rgba(255, 255, 255, 0.06);
	transition: transform 0.5s var(--vt-ease), background-color 0.35s ease,
		border-color 0.35s ease, box-shadow 0.5s var(--vt-ease);
}

/* A soft light from the top, faded in on hover. */
.vt-card::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 62%);
	transition: opacity 0.5s var(--vt-ease);
}

/*
 * Hover defaults live here as well as in the widget controls. Elementor prints
 * its control output with a higher specificity, so a value set in the panel
 * still wins; this only makes the card behave when a control is left empty.
 */
.vt-card:hover {
	transform: translate3d(0, var(--vt-lift), 0);
	border-color: #2ee0d5;
	background-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 26px 54px -22px var(--vt-glow);
}

.vt-card:hover::after {
	opacity: 1;
}

.vt-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.vt-card__link:hover,
.vt-card__link:focus {
	color: inherit;
	text-decoration: none;
}

.vt-card__link:focus-visible {
	outline: 2px solid #2ee0d5;
	outline-offset: 4px;
	border-radius: 16px;
}

/* -------------------------------------------------------------- Photo, disc */

.vt-card__media {
	position: relative;
	height: 320px;
	overflow: hidden;
}

.vt-card__disc {
	position: absolute;
	top: 50%;
	left: 50%;
	/* width + padding-bottom keeps it a circle without aspect-ratio. */
	width: var(--vt-disc-size);
	height: 0;
	padding-bottom: var(--vt-disc-size);
	border-radius: 50%;
	background-image: linear-gradient(180deg, var(--vt-disc) 0%, var(--vt-disc-b) 100%);
	transform: translate(-50%, calc(-50% + var(--vt-disc-shift)));
	transition: transform 0.6s var(--vt-ease);
}

.vt-card__photo {
	position: absolute;
	right: 0;
	bottom: 0px;
	left: 0;
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	object-position: bottom center;
	transform-origin: bottom center;
	/*
	 * The figure dissolves into the card instead of ending on a hard edge, the
	 * way the reference design does it. object-position pins the image to the
	 * bottom of the box, so the mask's fade lands on the bottom of the figure.
	 * An engine without mask support simply shows the photo uncut.
	 */
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--vt-fade)), rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(to bottom, #000 calc(100% - var(--vt-fade)), rgba(0, 0, 0, 0) 100%);
	transition: transform 0.6s var(--vt-ease);
}

.vt-card:hover .vt-card__disc {
	transform: translate(-50%, calc(-50% + var(--vt-disc-shift))) scale(var(--vt-zoom));
}

.vt-card:hover .vt-card__photo {
	transform: scale(var(--vt-zoom));
}

/* -------------------------------------------------------------- Name, arrow */

.vt-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-shadow: 0 -20px 10px #37459778;
}

.vt-card__text {
	min-width: 0;
}

.vt-card__name {
	margin: 0 0 3px;
	color: #fff;
	font-family: "Montserrat", inherit;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	transition: color 0.3s ease;
}

.vt-card__role {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.4;
}

.vt-card__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--vt-arrow);
	height: var(--vt-arrow);
	border: 1px solid #2ee0d5;
	border-radius: 50%;
	color: #2ee0d5;
	background-color: transparent;
	font-size: 18px;
	line-height: 1;
	transition: background-color 0.35s ease, border-color 0.35s ease,
		color 0.35s ease, transform 0.45s var(--vt-ease);
}

.vt-card__arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.vt-card__arrow svg,
.vt-card__arrow i {
	transition: transform 0.45s var(--vt-ease);
}

.vt-card:hover .vt-card__name {
	color: #2ee0d5;
}

.vt-card:hover .vt-card__arrow {
	border-color: #2ee0d5;
	color: #04225c;
	background-color: #2ee0d5;
	transform: scale(1.08);
}

.vt-card:hover .vt-card__arrow svg,
.vt-card:hover .vt-card__arrow i {
	transform: translateX(3px);
}

/* -------------------------------------------------------------- Small print */

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

@media (max-width: 767px) {
	.vt {
		padding: 64px 18px;
	}

	.vt__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.vt__head {
		margin-bottom: 32px;
	}

	.vt-card__media {
		height: 300px;
	}
}

/* Touch devices get no hover state worth keeping, and a stuck :hover after a
   tap is worse than none. */
@media (hover: none) {
	.vt-card:hover {
		transform: none;
		border-color: rgba(255, 255, 255, 0.16);
		background-color: rgba(255, 255, 255, 0.06);
		box-shadow: none;
	}

	.vt-card:hover .vt-card__name {
		color: #fff;
	}

	.vt-card:hover .vt-card__arrow {
		border-color: #2ee0d5;
		color: #2ee0d5;
		background-color: transparent;
		transform: none;
	}

	.vt-card:hover .vt-card__arrow svg,
	.vt-card:hover .vt-card__arrow i {
		transform: none;
	}

	.vt-card:hover::after {
		opacity: 0;
	}

	.vt-card:hover .vt-card__disc,
	.vt-card:hover .vt-card__photo {
		transform: translate(-50%, calc(-50% + var(--vt-disc-shift)));
	}

	.vt-card:hover .vt-card__photo {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vt-card,
	.vt-card::after,
	.vt-card__disc,
	.vt-card__photo,
	.vt-card__arrow,
	.vt-card__arrow svg,
	.vt-card__arrow i,
	.vt-card__name {
		transition: none !important;
	}

	.vt-card:hover {
		transform: none;
	}
}
