/**
 * Hero widget. Mobile first; the design's single breakpoint is 980px.
 */

.msd-hero {
	--msd-hero-accent: var(--msd-pink, #ff9b9b);
	--msd-hero-pad: clamp(56px, 8vw, 120px);
	--msd-hero-gap: clamp(32px, 5vw, 72px);

	position: relative;
	overflow: hidden;
	background-color: var(--msd-ink, #1e2a30);
	color: var(--msd-white, #fff);
	isolation: isolate;
}

/* Photo, dark fade and red wedge sit behind the content. */

.msd-hero__media {
	position: absolute;
	z-index: -1;
	inset: 0;
}

/* Two classes: Elementor's ".elementor img" rule would otherwise reset the height. */
.msd-hero .msd-hero__photo {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 55% center;
}

.msd-hero__media::before {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(22, 31, 36, 0.88) 0%, rgba(22, 31, 36, 0.72) 45%, rgba(22, 31, 36, 0.35) 100%);
	content: "";
}

.msd-hero__inner {
	display: grid;
	position: relative;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: var(--msd-hero-gap);
	align-items: center;
	padding-top: var(--msd-hero-pad);
	padding-bottom: var(--msd-hero-pad);
}

.msd-hero__content {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}

/* Badge */

.msd-hero__badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	margin: 0;
	padding: 8px 16px 8px 12px;
	border: 1px solid #e3ddd2;
	border-radius: 999px;
	background: var(--msd-white, #fff);
	color: var(--msd-ink, #1e2a30);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.msd-hero__dot {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--msd-green, #15803d);
	animation: msd-hero-pulse 2s infinite;
}

@keyframes msd-hero-pulse {

	0% {
		box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(21, 128, 61, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(21, 128, 61, 0);
	}
}

/* Headline and text */

.msd-hero .msd-hero__title {
	margin: 0;
	color: var(--msd-white, #fff);
	font-family: var(--msd-font-heading, "Bricolage Grotesque", system-ui, sans-serif);
	font-size: clamp(2.7rem, 6.4vw, 5.6rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.msd-hero__title-accent {
	display: block;
	color: var(--msd-hero-accent);
}

.msd-hero .msd-hero__text {
	max-width: 560px;
	color: #d9dfe2;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.55;
	text-wrap: pretty;
}

.msd-hero__text p {
	margin: 0;
}

.msd-hero__text p + p {
	margin-top: 0.8em;
}

.msd-hero__text strong {
	color: var(--msd-hero-accent);
}

/* Buttons */

.msd-hero__buttons {
	display: flex;
	gap: clamp(8px, 2vw, 12px);
	max-width: 100%;
}

.msd-hero .msd-hero__button {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 62px;
	border-radius: 999px;
	font-size: clamp(15px, 3.8vw, 18px);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.msd-hero .msd-hero__button:hover {
	transform: translateY(-2px);
}

.msd-hero .msd-hero__button--call {
	gap: clamp(8px, 2vw, 12px);
	padding: 0 clamp(14px, 3.5vw, 30px) 0 clamp(12px, 3vw, 24px);
	background: var(--msd-espresso, #281616);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), 0 10px 30px -10px rgba(40, 22, 22, 0.45);
	color: var(--msd-white, #fff);
}

.msd-hero .msd-hero__button--call:hover {
	background: var(--msd-espresso-hover, #3e2323);
	color: var(--msd-white, #fff);
}

.msd-hero__button--call .msd-icon {
	font-size: 24px;
}

.msd-hero__button-lines {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.msd-hero__button-number {
	font-size: 13px;
	font-weight: 600;
	opacity: 0.75;
}

.msd-hero .msd-hero__button--whatsapp {
	gap: clamp(8px, 2vw, 10px);
	padding: 0 clamp(14px, 3.5vw, 28px) 0 clamp(12px, 3vw, 22px);
	border: 1.5px solid #d8d1c4;
	background: var(--msd-white, #fff);
	color: var(--msd-ink, #1e2a30);
}

.msd-hero .msd-hero__button--whatsapp:hover {
	border-color: var(--msd-green, #15803d);
	color: var(--msd-ink, #1e2a30);
}

.msd-hero__button--whatsapp .msd-icon {
	color: var(--msd-green, #15803d);
	font-size: 21px;
}

/* Check list */

.msd-hero__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.msd-hero__checks li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #eef1f2;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.msd-hero__checks .msd-icon {
	color: var(--msd-hero-accent);
	font-size: 20px;
}

/* Form card */

.msd-hero .msd-hero__card {
	box-sizing: border-box;
	justify-self: end;
	width: 100%;
	max-width: 560px;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--msd-line, #e6e0d5);
	border-radius: 28px;
	background: var(--msd-white, #fff);
	box-shadow: 0 40px 80px -30px rgba(10, 16, 20, 0.6);
	color: var(--msd-ink, #1e2a30);
}

/* A saved template brings its own container; drop that container's padding inside the card. */
.msd-hero__card > .elementor > .e-con {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
}

.msd-hero .msd-hero__card--empty {
	border-style: dashed;
	box-shadow: none;
	color: var(--msd-text-muted, #4c565d);
	font-size: 15px;
	line-height: 1.5;
}

/* Desktop: red wedge on the right, behind the card. */

@media (min-width: 980px) {

	.msd-hero--wedge .msd-hero__media::after {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 40%;
		background: linear-gradient(160deg, #b52a2a 0%, #ff9b9b 55%, #7f1919 100%);
		content: "";
		clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
	}
}

@media (prefers-reduced-motion: reduce) {

	.msd-hero__dot {
		animation: none;
	}

	.msd-hero .msd-hero__button {
		transition: none;
	}

	.msd-hero .msd-hero__button:hover {
		transform: none;
	}
}
