/*
 * SkillELECTRIC lightweight homepage (prototype, eplatforms, 15 Sep 2026).
 * Replaces the WPBakery rows, Slider Revolution hero and Templatera block on the homepage only.
 * Sizes, colours and spacing are taken from the live homepage at 1280px and 390px.
 */

.home-light #site {
	overflow-x: clip;
}

.hl-home {
	--hl-red: #bf000d;
	--hl-ink: #51513d;
	--hl-card: #f6f6f5;
	--hl-font: Montserrat, "Helvetica Neue", Arial, sans-serif;
	/* 1px at 1280px wide and above, scaling down with the screen, as the slider did */
	--hl-s: min(1px, var(--hl-vw, 100vw) / 1280);
	font-family: var(--hl-font);
	color: var(--hl-ink);
}

.hl-home *,
.hl-home *::before,
.hl-home *::after {
	box-sizing: border-box;
}

/* Full-width bands inside the theme's 1180px content column */
.hl-bleed {
	position: relative;
	width: var(--hl-vw, 100vw);
	left: 50%;
	margin-left: calc(var(--hl-vw, 100vw) / -2);
}

.hl-inner {
	display: flex;
	flex-wrap: wrap;
	max-width: 1210px;
	margin: 0 auto;
}

.hl-col {
	flex: 0 0 50%;
	max-width: 50%;
	padding: 0 17.5px;
}

.hl-home a {
	color: inherit;
	text-decoration: none;
}

.hl-home a:focus-visible {
	outline: 3px solid var(--hl-red);
	outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hl-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	min-height: 420px;
	overflow: hidden;
	background: #e7e7e7;
}

.hl-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hl-home .hl-hero__box {
	position: relative;
	display: block;
	width: calc(1180 * var(--hl-s));
	padding: calc(48 * var(--hl-s)) calc(50 * var(--hl-s)) max(16px, calc(23 * var(--hl-s)));
	background: rgba(255, 255, 255, 0.5);
	color: var(--hl-red);
}

.hl-hero__kicker,
.hl-hero__title,
.hl-hero__more {
	display: block;
	margin: 0;
	padding: 0;
	font-family: var(--hl-font);
	color: var(--hl-red);
	letter-spacing: 0;
	text-transform: none;
}

.hl-hero__kicker {
	font-size: max(15px, calc(48 * var(--hl-s)));
	font-weight: 400;
	line-height: 1;
}

.hl-hero__title {
	margin-top: max(12px, calc(52 * var(--hl-s)));
	font-size: max(24px, calc(80 * var(--hl-s)));
	font-weight: 700;
	line-height: 1;
}

.hl-hero__more {
	margin-top: max(10px, calc(60 * var(--hl-s)));
	padding: max(4px, calc(12 * var(--hl-s))) 0;
	font-size: max(16px, calc(24 * var(--hl-s)));
	font-weight: 500;
	line-height: 1;
}

.hl-hero__more .fas {
	margin-left: 0.15em;
}

/* ---------- Red introduction band ---------- */

.hl-intro {
	padding: 58px 0 199px;
	background: var(--hl-red);
}

.hl-home .hl-intro__lead {
	width: 85%;
	margin: 0;
	padding-left: 20px;
	font: 700 36px/54px var(--hl-font);
	color: #fff;
}

.hl-home .hl-intro__lead + .hl-intro__lead {
	width: 100%;
	margin-top: 34px;
}

.hl-home .hl-intro__text p {
	margin: 23px 0 0;
	font: 400 24px/36px var(--hl-font);
	color: #e6e6e6;
}

.hl-home .hl-intro__text p:first-child {
	margin-top: 5px;
}

/* ---------- News ---------- */

.hl-news {
	padding: 50px 0 30px;
}

.hl-home .hl-news__heading {
	flex: 0 0 100%;
	margin: 0 0 46px;
	padding: 0 17.5px;
	font: 700 36px/54px var(--hl-font);
	color: var(--hl-ink);
	text-align: center;
	text-transform: none;
}

.hl-date {
	display: block;
	font: 500 12px/15px var(--hl-font);
	color: var(--hl-ink);
}

.hl-feature {
	display: block;
	margin-bottom: 30px;
	background: var(--hl-card);
}

.hl-feature__image {
	height: 273px;
	overflow: hidden;
}

.hl-feature__image img,
.hl-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hl-feature__body {
	padding: 45px 7% 7%;
}

.hl-home .hl-feature__title {
	margin: 15px 0;
	font: 700 23px/1.45 var(--hl-font);
	color: var(--hl-ink);
	text-transform: none;
}

.hl-home .hl-feature__excerpt {
	margin: 0;
	font: 400 18px/26px var(--hl-font);
	color: var(--hl-ink);
}

.hl-feature__button {
	display: block;
	height: 70px;
	margin-top: 45px;
	padding: 0 40px;
	border: 1px solid rgba(110, 110, 95, 0.25);
	border-radius: 8px;
	background: var(--hl-red);
	font: 700 18px/68px var(--hl-font);
	color: #fff;
	text-align: center;
	text-transform: uppercase;
}

.hl-news-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
	padding: 0;
	list-style: none;
}

.hl-news-grid__item {
	flex: 0 0 50%;
	max-width: 50%;
	margin: 0 0 30px;
	padding: 0 17.5px;
}

/* Every card in a row is the same height, with the grey panel filling to a common bottom. */
.hl-news-grid__item {
	display: flex;
}

.hl-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--hl-card);
}

.hl-card__body {
	flex: 1 1 auto;
}

/* Lead story and the grid end on the same line. */
.hl-news .hl-col {
	display: flex;
	flex-direction: column;
}

.hl-feature {
	flex: 1 1 auto;
}

.hl-news .hl-col > .hl-news-grid {
	flex: 1 1 auto;
	align-content: stretch;
}

.hl-card__image {
	aspect-ratio: 2 / 1;
	overflow: hidden;
}

.hl-card__body {
	padding: 21px 15px 24px 20px;
}

.hl-home .hl-card__title {
	height: 66px;
	margin: 10px 0 14px;
	overflow: hidden;
	font: 700 17px/22px var(--hl-font);
	color: var(--hl-ink);
	text-transform: none;
}

.hl-card__more {
	display: inline-block;
	font: 500 12px/18px var(--hl-font);
	color: var(--hl-ink);
	text-transform: uppercase;
}

.hl-card__more::after {
	content: "\f061";
	margin-left: 10px;
	font-family: "Font Awesome 5 Pro";
	font-weight: 400;
}

/* ---------- Delivery partners ---------- */

.hl-partners {
	margin: 28px 17.5px 0;
	border-top: 1px solid #ebebeb;
}

.hl-home .hl-partners__heading {
	margin: 28px 0 36px;
	padding: 28px 0 36px;
	font: 700 12px/16.2px var(--hl-font);
	color: var(--hl-ink);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0;
}

/* Logos sit in equal boxes, centred, so the row lines up whatever each logo's shape. */
.hl-partners__list {
	display: flex;
	justify-content: center;
	align-items: stretch;
	width: 77%;
	margin: 0 auto 20px;
	padding: 0;
	list-style: none;
}

.hl-partners__item {
	display: flex;
	flex: 1 1 33.333%;
	align-items: center;
	justify-content: center;
	min-height: 110px;
	padding: 0 17.5px;
	text-align: center;
}

.hl-partners__item a {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hl-partners__item img {
	display: inline-block;
	width: 235px;
	max-width: 100%;
	height: auto;
}

/* ---------- Scroll reveals (added by home-light.js for sections below the fold) ---------- */

.hl-reveal {
	transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.hl-reveal.is-pending {
	opacity: 0;
}

.hl-reveal--up.is-pending {
	transform: translateY(80px);
}

.hl-reveal--left.is-pending {
	transform: translateX(-60px);
}

.hl-reveal--right.is-pending {
	transform: translateX(60px);
}

@media (prefers-reduced-motion: reduce) {
	.hl-reveal,
	.hl-reveal.is-pending {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Breakpoints (matching the theme's responsive.css) ---------- */

@media (max-width: 1200px) {
	.hl-date {
		font-size: 11px;
	}

	.hl-home .hl-card__title {
		font-size: 14px;
	}
}

@media (max-width: 1090px) {
	.hl-partners__item img {
		width: 180px;
	}
}

@media (max-width: 990px) {
	.hl-partners__item img {
		width: 140px;
	}
}

@media (max-width: 767px) {
	.hl-col,
	.hl-news-grid__item {
		flex-basis: 100%;
		max-width: 100%;
	}

	.hl-intro {
		padding: 58px 0;
	}

	.hl-home .hl-intro__lead {
		width: 100%;
		font-size: 22px;
		line-height: 36px;
	}

	.hl-home .hl-intro__text p {
		font-size: 18px;
		line-height: 30px;
	}

	.hl-home .hl-intro__text p:first-child {
		margin-top: 40px;
	}

	.hl-news {
		padding: 0;
	}

	.hl-home .hl-news__heading {
		margin: 20px 0;
		font-size: 27px;
	}

	.hl-date {
		font-size: 12px;
	}

	.hl-feature__image {
		height: auto;
		aspect-ratio: 1190 / 558;
	}

	.hl-home .hl-feature__title {
		font-size: 20px;
	}

	.hl-news-grid {
		margin: 0;
	}

	.hl-news-grid__item {
		padding: 0;
	}

	.hl-home .hl-card__title {
		font-size: 17px;
	}

	.hl-home .hl-partners__heading {
		margin-bottom: 40px;
	}

	.hl-partners__list {
		flex-direction: column;
		align-items: center;
		width: 100%;
	}

	.hl-partners__item {
		margin-bottom: 20px;
	}

	.hl-partners__item img {
		width: 190px;
	}
}
