/* GG Hero ---------------------------------------------------------------- */
.gg-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	font-family: var(--gg-font-sans, 'Poppins', sans-serif);
}

.gg-hero__bg,
.gg-hero__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Self-hosted background video — same cover-fill behavior as the image. */
.gg-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

/* YouTube background — the standard "scale-and-center" technique so a 16:9 iframe always
   covers the section regardless of its actual aspect ratio, without any JS. */
.gg-hero__yt-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.gg-hero__yt-wrap iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw; /* 16:9 */
	min-height: 100%;
	min-width: 177.78vh; /* 16:9, height-driven */
	transform: translate(-50%, -50%);
	border: none;
}

.gg-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(21,39,68,0.55) 0%, rgba(21,39,68,0.05) 100%);
}

.gg-hero__content {
	position: relative;
	z-index: 2;
	--gg-anim-duration: 800ms;
	--gg-anim-delay: 100ms;
}

/* Content entrance animations — skipped entirely for people who've asked their OS/browser
   for reduced motion, per standard accessibility practice. */
@media (prefers-reduced-motion: no-preference) {
	.gg-hero__content--anim-fade-in {
		animation: gg-hero-fade-in var(--gg-anim-duration) ease both;
		animation-delay: var(--gg-anim-delay);
	}
	.gg-hero__content--anim-fade-up {
		animation: gg-hero-fade-up var(--gg-anim-duration) ease both;
		animation-delay: var(--gg-anim-delay);
	}
	.gg-hero__content--anim-zoom-in {
		animation: gg-hero-zoom-in var(--gg-anim-duration) ease both;
		animation-delay: var(--gg-anim-delay);
	}
	.gg-hero__content--anim-slide-right {
		animation: gg-hero-slide-right var(--gg-anim-duration) ease both;
		animation-delay: var(--gg-anim-delay);
	}
}

@keyframes gg-hero-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes gg-hero-fade-up {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes gg-hero-zoom-in {
	from { opacity: 0; transform: scale(0.92); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes gg-hero-slide-right {
	from { opacity: 0; transform: translateX(-40px); }
	to   { opacity: 1; transform: translateX(0); }
}

.gg-hero__heading {
	margin: 0 0 16px;
}

.gg-hero__underline {
	display: block;
	margin: -6px 0 16px;
	color: #D9A441;
	line-height: 0;
}

.gg-hero__underline .gg-icon-svg,
.gg-hero__underline img {
	width: 140px;
	height: auto;
	display: block;
}

.gg-hero__underline img {
	object-fit: contain;
}

.gg-hero__description {
	margin: 0 0 10px;
	max-width: 480px;
}

.gg-hero__secondary {
	margin: 0 0 26px;
}

.gg-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.gg-hero__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	transition: filter .2s ease, transform .15s ease;
}

.gg-hero__button .gg-icon-svg {
	display: inline-block;
	vertical-align: middle;
}

.gg-hero__button:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

@media (max-width: 767px) {
	.gg-hero__content { padding: 40px 24px !important; max-width: 100% !important; }
	.gg-hero__heading { font-size: 34px !important; }
	.gg-hero__buttons { flex-direction: column; align-items: flex-start; }
	.gg-hero__button { width: 100%; justify-content: center; }
}
