/* ==========================================================================
   GF Banner widget
   ========================================================================== */

.gf-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: var(--gf-banner-h, 100vh);
	background-color: #f3f3f3;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	overflow: hidden;
}

/* --gf-header-offset is measured by header.js (header + admin bar); 99px is the desktop fallback */
.gf-banner--offset {
	height: calc(var(--gf-banner-h, 100vh) - var(--gf-header-offset, 99px));
}

/* Leave room for the ticker right below (its height is measured by header.js) */
.gf-banner--fit-next {
	height: calc(var(--gf-banner-h, 100vh) - var(--gf-next-h, 0px));
	min-height: 480px;
}

.gf-banner--offset.gf-banner--fit-next {
	height: calc(var(--gf-banner-h, 100vh) - var(--gf-header-offset, 99px) - var(--gf-next-h, 0px));
}

.gf-banner--fade::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 60%;
	background: linear-gradient(to bottom, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}

.gf-banner__hero {
	position: relative;
	z-index: 1;
	flex: 1 0 auto;
	padding: 56px 20px 60px;
}

/* Figma 523:4153 — 1161px content column */
.gf-banner__content {
	max-width: 1161px;
	margin: 0 auto;
	text-align: center;
}

/* Title */
.gf-banner__title {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: var(--gf-h1);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -.02em;
	color: var(--gf-navy);
	text-wrap: balance;
}

.gf-banner__title > span {
	vertical-align: middle;
}

.gf-banner__highlight {
	position: relative;
	display: inline-block;
	margin: 0 4px;
	padding: 0 16px 2px;
	line-height: 1.05;
	background-color: var(--gf-navy);
	border-radius: 14.4px;
	color: var(--gf-white);
	overflow: hidden;
	isolation: isolate;
}

.gf-banner__highlight::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 4%;
	z-index: -1;
	width: 110%;
	aspect-ratio: 1;
	background-image: var(--gf-hl-img, none);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: .2;
	transform: translateY(-50%) rotate(-7.8deg);
	pointer-events: none;
}

/* Description */
.gf-banner__desc {
	max-width: 780px;
	margin: 30px auto 0;
	font-family: var(--gf-font-body);
	font-size: var(--gf-body);
	line-height: var(--gf-body-lh);
	letter-spacing: -.02em;
	color: var(--gf-black);
}

/* Buttons */
.gf-banner__buttons {
	display: flex;
	align-items: center;
	justify-content: var(--gf-banner-justify, center);
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 38px;
}

/* Certified by */
.gf-banner__certified {
	position: absolute;
	top: 0;
	right: 0;
	width: 182px;
	padding: 22px 20px 38px;
	background: var(--gf-white);
	border: 1px solid #d8d8d8;
	border-top: 0;
	border-radius: 0 0 0 110px;
	text-align: center;
}

.gf-banner__certified-title {
	margin: 0 0 29px;
	font-family: var(--gf-font-alt);
	font-size: var(--gf-h4);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -.02em;
	color: var(--gf-black);
}

.gf-banner__certified ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gf-banner__certified ul {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.gf-banner__certified img {
	display: block;
	width: auto;
	max-width: 114px;
	max-height: 96px;
}

/* Responsive */
@media (max-width: 1440px) {
	.gf-banner {
		--gf-cert-right: 30px;
	}
}

@media (max-width: 1199px) {
	.gf-banner__hero {
		padding-top: 70px;
	}

	.gf-banner__certified {
		position: relative;
		top: auto;
		right: auto;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 24px;
		width: max-content;
		max-width: 100%;
		margin: 40px auto 0;
		padding: 14px 30px;
		border: 1px solid #e3e3e3;
		border-radius: 60px;
	}

	.gf-banner__certified-title {
		margin: 0;
	}

	.gf-banner__certified ul {
		flex-direction: row;
		gap: 20px;
	}

	.gf-banner__certified img {
		max-width: 90px;
		max-height: 60px;
	}

}

@media (max-width: 767px) {
	/* Let content grow on short phone screens instead of being clipped */
	.gf-banner,
	.gf-banner--offset,
	.gf-banner--offset.gf-banner--fit-next {
		height: auto;
		min-height: calc(var(--gf-banner-h, 100vh) - var(--gf-header-offset, 81px));
		background-position: center bottom;
	}

	.gf-banner__hero {
		padding: 50px 16px 40px;
	}

	.gf-banner__title {
		line-height: 1.1;
	}

	.gf-banner__highlight {
		margin: 0 3px;
		padding: 0 14px 4px;
		border-radius: 10px;
	}

	.gf-banner__desc {
		margin-top: 24px;
	}

	.gf-banner__buttons {
		gap: 12px;
		margin-top: 28px;
	}

	.gf-banner__buttons .gf-btn {
		width: 100%;
		min-height: 54px;
	}

	/* Outline button sits over the photo on phones: solid white so it stays readable */
	.gf-banner__buttons .gf-btn--outline {
		background-color: var(--gf-white);
		border-color: var(--gf-white);
		color: var(--gf-navy);
		box-shadow: 0 8px 20px -10px rgb(5 2 47 / 45%);
	}

	.gf-banner__buttons .gf-btn--outline:hover,
	.gf-banner__buttons .gf-btn--outline:focus {
		background-color: var(--gf-navy);
		border-color: var(--gf-navy);
		color: var(--gf-white);
	}

	.gf-banner__certified {
		flex-direction: column;
		gap: 12px;
		padding: 16px 24px;
		border-radius: 20px;
	}

	.gf-banner__certified img {
		max-width: 72px;
		max-height: 50px;
	}



}

@media (max-width: 767px) {
	.gf-banner--offset.gf-banner--fit-next {
		min-height: calc(var(--gf-banner-h, 100vh) - var(--gf-header-offset, 81px) - var(--gf-next-h, 0px));
	}
}
