/* LuxMed Hero Widget v1.1 — image as section background */

.lmh-hero {
	--lmh-primary: #1a3e8f;
	--lmh-accent: #2eaa4a;
	--lmh-text: #3d4a5c;
	position: relative;
	overflow: hidden;
	padding: 80px 20px;
	min-height: 560px;
	display: flex;
	align-items: center;
	background-color: #f4f8fd;
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: contain;
}

/* White gradient overlay on the text side so copy stays readable over the photo */
.lmh-has-overlay-yes .lmh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0.96) 0%,
		rgba(255, 255, 255, 0.9) 38%,
		rgba(255, 255, 255, 0.35) 62%,
		rgba(255, 255, 255, 0) 80%
	);
	pointer-events: none;
}

.lmh-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	
	margin: 0 auto;
}

/* Content takes the left half; the photo shows through on the right */
.lmh-content {
	max-width: 560px;
}

/* ---------- Headline ---------- */

.lmh-title {
	margin: 0 0 18px;
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.lmh-line { display: block; }
.lmh-line--primary { color: var(--lmh-primary); }
.lmh-line--accent  { color: var(--lmh-accent); }

.lmh-divider {
	display: block;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background: var(--lmh-accent);
	margin: 0 0 22px;
}

.lmh-desc {
	margin: 0 0 30px;
	max-width: 46ch;
	color: var(--lmh-text);
	font-size: 1rem;
	line-height: 1.65;
}

/* ---------- Buttons ---------- */

.lmh-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 38px;
}

.lmh-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.lmh-btn:focus-visible {
	outline: 3px solid var(--lmh-accent);
	outline-offset: 2px;
}

.lmh-btn--solid {
	background: var(--lmh-primary);
	color: #fff;
	box-shadow: 0 6px 16px rgba(26, 62, 143, 0.25);
}

.lmh-btn--solid:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(26, 62, 143, 0.32);
}

.lmh-btn--outline {
	background: #fff;
	color: var(--lmh-primary);
	border: 1.5px solid var(--lmh-primary);
}

.lmh-btn--outline:hover {
	background: var(--lmh-primary);
	color: #fff;
}

.lmh-arrow { flex-shrink: 0; }

/* ---------- Features: always one row on desktop ---------- */

.lmh-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

.lmh-feature {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 20px;
	border-right: 1px solid rgba(26, 62, 143, 0.15);
	white-space: nowrap;
	flex-shrink: 0;
}

.lmh-feature:first-child { padding-left: 0; }
.lmh-feature:last-child  { border-right: 0; padding-right: 0; }

.lmh-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--lmh-primary);
	font-size: 22px;
}

.lmh-feature__icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.lmh-feature__icon img {
	display: block;
	width: 40px;
	height: auto;
	max-height: 60px;
	object-fit: contain;
}

.lmh-feature__text { display: flex; flex-direction: column; line-height: 1.3; }
.lmh-feature__text strong { color: var(--lmh-primary); font-size: 0.85rem; font-weight: 700; }
.lmh-feature__text small  { color: var(--lmh-text); font-size: 0.75rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.lmh-hero { padding: 64px 28px; }
	.lmh-feature { padding: 0 14px; }
}

@media (max-width: 767px) {
	.lmh-hero {
		padding: 44px 18px;
		min-height: 0;
	}

	/* On phones the photo would sit behind the text, so soften it fully */
	.lmh-has-overlay-yes .lmh-hero::before {
		background: rgba(255, 255, 255, 0.9);
	}

	.lmh-content { max-width: 100%; }

	.lmh-features {
		flex-wrap: wrap;
		gap: 14px 0;
	}

	.lmh-feature {
		white-space: normal;
		flex-shrink: 1;
	}
}

@media (max-width: 560px) {
	.lmh-features { flex-direction: column; align-items: flex-start; gap: 14px; }
	.lmh-feature  { border-right: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.lmh-btn { transition: none; }
	.lmh-btn--solid:hover { transform: none; }
}
