/**
 * SFD Team Leaders block
 * Loaded automatically wherever the block is rendered (via block.json -> style).
 */

.sfd-team-leaders {
	width: 100%;
	background: #fff;
}

.sfd-team-leaders__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 96px;
}

.sfd-team-leaders__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	max-width: 720px;
	text-align: left;
	width: 100%;
}

.sfd-team-leaders__featured-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	position: relative;
}


.sfd-team-leaders__heading {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #181d27;
	margin: 0;
}

.sfd-team-leaders__desc {
	font-family: 'Nunito', sans-serif;
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.65;
	color: #535862;
	margin: 0;
}

.sfd-team-leaders__grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

/* Portrait card: image top, content below. */
.sfd-leader-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #f0f0f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sfd-leader-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sfd-leader-card__cover {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f3f4f6;
	flex-shrink: 0;
}

.sfd-leader-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sfd-leader-card__cover--placeholder {
	background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sfd-leader-card__cover-placeholder-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.6;
}

.sfd-leader-card__content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem;
}

.sfd-leader-card__text {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sfd-leader-card__upper {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sfd-leader-card__name {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.2;
	color: #181d27;
	margin: 0;
}

.sfd-leader-card__subtitle {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sfd-leader-card__role {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1.3;
	color: #EE728E;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0;
}

.sfd-leader-card__quote {
	font-family: 'Nunito', sans-serif;
	font-style: italic;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.4;
	color: #646464;
	margin: 0;
}

.sfd-leader-card__bio {
	font-family: 'Nunito', sans-serif;
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #4a4a4a;
	margin: 0;
}

.sfd-leader-card__bio p {
	margin: 0 0 1em;
}

.sfd-leader-card__bio p:last-child {
	margin-bottom: 0;
}

/* ── Featured columns wrapper ──
   Each column holds: heading, avatar (circular, overlapping), then card below. */
.sfd-team-leaders__featured-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	position: relative;
	min-height: 700px;
}

/* Featured top row — avatar group only, right-aligned */
.sfd-team-leaders__featured-top {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}

/* Eyebrow label above the heading */
.sfd-team-leaders__eyebrow {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1.2;
	color: #EE728E;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
}

/* ── Circular avatar — sits above the card, overlapping its top edge ──
   Larger size with a decorative outer ring circle. */
.sfd-leader-card__cover--featured {
	width: 220px;
	height: 220px;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	background: #f3f4f6;
	flex-shrink: 0;
	border: 4px solid #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	z-index: 2;
}

/* Decorative outer ring circle */
.sfd-leader-card__cover--featured::before {
	content: '';
	position: absolute;
	top: -12px;
	left: -12px;
	right: -12px;
	bottom: -12px;
	border-radius: 50%;
	border: 2px solid rgba(238, 114, 142, 0.15);
	pointer-events: none;
	z-index: -1;
}

/* Avatar group — wraps the main circle and secondary circle together.
   Absolutely positioned in the top-right corner of the card, floating above. */
.sfd-team-leaders__avatar-group {
	position: absolute;
	top: -60px;
	right: -40px;
	z-index: 10;
}

/* Secondary avatar — sits below the card content, not overlapping text */
.sfd-team-leaders__secondary-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	margin-top: 16px;
	background: #f3f4f6;
	flex-shrink: 0;
	border: 3px solid #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	z-index: 4;
}

.sfd-team-leaders__secondary-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}

.sfd-leader-card__cover--featured img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.sfd-leader-card__cover--featured.sfd-leader-card__cover--placeholder {
	position: relative;
	width: 220px;
	height: 220px;
	border-radius: 50%;
}

/* ── Featured card — vertical text container below the avatar ──
   The card has padding-top to accommodate the overlapping avatar. */
.sfd-leader-card.sfd-leader-card--featured {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 60px 32px 32px;
	background: #ffffff;
	border: 1px solid #f0f0f0;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	overflow: visible;
	position: relative;
}

.sfd-leader-card.sfd-leader-card--featured .sfd-leader-card__content {
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.75rem;
	min-width: 0;
}

/* Quote — prominent, larger, acts as visual anchor */
.sfd-leader-card.sfd-leader-card--featured .sfd-leader-card__quote {
	font-family: 'Nunito', sans-serif;
	font-style: italic;
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.5;
	color: #EE728E;
	margin: 0 0 0.25rem;
	padding-left: 0;
	border-left: none;
	position: relative;
}

/* Decorative opening quote mark */
.sfd-leader-card.sfd-leader-card--featured .sfd-leader-card__quote::before {
	content: '\201C';
	font-family: Georgia, serif;
	font-size: 2.5rem;
	font-weight: 700;
	color: rgba(238, 114, 142, 0.2);
	position: absolute;
	top: -0.5rem;
	left: -0.25rem;
	pointer-events: none;
	line-height: 1;
}

.sfd-leader-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #569E03;
	color: #ffffff;
	font-family: 'Nunito', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	width: fit-content;
	position: static;
}

.sfd-leader-card__badge--cofounder {
	background: #EE728E;
}

.sfd-leader-card.sfd-leader-card--featured .sfd-leader-card__name {
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.sfd-leader-card.sfd-leader-card--featured .sfd-leader-card__bio {
	font-size: 1rem;
}

/* ── Fun Facts ── */
.sfd-leader-card__fun-facts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0 0;
	border-top: 1px solid #f0f0f0;
	margin-top: 4px;
}

.sfd-leader-card__fun-fact {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.sfd-leader-card__fun-fact-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sfd-leader-card__fun-fact-content {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.sfd-leader-card__fun-fact-label {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 0.7rem;
	line-height: 1.2;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sfd-leader-card__fun-fact-value {
	font-family: 'Nunito', sans-serif;
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #4a4a4a;
}

@media (max-width: 1024px) {
	.sfd-team-leaders__featured-row {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.sfd-team-leaders__inner {
		padding: 30px 20px;
		gap: 48px;
	}

	.sfd-team-leaders__featured-col {
		align-items: center;
		overflow: visible;
		min-height: 0;
	}

	/* Avatar group — static flow, sits above the card naturally */
	.sfd-team-leaders__avatar-group {
		position: static;
		display: flex;
		justify-content: center;
		margin-bottom: 0;
		z-index: 10;
	}

	.sfd-leader-card__cover--featured {
		width: 120px;
		height: 120px;
	}

	.sfd-leader-card__cover--featured.sfd-leader-card__cover--placeholder {
		width: 120px;
		height: 120px;
	}

	.sfd-leader-card.sfd-leader-card--featured {
		padding: 24px;
		align-items: center;
		text-align: center;
	}

	.sfd-leader-card.sfd-leader-card--featured .sfd-leader-card__content {
		align-items: center;
	}

	.sfd-leader-card__badge {
		align-self: center;
	}

	.sfd-leader-card.sfd-leader-card--featured .sfd-leader-card__quote::before {
		left: 50%;
		transform: translateX(-50%);
	}
}

/* Responsive breakpoints. */
@media (max-width: 900px) {
	.sfd-team-leaders__inner {
		padding: 40px 20px;
		gap: 32px;
	}
}

/* Orange button, "Read My Story" */
.sfd-btn-orange {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: #f9b233;
	color: #262626;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	border-radius: 12px;
	text-decoration: none;
	align-self: flex-start;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.sfd-btn-orange:hover {
	background: #e8a120;
	box-shadow: 0 2px 8px rgba(10, 13, 18, 0.12);
}

@media (max-width: 600px) {
	.sfd-team-leaders__inner {
		padding: 30px 16px;
	}

	.sfd-team-leaders__grid {
		gap: 14px;
	}
}
