/**
 * Hero block — LoveDate affiliate hero style.
 */

.gr-hero {
	--gr-hero-bg: var(--gr-color-bg-soft);
	--gr-header-height: 80px;
	position: relative;
	overflow: hidden;
	width: 100%;
	max-height: calc(100vh - var(--gr-header-height));
	background-color: var(--gr-hero-bg);
	border-top: 1px solid var(--gr-color-border);
}

.gr-hero__container {
	position: relative;
	z-index: 2;
	height: 100%;
}

.gr-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 58%);
	align-items: center;
	gap: clamp(1.5rem, 3vw, 3rem);
	height: calc(100vh - var(--gr-header-height));
	max-height: calc(100vh - var(--gr-header-height));
	min-height: 0;
	padding-block: 0;
}

.gr-hero__content {
	max-width: 560px;
	padding-right: clamp(0px, 3vw, 2.5rem);
}

.gr-hero__title {
	margin: 0;
	font-family: var(--gr-font-heading);
	font-size: clamp(2rem, 3vw + 1rem, var(--gr-font-size-2xl));
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--gr-letter-spacing-heading);
	color: var(--gr-color-heading);
}

.gr-hero__subtitle {
	margin-top: 12px;
	font-family: var(--gr-font-body);
	font-size: var(--gr-font-size-base);
	line-height: var(--gr-line-height-base);
	color: var(--gr-color-text);
}

.gr-hero__subtitle p {
	margin: 0;
}

.gr-hero__subtitle p + p {
	margin-top: 1em;
}

.gr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.gr-hero__content .gr-hero__benefits {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	gap: 0.625rem 1rem;
	margin: 1.25rem 0 0;
	padding: 0;
	padding-inline-start: 0;
	list-style: none;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--gr-color-primary);
}

.gr-hero__benefits li {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.gr-hero__benefits svg {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	color: var(--gr-color-secondary);
}

.gr-hero__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
	min-height: 0;
}

.gr-hero__image-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: min(560px, 100%);
	max-height: calc(100vh - var(--gr-header-height) - 4rem);
}

.gr-hero__image {
	width: 100%;
	height: auto;
	max-height: calc(100vh - var(--gr-header-height) - 4rem);
	object-fit: contain;
	object-position: bottom center;
}

.gr-hero__image-wrap--placeholder,
.gr-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	border: 1px dashed var(--gr-color-border-strong);
	border-radius: var(--gr-radius-md);
	background-color: rgba(255, 255, 255, 0.45);
	color: var(--gr-color-text-muted);
	font-weight: 600;
}

/* Decorative SVGs — LoveDate-style motion */
.gr-hero__decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.gr-hero__decor-item {
	position: absolute;
	display: block;
	will-change: transform;
}

.gr-hero__decor-item img {
	display: block;
	width: 100%;
	height: auto;
}

.gr-hero__decor-item--bubble-1 {
	right: 0;
	top: 12%;
	width: clamp(140px, 18vw, 260px);
	animation: gr-hero-move-left 5s linear infinite alternate;
	animation-delay: 0s;
}

.gr-hero__decor-item--bubble-2 {
	left: 0;
	top: 38%;
	width: clamp(100px, 12vw, 207px);
	opacity: 0.85;
	animation: gr-hero-move-left 5s linear infinite alternate-reverse;
	animation-delay: 2.9s;
}

.gr-hero__decor-item--heart-1 {
	left: 0;
	top: 10%;
	width: clamp(56px, 6vw, 80px);
	animation: gr-hero-move-left 5s linear infinite alternate;
	animation-delay: 1.1s;
}

.gr-hero__decor-item--heart-2 {
	right: 0;
	bottom: 29%;
	width: clamp(28px, 3vw, 42px);
	animation: gr-hero-move-zoom 2.8s linear infinite alternate;
	animation-delay: 0.4s;
}

.gr-hero__decor-item--heart-3 {
	right: 18%;
	top: 18%;
	width: clamp(22px, 2.5vw, 34px);
	animation: gr-hero-move-zoom 2.4s linear infinite alternate-reverse;
	animation-delay: 1.6s;
}

@keyframes gr-hero-move-left {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(100px);
	}
}

@keyframes gr-hero-move-zoom {
	from {
		transform: scale(0.7);
		opacity: 0.75;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Editor preview */
.gr-hero--preview {
	min-height: 200px;
	max-height: none;
}

.gr-hero--preview .gr-hero__grid {
	height: auto;
	max-height: none;
}

/* Responsive */
@media (max-width: 3000px) {
    .gr-hero__grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
        max-height: calc(100vh - var(--gr-header-height));
    }
}

@media (max-width: 1024px) {
	.gr-hero__grid {
		grid-template-columns: 1fr 1fr;
		height: auto;
		max-height: calc(100vh - var(--gr-header-height));
	}

	.gr-hero__content {
		padding-right: 0;
	}
}

@media (max-width: 767px) {
	.gr-hero {
		max-height: none;
	}

	.gr-hero__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		height: auto;
		max-height: none;
		padding-bottom: 2rem;
		padding-top: clamp(2.5rem, 10vw, 4rem);
	}

	.gr-hero__content {
		max-width: none;
		text-align: left;
	}

	.gr-hero__media {
		display: none;
	}

	.gr-hero__actions {
		margin-top: 24px;
	}

	.gr-hero__content .gr-hero__benefits {
		display: flex;
		gap: 0.5rem 1rem;
		margin: 1.125rem 0 0;
		padding: 0;
		font-size: 0.8125rem;
	}

}

@media (max-width: 640px) {
	.gr-hero__title {
		font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gr-hero__decor-item {
		animation: none !important;
	}
}
