/* ==========================================================================
   Team widget  (.aew-team)
   ========================================================================== */

.aew-team {
	--aew-accent: var(--aew-red);   /* control: Brand colour */
	--aew-gutter: 24px;             /* control: Side gap */

	box-sizing: border-box;
	background-color: #fff;
	color: #111;
	font-family: var(--aew-font);
	-webkit-font-smoothing: antialiased;
}

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

.aew-team__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 58px;
	width: calc(100% - (var(--aew-gutter) * 2));
	max-width: 1076px;
	margin-inline: auto;
}

.aew-team--flip .aew-team__main {
	order: 2;
}

.aew-team__main {
	min-width: 0;
}

/* ---- Left column ---- */

.aew-team__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	font-size: 11.2px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.4;
	text-transform: uppercase;
}

.aew-team__eyebrow-line {
	flex: none;
	display: block;
	width: 35px;
	height: 2px;
	background: var(--aew-accent);
}

.aew-team__eyebrow-text {
	color: var(--aew-accent);
}

/* extra class so the Elementor kit's global h1–h6 styles don't win */
.aew-team .aew-team__title {
	margin: 0 0 20px;
	padding: 0;
	font-family: inherit;
	font-size: 41.8px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.aew-team__title-line,
.aew-team__title-accent {
	display: block;
}

.aew-team__title-line {
	color: #111;
}

.aew-team__title-accent {
	color: var(--aew-accent);
}

.aew-team .aew-team__text {
	margin: 0 0 30px;
	font-size: 12.25px;
	line-height: 1.6;
	color: #666;
}

.aew-team__photo {
	position: relative;
	width: 100%;
	aspect-ratio: 510 / 242;
	overflow: hidden;
	background-color: #2a2624;
}

.aew-team__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}

.aew-team__caption {
	position: absolute;
	bottom: 16px;
	left: 16px;
	max-width: calc(100% - 32px);
	padding: 5px 10px;
	background-color: #fff;
	font-size: 10.1px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--aew-accent);
}

/* ---- Stat cards ---- */

.aew-team__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aew-team__item {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.aew-team__item--wide {
	grid-column: span 2;
}

.aew-team__card {
	display: flex;
	flex: 1 1 auto;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	padding: 21px;
	border: 1px solid #efefef;
	border-left: 3px solid rgba(200, 16, 46, 0.22);
	background-color: #f9f9f9;
}

.aew-team__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #efefef;
	background-color: #fff;
	font-size: 16px;
	line-height: 1;
	color: var(--aew-accent);
}

.aew-team__icon svg,
.aew-team__icon i {
	width: 1em;
	height: 1em;
	color: inherit;
}

.aew-team__icon svg:not([stroke]) {
	fill: currentColor;
}

.aew-team__body {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.aew-team__value,
.aew-team__label,
.aew-team__small {
	display: block;
}

.aew-team__value {
	font-size: 26px;
	font-weight: 400;
	line-height: 1.15;
	color: var(--aew-accent);
}

.aew-team__label {
	margin-top: 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.35;
	text-transform: uppercase;
	color: #111;
}

.aew-team__small {
	margin-top: 4px;
	font-size: 10.5px;
	line-height: 1.35;
	color: #727272;
}

/* ---- Responsive (columns are also a control; these are the defaults) ---- */

@media (max-width: 900px) {
	.aew-team__grid {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	/* stacked: text and photo always come first */
	.aew-team--flip .aew-team__main {
		order: 0;
	}
}

@media (max-width: 600px) {
	.aew-team__stats {
		grid-template-columns: minmax(0, 1fr);
	}

	/* a "2 columns" card cannot span a column that does not exist */
	.aew-team__item--wide {
		grid-column: auto;
	}
}
