/* BlueWave Roles Grid — scoped under .bw-roles-grid */

/* ---- Section header ----
 * Row 1: eyebrow (col 1) | empty (col 2)
 * Row 2: heading (col 1) | intro  (col 2)
 * ---------------------------------------- */
.bw-roles__header {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	grid-template-rows: auto auto;
	column-gap: 64px;
	row-gap: 12px;
	align-items: start;
	margin-bottom: 56px;
}

.bw-roles__eyebrow { grid-column: 1; grid-row: 1; align-self: start; }
.bw-roles__heading  { grid-column: 1; grid-row: 2; align-self: start; }
.bw-roles__intro    { grid-column: 2; grid-row: 2; align-self: start; }

.bw-roles__eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 400;
	color: #023c5a;
	margin: 0;
}

.bw-roles__heading {
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0;
	color: #0b2233;
}

.bw-roles__span {
	font-style: italic;
	font-weight: 400;
	color: #1f6489;
}

.bw-roles__intro {
	font-size: 17px;
	color: #2a4154;
	line-height: 1.6;
	margin: 0;
}

.bw-roles__intro p { margin: 0 0 1em; }
.bw-roles__intro p:last-child { margin-bottom: 0; }

/* ---- Grid ---- */
.bw-roles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bw-role {
	background: #fff;
	border: 2px solid #023c5a;
	border-radius: 20px;
	padding: 32px 30px 30px;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
	position: relative;
	overflow: hidden;
}

.bw-role:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 60px -30px rgba(2, 60, 90, 0.35);
}

.bw-role__num {
	font-style: italic;
	font-weight: 400;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1f6489;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.bw-role__num::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(11, 34, 51, 0.15);
}

/* Accent colours by position */
.bw-role:nth-child(3n+1) .bw-role__num { color: #1f6489; }
.bw-role:nth-child(3n+2) .bw-role__num { color: #b67c2e; }
.bw-role:nth-child(3n+3) .bw-role__num { color: #4f7a5b; }

.bw-role__heading {
	font-weight: 700;
	font-size: 24px;
	line-height: 1.18;
	color: #023c5a;
	margin: 0 0 14px;
	letter-spacing: -0.015em;
	min-height: 60px;
	overflow-wrap: break-word;
}

.bw-role__desc {
	font-size: 16px;
	line-height: 1.6;
	color: #2a4154;
	margin: 0 0 22px;
	flex: 1;
}

.bw-role__link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-style: italic;
	font-weight: 400;
	color: #023c5a;
	font-size: 16px;
	padding: 10px 0;
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}

.bw-role__link:hover {
	gap: 12px;
	color: #eab26a;
}

.bw-role__link:hover .bw-btn-arrow { transform: translateX(3px); }

/* ---- CTA button ---- */
.bw-roles__cta-wrap {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.bw-roles__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	background-color: #023c5a;
	color: #ffffff;
	border: 1.5px solid #023c5a;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.2s ease;
	white-space: nowrap;
}

.bw-roles__cta:hover {
	background-color: #01293d;
	border-color: #01293d;
	transform: translateY(-1px);
}

.bw-roles__cta:hover .bw-btn-arrow { transform: translateX(3px); }

/* Responsive */
@media (max-width: 1023px) {
	.bw-roles__header {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 16px;
	}
	/* Reset all header children to single column so nothing creates an implicit col 2 */
	.bw-roles__eyebrow,
	.bw-roles__heading,
	.bw-roles__intro {
		grid-column: 1;
		grid-row: auto;
	}
	.bw-roles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.bw-roles__header {
		margin-bottom: 36px;
	}
	.bw-roles-grid {
		grid-template-columns: 1fr;
	}
	.bw-role {
		border-radius: 14px;
		padding: 24px 20px 22px;
	}
	.bw-role__heading {
		min-height: unset;
		font-size: 20px;
	}
}
