/* Hero Section widget: structural layout. Colors/typography come from Elementor's own controls. */

.hf-hero {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 640px;
	padding: 120px 32px;
	box-sizing: border-box;
	background-color: var(--color-bg, #FFFDFC);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: right center;
}

.hf-hero--full-screen {
	min-height: 100vh;
	padding-top: 160px;
}

.hf-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	max-width: 560px;
	margin-inline-start: max(32px, calc(50% - 625px + 32px));
}

.hf-hero__title {
	margin: 0;
	line-height: 1.2;
}

.hf-hero__description {
	margin: 0;
	line-height: 1.6;
}

.hf-hero__button {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	padding: 16px 28px;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

@media (max-width: 860px) {
	.hf-hero {
		position: relative;
		align-items: flex-end;
		padding: 32px 24px 40px;
		min-height: 520px;
		background-position: center 20%;
	}

	.hf-hero::before {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(
			to top,
			rgba(255, 253, 252, 0.97) 0%,
			rgba(255, 253, 252, 0.9) 40%,
			rgba(255, 253, 252, 0.35) 75%,
			rgba(255, 253, 252, 0) 100%
		);
		pointer-events: none;
	}

	.hf-hero--full-screen {
		min-height: 80vh;
	}

	.hf-hero__content {
		position: relative;
		z-index: 1;
		align-items: center;
		max-width: 100%;
		margin-inline-start: 0;
		gap: 16px;
		text-align: center;
	}

	.hf-hero__title {
		font-size: 2rem !important;
	}

	.hf-hero__description {
		font-size: 0.95rem !important;
	}
}
