/* Homepage split hero — Secondary Glazing 55 | Clearview BiFold 45
   Loaded only when cvsg_home_split_hero_enabled() is true.

   Photos are full-bleed. Copy sits in one overlay grid so both columns
   share the same rows and the whole block is vertically centred. */

.cvsg-split-hero {
	--split-navy: #0b3658;
	--split-ink: #333333;
	--split-cyan: #08a5cf;
	--split-green: #43cb88;
	--split-eyebrow: #7ad6ed;
	--split-join-top: 57%;
	--split-join-bottom: 52%;
	--split-frame-inset: max(var(--content-gutter, 15px), calc((100vw - var(--content-max-width, 1460px)) / 2));
	position: relative;
	width: 100%;
	color: #fff;
	font-family: Poppins, "Open Sans", sans-serif;
	background: var(--split-ink);
	box-sizing: border-box;
}

.cvsg-split-hero *,
.cvsg-split-hero *::before,
.cvsg-split-hero *::after {
	box-sizing: border-box;
}

.cvsg-split-hero__stage {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	min-height: min(72vh, 680px);
}

.cvsg-split-hero__panel {
	position: relative;
	min-width: 0;
	min-height: 100%;
	overflow: hidden;
	isolation: isolate;
	grid-column: 1;
	grid-row: 1;
}

.cvsg-split-hero__panel--sg {
	z-index: 0;
	clip-path: polygon(0 0, calc(var(--split-join-top) + 1px) 0, calc(var(--split-join-bottom) + 1px) 100%, 0 100%);
}

.cvsg-split-hero__panel--bifold {
	z-index: 1;
	border-left: 0;
	clip-path: polygon(var(--split-join-top) 0, 100% 0, 100% 100%, var(--split-join-bottom) 100%);
}

.cvsg-split-hero__panel::before,
.cvsg-split-hero__panel::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cvsg-split-hero__panel::before {
	z-index: 0;
	background: var(--split-hero-bg) center / cover no-repeat;
	transition: transform 500ms ease;
}

.cvsg-split-hero__stage:has(.cvsg-split-hero__col--sg:hover) .cvsg-split-hero__panel--sg::before,
.cvsg-split-hero__stage:has(.cvsg-split-hero__col--bf:hover) .cvsg-split-hero__panel--bifold::before {
	transform: scale(1.025);
}

.cvsg-split-hero__panel--sg::before {
	background-position: center 40%;
	filter: saturate(0.78) contrast(1.04) brightness(0.88);
}

.cvsg-split-hero__panel--bifold::before {
	background-position: center 45%;
	filter: saturate(0.86) contrast(1.04) brightness(0.78);
}

.cvsg-split-hero__panel::after {
	z-index: 1;
}

.cvsg-split-hero__panel--sg::after {
	background:
		linear-gradient(90deg, rgba(7, 40, 67, 0.94) 0%, rgba(9, 48, 78, 0.78) 52%, rgba(9, 48, 78, 0.28) 100%),
		linear-gradient(180deg, rgba(7, 35, 58, 0.18) 0%, rgba(7, 35, 58, 0.08) 48%, rgba(7, 35, 58, 0.62) 100%);
}

.cvsg-split-hero__panel--bifold::after {
	background:
		linear-gradient(90deg, rgba(7, 40, 67, 0.86) 0%, rgba(9, 48, 78, 0.58) 52%, rgba(9, 48, 78, 0.42) 100%),
		linear-gradient(180deg, rgba(5, 38, 62, 0.28) 0%, rgba(5, 38, 62, 0.16) 48%, rgba(5, 38, 62, 0.7) 100%);
}

.cvsg-split-hero__accent {
	display: none;
}

.cvsg-split-hero__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.42);
	clip-path: polygon(
		calc(var(--split-join-top) - 1px) 0,
		calc(var(--split-join-top) + 1px) 0,
		calc(var(--split-join-bottom) + 1px) 100%,
		calc(var(--split-join-bottom) - 1px) 100%
	);
}

.cvsg-split-hero__copy-grid {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
	grid-template-rows: auto auto auto auto auto;
	align-content: center;
	align-items: start;
	column-gap: 0;
	row-gap: 0.9rem;
	width: 100%;
	padding: 4.5rem 0;
}

.cvsg-split-hero__col {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: 1 / -1;
	min-width: 0;
	align-items: start;
}

.cvsg-split-hero__col--sg {
	max-width: 900px;
	padding-left: var(--split-frame-inset);
	padding-right: 2.5rem;
}

.cvsg-split-hero__col--bf {
	padding-left: 5.5em;
	padding-right: var(--split-frame-inset);
}

.cvsg-split-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7em;
	min-height: 1.75rem;
	margin: 0;
	color: var(--split-eyebrow);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.cvsg-split-hero__title {
	margin: 0;
	color: #fff !important;
	font-size: clamp(1.7rem, 2.4vw, 2.35rem);
	font-weight: 300 !important;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.cvsg-split-hero__title-line {
	display: block;
}

.cvsg-split-hero__intro {
	margin: 0;
	max-width: none;
	color: rgba(255, 255, 255, 0.84);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

.cvsg-split-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0.4rem 0 0;
}

.cvsg-split-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 1.15em;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cvsg-split-hero__btn--solid {
	background: var(--split-cyan);
	border: 1px solid var(--split-cyan);
	color: #fff;
	box-shadow: 0 8px 22px rgba(0, 128, 165, 0.26);
}

.cvsg-split-hero__btn--solid:hover,
.cvsg-split-hero__btn--solid:focus {
	background: #058b61;
	border-color: #058b61;
	color: #fff;
}

.cvsg-split-hero__btn--outline {
	background: rgba(4, 34, 56, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.65);
	color: #fff;
}

.cvsg-split-hero__btn--outline:hover,
.cvsg-split-hero__btn--outline:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

#wrap .cvsg-split-hero__proof,
.cvsg-split-hero__proof {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1.25rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.78);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

#wrap .cvsg-split-hero__proof li,
.cvsg-split-hero__proof li {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
	padding: 0;
}

.cvsg-split-hero__proof li::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--split-cyan);
}

.cvsg-split-hero__trust {
	background: var(--split-ink);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#wrap .cvsg-split-hero__trust .frame,
.cvsg-split-hero__trust .frame {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: var(--content-max-width, 1460px);
	margin: 0 auto;
	padding: 0;
	float: none;
	min-height: 0;
}

#wrap .cvsg-split-hero__trust ul,
.cvsg-split-hero__trust ul {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	flex-wrap: nowrap;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

#wrap .cvsg-split-hero__trust li,
.cvsg-split-hero__trust li {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	gap: 0.4em;
	margin: 0 !important;
	padding: 1em 1.25em !important;
	border-right: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.88rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
}

.cvsg-split-hero__trust li:last-child {
	border-right: none;
}

@media (max-width: 1180px) {
	.cvsg-split-hero__copy-grid {
		padding: 3.5rem 0;
	}

	.cvsg-split-hero__col--sg {
		padding-left: max(1.75rem, var(--split-frame-inset));
		padding-right: max(1.75rem, var(--split-frame-inset));
	}

	.cvsg-split-hero__col--bf {
		padding-left: 5.5em;
		padding-right: max(1.75rem, var(--split-frame-inset));
	}

	.cvsg-split-hero__title {
		font-size: clamp(1.55rem, 2.8vw, 2.1rem);
	}

	.cvsg-split-hero__intro {
		font-size: 15px;
	}

	#wrap .cvsg-split-hero__trust li,
	.cvsg-split-hero__trust li {
		padding: 0.85em 0.75em !important;
		font-size: 0.8rem;
		white-space: normal;
	}
}

@media (max-width: 900px) {
	.cvsg-split-hero__stage {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(440px, auto) minmax(440px, auto);
		min-height: 0;
	}

	.cvsg-split-hero__panel--sg {
		grid-column: 1;
		grid-row: 1;
	}

	.cvsg-split-hero__panel--sg,
	.cvsg-split-hero__panel--bifold {
		clip-path: none;
	}

	.cvsg-split-hero__stage::after {
		display: none;
	}

	.cvsg-split-hero__panel--bifold {
		grid-column: 1;
		grid-row: 2;
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.22);
	}

	.cvsg-split-hero__copy-grid {
		display: contents;
	}

	.cvsg-split-hero__col {
		display: flex;
		flex-direction: column;
		justify-content: center;
		grid-template-rows: none;
		grid-row: auto;
		padding: 3.4rem max(1.5rem, var(--split-frame-inset)) 2.25rem;
	}

	.cvsg-split-hero__col--sg {
		grid-column: 1;
		grid-row: 1;
		z-index: 2;
		max-width: none;
	}

	.cvsg-split-hero__col--bf {
		grid-column: 1;
		grid-row: 2;
		z-index: 2;
	}

	.cvsg-split-hero__panel--sg::after,
	.cvsg-split-hero__panel--bifold::after {
		background:
			linear-gradient(180deg, rgba(7, 35, 58, 0.28) 0%, rgba(7, 35, 58, 0.55) 42%, rgba(7, 35, 58, 0.82) 100%),
			linear-gradient(90deg, rgba(7, 40, 67, 0.55) 0%, rgba(7, 40, 67, 0.2) 100%);
	}

	.cvsg-split-hero__title {
		font-size: 1.85rem;
	}
}

@media (max-width: 700px) {
	#wrap .cvsg-split-hero__trust ul,
	.cvsg-split-hero__trust ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	#wrap .cvsg-split-hero__trust li,
	.cvsg-split-hero__trust li {
		border-right: 1px solid rgba(255, 255, 255, 0.15);
		border-bottom: 1px solid rgba(255, 255, 255, 0.13);
		white-space: normal;
	}

	.cvsg-split-hero__trust li:nth-child(even) {
		border-right: none;
	}

	.cvsg-split-hero__trust li:last-child {
		grid-column: 1 / -1;
		border-right: none;
		border-bottom: none;
	}
}

@media (max-width: 600px) {
	.cvsg-split-hero__stage {
		grid-template-rows: minmax(400px, auto) minmax(400px, auto);
	}

	.cvsg-split-hero__title {
		font-size: 1.7rem;
	}

	.cvsg-split-hero__ctas {
		width: 100%;
	}

	.cvsg-split-hero__btn {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cvsg-split-hero__panel::before,
	.cvsg-split-hero__stage:has(.cvsg-split-hero__col--sg:hover) .cvsg-split-hero__panel--sg::before,
	.cvsg-split-hero__stage:has(.cvsg-split-hero__col--bf:hover) .cvsg-split-hero__panel--bifold::before {
		transition: none;
		transform: none;
	}
}

/* Homepage #wrap button / heading rules must not restyle these. */
#wrap .cvsg-split-hero .cvsg-split-hero__btn {
	margin: 0;
	padding: 0 1.15em;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 700;
	background: var(--split-cyan);
	color: #fff;
}

#wrap .cvsg-split-hero .cvsg-split-hero__btn--outline {
	background: rgba(4, 34, 56, 0.18);
	color: #fff;
}

#wrap .cvsg-split-hero .cvsg-split-hero__btn--solid:hover,
#wrap .cvsg-split-hero .cvsg-split-hero__btn--solid:focus {
	background: #058b61;
	color: #fff;
	padding: 0 1.15em;
}

#wrap .cvsg-split-hero h1.cvsg-split-hero__title,
#wrap .cvsg-split-hero h2.cvsg-split-hero__title {
	color: #fff !important;
	font-weight: 300 !important;
}
