/* Homepage static banner (CBC-249, client design Nov 2026) – replaces the homepage Revolution Slider.
   Based on the client's banner code; classes renamed .cbc-hb* (their .cbc-hero clashes with the free zone header),
   fonts switched to the theme's Avenir (no Google Fonts), photo is a real <img> (LCP) instead of a CSS background. */

.cbc-hb {
	--cbc-black: #0F0D12;
	--cbc-teal: #029C7E;
	--cbc-teal-hover: #03B591;
	--cbc-card: #1A1820;
	--cbc-line: #2A2731;
	--cbc-overlay: rgba(5, 5, 7, .42);
	position: relative;
	overflow: hidden;
	background: var(--cbc-black);
	color: #fff;
	font-family: avenirlight, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
	/* Full-bleed: break out of the WPBakery column, like the old fullwidth slider. */
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	margin-left: -50vw;
}
body {
	overflow-x: clip;
}
.cbc-hb *,
.cbc-hb *::before,
.cbc-hb *::after {
	box-sizing: border-box;
}

/* Photo: right half, fading in from black */
.cbc-hb__photo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 50%;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, rgba(0, 0, 0, .8) 36%, #000 52%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, rgba(0, 0, 0, .8) 36%, #000 52%);
}
.cbc-hb__photo picture {
	display: block;
	width: 100%;
	height: 100%;
}
.cbc-hb img.cbc-hb__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: 100% 60%;
}
.cbc-hb__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(15, 13, 18, .5) 0%, rgba(15, 13, 18, 0) 30%), var(--cbc-overlay);
}

.cbc-hb__wrap {
	position: relative;
	z-index: 1;
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 88px) clamp(20px, 4.5vw, 64px);
}
.cbc-hb__copy {
	width: 48%;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 26px;
}

.cbc-hb .cbc-hb__badge {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(2, 156, 126, .16);
	border: 1px solid var(--cbc-teal);
	color: #fff;
	font-family: avenirheavy, system-ui, sans-serif !important;
	font-size: 14px;
	line-height: 1.3;
}
.cbc-hb__badge svg {
	width: 16px;
	height: 16px;
	color: var(--cbc-teal);
}

.cbc-hb .cbc-hb__title {
	margin: 0;
	padding: 0;
	max-width: 19ch;
	color: #fff;
	font-family: avenirheavy, system-ui, sans-serif !important;
	font-weight: 400;
	font-size: clamp(32px, 3.6vw, 52px);
	line-height: 1.1;
	letter-spacing: -.01em;
	text-transform: none;
}

.cbc-hb a.cbc-hb__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 30px;
	border-radius: 6px;
	background: var(--cbc-teal);
	color: #fff;
	font-family: avenirheavy, system-ui, sans-serif !important;
	font-size: 16px;
	text-decoration: none;
	transition: background-color .15s ease;
}
.cbc-hb a.cbc-hb__cta:hover {
	background: var(--cbc-teal-hover);
	color: #fff;
}
.cbc-hb__cta svg {
	width: 18px;
	height: 18px;
}

/* Services: two columns of three */
.cbc-hb__services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;
	gap: 12px;
	width: 100%;
	margin-top: 14px;
}
.cbc-hb a.cbc-hb__svc {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 60px;
	padding: 0 14px;
	border-radius: 10px;
	background: var(--cbc-card);
	border: 1px solid var(--cbc-line);
	color: #fff;
	text-decoration: none;
	font-family: avenirheavy, system-ui, sans-serif !important;
	font-size: 14px;
	line-height: 1.3;
	transition: border-color .15s ease, background-color .15s ease;
}
.cbc-hb a.cbc-hb__svc:hover {
	border-color: var(--cbc-teal);
	background: #201D27;
	color: #fff;
}
.cbc-hb__ic {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 8px;
	background: rgba(2, 156, 126, .16);
	color: var(--cbc-teal);
	display: flex;
	align-items: center;
	justify-content: center;
}
.cbc-hb__name {
	flex-grow: 1;
}
.cbc-hb__arrow {
	flex-shrink: 0;
	color: var(--cbc-teal);
	transition: transform .15s ease;
}
.cbc-hb__cta .cbc-hb__arrow {
	color: #fff;
}
.cbc-hb__svc:hover .cbc-hb__arrow {
	transform: translateX(3px);
}
.cbc-hb a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Tablets and phones: photo strip on top, content below */
@media (max-width: 960px) {
	.cbc-hb__photo {
		position: relative;
		width: 100%;
		height: clamp(200px, 42vw, 320px);
		-webkit-mask-image: none;
		mask-image: none;
	}
	.cbc-hb__photo::after {
		background: linear-gradient(0deg, #0F0D12 0%, rgba(15, 13, 18, 0) 40%), var(--cbc-overlay);
	}
	.cbc-hb__wrap {
		padding-top: 8px;
	}
	.cbc-hb__copy {
		width: 100%;
		max-width: 680px;
	}
}
@media (max-width: 560px) {
	.cbc-hb__services {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-auto-flow: row;
	}
	.cbc-hb a.cbc-hb__cta {
		width: 100%;
		justify-content: center;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cbc-hb__cta,
	.cbc-hb__svc,
	.cbc-hb__arrow {
		transition: none;
	}
}
