/*
 * Home campaign hero.
 *
 * The campaign artwork and copy remain editable native Divi modules. These
 * classes only supply the reusable layout contract that the original fixed
 * 1080px / 760px builder values could not express cleanly across viewports.
 */

.trbc-home-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(640px, calc(100svh - 80px), 820px);
	overflow: hidden;
	background-position: center;
}

.trbc-home-hero::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	content: "";
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(26, 8, 3, 0.03) 0%,
		rgba(26, 8, 3, 0.08) 43%,
		rgba(26, 8, 3, 0.34) 100%
	);
}

.trbc-home-hero > .trbc-home-hero__inner {
	position: relative;
	z-index: 1;
	width: min(92%, 1320px) !important;
	max-width: 1320px !important;
	min-height: inherit !important;
	padding: clamp(48px, 6vw, 80px) 0 !important;
	gap: clamp(40px, 5vw, 84px) !important;
	align-items: center;
}

.trbc-home-hero__art,
.trbc-home-hero__content,
.trbc-home-hero__art .et_pb_module,
.trbc-home-hero__content .et_pb_module {
	margin-bottom: 0 !important;
}

.trbc-home-hero .trbc-home-hero__art,
.trbc-home-hero .trbc-home-hero__content {
	width: auto !important;
	min-width: 0;
	flex: 1 1 0 !important;
	align-self: center;
}

.trbc-home-hero .trbc-home-hero__art {
	justify-content: center;
}

.trbc-home-hero .trbc-home-hero__content {
	gap: 0 !important;
}

.trbc-home-hero .trbc-home-hero__mark {
	width: min(82%, 520px) !important;
	max-width: 520px !important;
}

.trbc-home-hero__mark .et_pb_image_wrap,
.trbc-home-hero__mark img {
	display: block;
	width: 100%;
}

.trbc-home-hero .trbc-home-hero__copy {
	display: block !important;
	width: 100% !important;
	max-width: 560px !important;
	padding: 0 !important;
	text-align: left;
}

.trbc-home-hero__copy h2 {
	margin: 0;
	padding: 0 0 var(--trbc-space-4);
	color: var(--trbc-ink-invert);
	font-family: var(--trbc-face);
	font-size: clamp(34px, 3.1vw, 46px);
	font-weight: var(--trbc-weight-bold);
	line-height: 1.08;
	letter-spacing: var(--trbc-tracking-tight);
	text-align: left;
	text-wrap: balance;
}

.trbc-home-hero__copy p {
	max-width: 48ch;
	margin: 0;
	color: var(--trbc-ink-invert);
	font-family: var(--trbc-face);
	font-size: clamp(16px, 1.25vw, 18px);
	line-height: var(--trbc-leading-normal);
	text-wrap: pretty;
}

.trbc-home-hero .trbc-home-hero__actions {
	display: flex;
	width: 100%;
	margin-top: var(--trbc-space-6) !important;
	gap: var(--trbc-space-3) !important;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.trbc-home-hero__actions .et_pb_button_module_wrapper {
	margin: 0 !important;
}

.trbc-home-hero__actions .et_pb_button {
	display: inline-flex;
	min-height: var(--trbc-tap);
	padding: 0 var(--trbc-space-6) !important;
	border: 1px solid transparent !important;
	border-radius: var(--trbc-radius-md) !important;
	align-items: center;
	justify-content: center;
	color: var(--trbc-ink-invert) !important;
	font-family: var(--trbc-face);
	font-size: var(--trbc-text-base) !important;
	font-weight: var(--trbc-weight-semibold) !important;
	line-height: 1 !important;
	text-decoration: none;
	box-shadow: var(--trbc-shadow-brand);
	transition: background var(--trbc-ease-quick), border-color var(--trbc-ease-quick),
		transform var(--trbc-ease-quick), box-shadow var(--trbc-ease-slow);
}

.trbc-home-hero__actions .trbc-home-hero__primary {
	border-color: var(--trbc-brand) !important;
	background: var(--trbc-brand) !important;
}

.trbc-home-hero__actions .trbc-home-hero__primary:hover {
	border-color: var(--trbc-brand-hover) !important;
	background: var(--trbc-brand-hover) !important;
	transform: translateY(-1px);
	box-shadow: var(--trbc-shadow-brand-hover);
}

.trbc-home-hero__actions .trbc-home-hero__secondary {
	border-color: rgba(255, 255, 255, 0.72) !important;
	background: rgba(13, 37, 55, 0.2) !important;
	box-shadow: none;
}

/* Divi's generated preset selector includes #page-container and is emitted
   after the child-theme sheets. Match that context so an inverse-surface
   action keeps legible white text without changing the reusable secondary
   preset used on light sections. */
body #page-container .trbc-home-hero .trbc-home-hero__actions a.et_pb_button.trbc-home-hero__secondary {
	color: var(--trbc-ink-invert) !important;
}

.trbc-home-hero__actions .trbc-home-hero__secondary:hover {
	border-color: var(--trbc-ink-invert) !important;
	background: rgba(255, 255, 255, 0.14) !important;
	transform: translateY(-1px);
}

.trbc-home-hero__actions .et_pb_button:focus-visible {
	outline: 2px solid var(--trbc-ink-invert);
	outline-offset: 3px;
}

@media (max-width: 980px) {
	.trbc-home-hero {
		min-height: calc(100svh - 64px);
		background-position: center top;
	}

	.trbc-home-hero::before {
		background: linear-gradient(
			180deg,
			rgba(26, 8, 3, 0.02) 0%,
			rgba(26, 8, 3, 0.1) 35%,
			rgba(26, 8, 3, 0.32) 100%
		);
	}

	.trbc-home-hero > .trbc-home-hero__inner {
		width: min(90%, 680px) !important;
		padding: var(--trbc-space-12) 0 !important;
		gap: var(--trbc-space-8) !important;
		flex-direction: column;
	}

	.trbc-home-hero .trbc-home-hero__art,
	.trbc-home-hero .trbc-home-hero__content {
		width: 100% !important;
		max-width: 100% !important;
		flex-basis: 100% !important;
	}

	.trbc-home-hero .trbc-home-hero__mark {
		width: min(74%, 380px) !important;
		margin-inline: auto !important;
	}

	.trbc-home-hero .trbc-home-hero__copy {
		max-width: 620px !important;
		margin-inline: auto !important;
		text-align: center;
	}

	.trbc-home-hero__copy h2 {
		font-size: clamp(30px, 7.5vw, 40px);
		text-align: center;
	}

	.trbc-home-hero__copy p {
		max-width: 40ch;
		margin-inline: auto;
	}

	.trbc-home-hero .trbc-home-hero__actions {
		margin-top: var(--trbc-space-5) !important;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.trbc-home-hero {
		min-height: auto;
	}

	.trbc-home-hero > .trbc-home-hero__inner {
		padding: var(--trbc-space-10) 0 var(--trbc-space-12) !important;
		gap: var(--trbc-space-6) !important;
	}

	.trbc-home-hero .trbc-home-hero__mark {
		width: min(74%, 290px) !important;
	}

	.trbc-home-hero__copy h2 {
		font-size: 30px;
	}

	.trbc-home-hero__copy p {
		font-size: 16px;
	}

	.trbc-home-hero__actions .et_pb_button {
		min-height: var(--trbc-tap);
		padding-inline: var(--trbc-space-5) !important;
		font-size: var(--trbc-text-base) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trbc-home-hero__actions .et_pb_button {
		transition: none;
	}

	.trbc-home-hero__actions .et_pb_button:hover {
		transform: none;
	}
}
