/*
 * CloudnBugs Sections
 * Scoped styles: all selectors are contained within .cnb-hero to minimize theme/plugin conflicts.
 */

.cnb-hero {
	--cnb-blue: #0871c9;
	--cnb-blue-dark: #082f56;
	--cnb-green: #2fa62f;
	--cnb-green-hover: #268a28;
	--cnb-text: #17334c;
	--cnb-border: #dce8ef;
	background: linear-gradient(90deg, #f5fbff 0%, #fff 57%);
	color: var(--cnb-text);
	overflow: hidden;
}

.cnb-hero .cnb-hero__columns {
	align-items: stretch;
	margin-block: 0;
	min-height: 610px;
}

.cnb-hero .cnb-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4.5rem);
}

.cnb-hero .cnb-hero__eyebrow {
	color: var(--cnb-blue-dark);
	font-size: .78rem;
	font-weight: 750;
	letter-spacing: .13em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.cnb-hero .cnb-hero__heading {
	color: var(--cnb-blue-dark);
	font-size: clamp(2.7rem, 4.3vw, 4.25rem);
	font-weight: 750;
	letter-spacing: -.045em;
	line-height: 1.03;
	margin: 0 0 1.4rem;
	max-width: 12ch;
}

.cnb-hero .cnb-hero__heading span { color: var(--cnb-blue); }

.cnb-hero .cnb-hero__lead {
	font-size: clamp(1rem, 1.25vw, 1.16rem);
	line-height: 1.62;
	margin: 0 0 .8rem;
	max-width: 42rem;
}

.cnb-hero .cnb-hero__buttons {
	gap: .9rem;
	margin-top: 1.3rem;
}

.cnb-hero .cnb-button .wp-block-button__link {
	border-radius: .4rem;
	font-size: .96rem;
	font-weight: 700;
	padding: .9rem 1.25rem;
	text-decoration: none;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.cnb-hero .cnb-button--primary .wp-block-button__link {
	background: var(--cnb-green);
	border: 2px solid var(--cnb-green);
	color: #fff;
}

.cnb-hero .cnb-button--primary .wp-block-button__link:hover,
.cnb-hero .cnb-button--primary .wp-block-button__link:focus-visible {
	background: var(--cnb-green-hover);
	border-color: var(--cnb-green-hover);
	transform: translateY(-1px);
}

.cnb-hero .cnb-button--secondary .wp-block-button__link {
	background: #fff;
	border: 2px solid var(--cnb-blue);
	color: var(--cnb-blue);
}

.cnb-hero .cnb-button--secondary .wp-block-button__link:hover,
.cnb-hero .cnb-button--secondary .wp-block-button__link:focus-visible {
	background: var(--cnb-blue);
	color: #fff;
	transform: translateY(-1px);
}

.cnb-hero .cnb-benefits {
	border-top: 1px solid var(--cnb-border);
	gap: 0;
	margin-top: 2.25rem;
	padding-top: 1.15rem;
}

.cnb-hero .cnb-benefit {
	border-right: 1px solid var(--cnb-border);
	padding: .2rem .75rem;
	text-align: center;
}

.cnb-hero .cnb-benefit:last-child { border-right: 0; }

.cnb-hero .cnb-benefit__icon {
	color: var(--cnb-blue);
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1;
	margin: 0 0 .45rem;
}

.cnb-hero .cnb-benefit__label {
	color: var(--cnb-blue-dark);
	font-size: .82rem;
	line-height: 1.25;
	margin: 0;
}

.cnb-hero .cnb-hero__media {
	min-height: 610px;
	position: relative;
}

.cnb-hero .cnb-hero__image {
	height: 100%;
	inset: 0;
	margin: 0;
	position: absolute;
	width: 100%;
}

.cnb-hero .cnb-hero__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.cnb-hero .cnb-hero__media::before {
	background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.7) 15%, rgba(255,255,255,0) 38%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

@media (max-width: 1000px) {
	.cnb-hero .cnb-hero__columns { min-height: 540px; }
	.cnb-hero .cnb-hero__media { min-height: 540px; }
	.cnb-hero .cnb-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.cnb-hero .cnb-benefit:nth-child(2) { border-right: 0; }
}

@media (max-width: 781px) {
	.cnb-hero .cnb-hero__columns { flex-direction: column; }
	.cnb-hero .cnb-hero__content,
	.cnb-hero .cnb-hero__media { flex-basis: 100% !important; }
	.cnb-hero .cnb-hero__content { padding: 3rem 1.35rem 2.25rem; }
	.cnb-hero .cnb-hero__heading { font-size: clamp(2.35rem, 10vw, 3.25rem); max-width: none; }
	.cnb-hero .cnb-hero__buttons { align-items: stretch; flex-direction: column; }
	.cnb-hero .cnb-hero__buttons .wp-block-button,
	.cnb-hero .cnb-hero__buttons .wp-block-button__link { box-sizing: border-box; text-align: center; width: 100%; }
	.cnb-hero .cnb-benefit { border-bottom: 1px solid var(--cnb-border); }
	.cnb-hero .cnb-benefit:nth-last-child(-n+2) { border-bottom: 0; }
	.cnb-hero .cnb-hero__media { min-height: 330px; }
	.cnb-hero .cnb-hero__media::before {
		background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 24%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cnb-hero .cnb-button .wp-block-button__link { transition: none; }
}
