/**
 * Naseem Team Grid (Elementor) — card layout, scroll reveal (matches services grid), social icons.
 */

.naseem-team-grid {
	width: 100%;
}

.naseem-team-grid__inner {
	--team-reveal-stagger: 0.28s;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Scroll reveal — same motion as Naseem Services Grid cards */
.naseem-team-grid__inner .naseem-team-grid__card {
	opacity: 0;
	transform: translate3d(0, 36px, 0);
	contain: layout style;
	transition:
		opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: 0s;
}

.naseem-team-grid__inner--inview .naseem-team-grid__card {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(1) {
	transition-delay: calc(0 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(2) {
	transition-delay: calc(1 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(3) {
	transition-delay: calc(2 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(4) {
	transition-delay: calc(3 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(5) {
	transition-delay: calc(4 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(6) {
	transition-delay: calc(5 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(7) {
	transition-delay: calc(6 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(8) {
	transition-delay: calc(7 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(9) {
	transition-delay: calc(8 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(10) {
	transition-delay: calc(9 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(11) {
	transition-delay: calc(10 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(12) {
	transition-delay: calc(11 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner--inview .naseem-team-grid__card:nth-child(n + 13) {
	transition-delay: calc(11 * var(--team-reveal-stagger));
}

.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(1) {
	transition-delay: calc(11 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(2) {
	transition-delay: calc(10 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(3) {
	transition-delay: calc(9 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(4) {
	transition-delay: calc(8 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(5) {
	transition-delay: calc(7 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(6) {
	transition-delay: calc(6 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(7) {
	transition-delay: calc(5 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(8) {
	transition-delay: calc(4 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(9) {
	transition-delay: calc(3 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(10) {
	transition-delay: calc(2 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(11) {
	transition-delay: calc(1 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(12) {
	transition-delay: calc(0 * var(--team-reveal-stagger));
}
.naseem-team-grid__inner:not(.naseem-team-grid__inner--inview) .naseem-team-grid__card:nth-child(n + 13) {
	transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
	.naseem-team-grid__inner .naseem-team-grid__card {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.naseem-team-grid__card {
	margin: 0;
	padding: 0;
	text-align: left;
}

.naseem-team-grid__photo-wrap {
	overflow: hidden;
	width: 100%;
}

.naseem-team-grid__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	vertical-align: middle;
}

.naseem-team-grid__photo--placeholder {
	min-height: 0;
	background: rgba(0, 0, 0, 0.06);
}

.naseem-team-grid__name {
	margin: 16px 0 0;
	padding: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0a0a0a;
}

.naseem-team-grid__designation {
	margin: 6px 0 0;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.45;
	color: #6b6b6b;
}

.naseem-team-grid__company {
	margin: 4px 0 0;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: #444;
}

.naseem-team-grid__bio {
	margin: 10px 0 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #333;
}

.naseem-team-grid__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.naseem-team-grid__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #1a1a1a;
	border-radius: 50%;
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.naseem-team-grid__social-link:hover {
	color: #fff;
	background: #1a1a1a;
	border-color: #1a1a1a;
}

.naseem-team-grid__social-link svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
}
