/* =============================================================================
   EM3 Services hub (/services/) — only the NET-NEW sections live here:
   the Energy Lifecycle showpiece + the Standards & authority strip. The hero,
   overview split, Why cards, Sector cards, Proven-Outcome metrics and the Dig
   Deeper band all reuse service-category.css / services.css / industries.css.
   Markup contract: theme/inc/services-hub.php.
   ========================================================================== */

/* ---- 3. THE ENERGY LIFECYCLE showpiece (dark band) ----------------------- */
.em3-hub-life__intro {
	max-width: 760px;
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.6;
}

.em3-hub-life__track {
	list-style: none;
	margin: clamp(34px, 4vw, 52px) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2.4vw, 30px);
}

.em3-hub-stage {
	position: relative;
}

.em3-hub-stage__link {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	align-items: stretch;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: var(--em3-radius-card);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.03);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s, box-shadow 0.35s, background 0.35s;
}

/* alternate image side every other stage (the journey rhythm) */
.em3-hub-stage:nth-child(even) .em3-hub-stage__link {
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.em3-hub-stage:nth-child(even) .em3-hub-stage__media {
	order: 2;
}

.em3-hub-stage__link:hover,
.em3-hub-stage__link:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(106, 138, 255, 0.55);
	box-shadow: 0 26px 64px -30px rgba(0, 0, 0, 0.75);
	background: rgba(255, 255, 255, 0.05);
	outline: none;
}
.em3-hub-stage__link:focus-visible {
	box-shadow: 0 0 0 2px var(--em3-accent-hot), 0 26px 64px -30px rgba(0, 0, 0, 0.75);
}

/* media */
.em3-hub-stage__media {
	position: relative;
	min-height: 304px;
	overflow: hidden;
}
.em3-hub-stage__media .em3-hub-stage__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.em3-hub-stage__link:hover .em3-hub-stage__img {
	transform: scale(1.07);
}
.em3-hub-stage__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(5, 13, 51, 0.58), rgba(5, 13, 51, 0.12) 58%, rgba(5, 13, 51, 0.5));
}
.em3-hub-stage__n {
	position: absolute;
	left: 22px;
	top: 12px;
	font-family: var(--em3-font-sans);
	font-size: clamp(46px, 6vw, 88px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.62);
}

/* body */
.em3-hub-stage__body {
	padding: clamp(26px, 3vw, 44px);
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
}
.em3-hub-stage__head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.em3-hub-stage__icon {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--em3-radius);
	background: rgba(255, 255, 255, 0.04);
}
.em3-hub-stage__icon img {
	width: 30px;
	height: 30px;
}
.em3-hub-stage__title {
	margin: 0;
	font-size: clamp(24px, 2.4vw, 33px);
	line-height: 1.12;
	color: var(--em3-ink);
}
.em3-hub-stage__tag {
	margin: 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.5;
}
.em3-hub-stage__svcs {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px 20px;
}
.em3-hub-stage__svcs li {
	position: relative;
	padding-left: 16px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.4;
}
.em3-hub-stage__svcs li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--em3-accent-hot);
}
.em3-hub-stage__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.em3-hub-stage__count {
	font-size: 12.5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58);
	font-weight: 700;
}
.em3-hub-stage__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--em3-accent-hot);
	font-weight: 700;
	font-size: 15px;
}
.em3-hub-stage__cta svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s;
}
.em3-hub-stage__link:hover .em3-hub-stage__cta svg,
.em3-hub-stage__link:focus-visible .em3-hub-stage__cta svg {
	transform: translateX(4px);
}

.em3-hub-life__foot {
	margin: clamp(26px, 3vw, 34px) 0 0;
	font-size: 16px;
}

@media (max-width: 880px) {
	.em3-hub-stage__link,
	.em3-hub-stage:nth-child(even) .em3-hub-stage__link {
		grid-template-columns: 1fr;
	}
	.em3-hub-stage:nth-child(even) .em3-hub-stage__media {
		order: 0;
	}
	.em3-hub-stage__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
	.em3-hub-stage__svcs {
		grid-template-columns: 1fr;
	}
}

/* ---- 6. STANDARDS & authority strip (snow / on-light) -------------------- */
.em3-hub-standards__grid {
	list-style: none;
	margin: clamp(30px, 3.5vw, 44px) 0 0;
	padding: 0;
	display: grid;
	/* 6 standards sit on one row at desktop, wrapping gracefully below. */
	grid-template-columns: repeat(auto-fit, minmax(162px, 1fr));
	gap: 14px;
}
@media (max-width: 760px) {
	.em3-hub-standards__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
.em3-hub-standard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 22px;
	background: #fff;
	border: 1px solid var(--em3-line-onwhite, #e7ebf3);
	border-radius: var(--em3-radius-card);
	position: relative;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.em3-hub-standard::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--em3-accent), var(--em3-accent-hot));
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.35s;
}
.em3-hub-standard:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -24px rgba(10, 24, 88, 0.3);
	border-color: #d4ddf0;
}
.em3-hub-standard:hover::before {
	transform: scaleY(1);
}
.em3-hub-standard__name {
	font-size: clamp(18px, 1.6vw, 21px);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--em3-ink-navy);
}
.em3-hub-standard__desc {
	font-size: 13.5px;
	color: rgba(10, 24, 88, 0.72);
	line-height: 1.45;
}

/* ---- 7. Outcome on the hub's DARK band — readable + premium --------------
   .em3-svc-outcome is built for LIGHT bands (navy text); on the hub deep band we
   flip values/labels/narrative to light, lift the numbers with a bright gradient,
   and frame each metric in subtle glass. (Scoped to .em3-hub-outcome so the service
   + category outcome sections on their light bands are untouched.) */
.em3-hub-outcome .em3-svc-ometric {
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: var(--em3-radius-card);
	padding: clamp(26px, 2.6vw, 40px) 20px clamp(22px, 2.2vw, 30px);
	transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.em3-hub-outcome .em3-svc-ometric:hover {
	border-color: rgba(106, 138, 255, 0.42);
	background: rgba(255, 255, 255, 0.055);
	transform: translateY(-3px);
}
.em3-hub-outcome .em3-svc-ometric__val {
	background: linear-gradient(180deg, #ffffff 24%, var(--em3-accent-hot));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--em3-accent-hot); /* fallback if background-clip unsupported */
}
.em3-hub-outcome .em3-svc-ometric__label {
	color: rgba(255, 255, 255, 0.64);
}
.em3-hub-outcome .em3-svc-outcome__narr p {
	color: rgba(255, 255, 255, 0.80);
}

/* ---- 5b. Sectors -> /industries/ hub link -------------------------------- */
.em3-hub-sectors__foot {
	margin: clamp(26px, 3vw, 36px) 0 0;
	font-size: 16px;
}
