/**
 * IEMA "Our Values" section styles.
 *
 * Three-part tabbed layout: a left column (heading, intro, a two-column
 * grid of value tabs), the selected value's white content card, and its
 * image. Full-bleed light-grey band, inner constrained to 1440px.
 * Collapses to a single stacked column on mobile.
 *
 * Matches the Figma "Our Values" section (desktop 1440, mobile 430) and
 * reuses the shared IEMA tokens (navy #002147, lime #c1d82a, grey
 * #767676, Helvetica, 16px radius, pill buttons).
 */

.iema-values {
	background-color: #f5f5f5;
	color: #002147;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.iema-values__inner {
	box-sizing: border-box;
	max-width: 1440px;
	margin: 0 auto;
	padding: 64px 80px;
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

/* Left column: heading + intro + tab grid --------------------------- */
.iema-values__aside {
	flex: 0 0 460px;
	max-width: 460px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.iema-values__heading {
	margin: 0;
	color: #002147;
	font-weight: 700;
	font-size: 40px;
	line-height: 44px;
	letter-spacing: 0;
}

.iema-values__intro {
	color: #767676;
	font-weight: 400;
	font-size: 14px;
	line-height: 140%;
}

.iema-values__intro p {
	margin: 0 0 16px;
}

.iema-values__intro p:last-child {
	margin-bottom: 0;
}

/* Two-column tab grid; column-major flow so it reads top-to-bottom
   within each column and stacks in order on mobile. */
.iema-values__tablist {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: repeat(var(--iema-values-rows, 4), auto);
	grid-auto-flow: column;
	gap: 16px 14px;
	margin-top: 8px;
}

.iema-values__tab {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 12px 10px;
	border: 1px solid transparent;
	border-radius: 1000px;
	background-color: transparent;
	color: #002147;
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	line-height: normal;
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.50s ease, color 0.50s ease, border-color 0.50s ease, box-shadow 0.50s ease;
}

.iema-values__tab-icon {
	flex: 0 0 auto;
	display: inline-flex;
	line-height: 0;
}

.iema-values__tab-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.iema-values__tab-label {
	display: block;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.iema-values__tab:hover {
	background-color: #00152D;
	border-color: #C1D82A;
	color: #FFFFFF;
	box-shadow: 0 5px 25px 0 rgba(0, 0, 0, 0.15);
}

.iema-values__tab:focus-visible {
	outline: 2px solid #002147;
	outline-offset: 2px;
}

.iema-values__tab.is-active,
.iema-values__tab.is-active:hover {
	background-color: #00152d;
	border-color: #c1d82a;
	color: #ffffff;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* Right side: content panels (card + image) ------------------------- */
.iema-values__panels {
	flex: 1 1 auto;
	min-width: 0;
}

.iema-values__panel {
	display: none;
	gap: 24px;
	align-items: stretch;
}

.iema-values__panel.is-active {
	display: flex;
}

.iema-values__card {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px;
	border-radius: 16px;
	background-color: #ffffff;
}

.iema-values__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.iema-values__title {
	margin: 0;
	color: #002147;
	font-weight: 700;
	font-size: 32px;
	line-height: 35.2px;
	letter-spacing: 0;
}

.iema-values__desc {
	color: #767676;
	font-weight: 400;
	font-size: 14px;
	line-height: 140%;
}

.iema-values__desc p {
	margin: 0 0 12px;
}

.iema-values__desc p:last-child {
	margin-bottom: 0;
}

.iema-values__prompt {
	margin: 0;
	color: #767676;
	font-weight: 400;
	font-size: 14px;
	line-height: 140%;
}

.iema-values__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.iema-values__cta {
	max-width: 100%;
	padding: 16px 24px;
	font-size: 14px;
	line-height: normal;
	white-space: normal;
	text-align: center;
	width: 100%;
}

.iema-values__link {
	max-width: 100%;
	color: #002147;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	text-align: center;
	white-space: normal;
}

.iema-values__figure {
	flex: 1 1 0;
	min-width: 0;
	align-self: stretch;
	aspect-ratio: 402 / 495;
	border-radius: 16px;
	overflow: hidden;
	background-color: #e9e9e9;
}

.iema-values__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.iema-values__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #002147 0%, #00152d 100%);
}

/* Mobile: single stacked column ------------------------------------- */
@media (max-width: 1024px) {
	.iema-values__inner {
		flex-direction: column;
		gap: 24px;
		padding: 40px 24px;
	}

	.iema-values__aside {
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
	}

	.iema-values__heading {
		font-size: 32px;
		line-height: 35.2px;
	}

	/* Tabs stack in a single full-width column, in source order. */
	.iema-values__tablist {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-flow: row;
		gap: 8px;
	}

	.iema-values__tab {
		justify-self: stretch;
		width: 100%;
	}

	.iema-values__panels {
		width: 100%;
	}

	.iema-values__panel.is-active {
		flex-direction: column;
	}

	.iema-values__title {
		font-size: 28px;
		line-height: 32px;
	}

	.iema-values__figure {
		flex: 0 0 auto;
		width: 100%;
		aspect-ratio: 382/300;
	}
}
