/**
 * Homepage Success Stories — premium Coming Soon presentation.
 *
 * Scoped to the homepage Elementor shortcode. Markup stays with
 * Core [em_success_stories]. The portrait crop lives here: the approved
 * photo is landscape, so the frame uses a wide ratio and a centered
 * object position so both faces stay inside the organic mask.
 *
 * @package ExpertMatrimony
 */

body.home .elementor-shortcode > .em-stories {
	--emt-stories-maroon: #7a1f3d;
	--emt-stories-maroon-deep: #5e1830;
	--emt-stories-gold: #d49e17;
	--emt-stories-ink: #1e293b;
	--emt-stories-body: #475569;
	--emt-stories-ivory: #fdf8f2;
	--emt-stories-surface: #fffaf3;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0;
	background:
		radial-gradient(ellipse 42% 48% at 8% 12%, rgba(212, 158, 23, 0.14), transparent 68%),
		radial-gradient(ellipse 36% 42% at 96% 70%, rgba(122, 31, 61, 0.06), transparent 70%),
		linear-gradient(180deg, var(--emt-stories-ivory) 0%, var(--emt-stories-surface) 100%);
}

body.home .elementor-shortcode > .em-stories::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3.25rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 52' preserveAspectRatio='none'%3E%3Cpath fill='%23F7EFE4' d='M0 26c160 22 280-18 460-6 180 12 280 28 460 10 170-16 320-8 520 8v14H0z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

body.home .elementor-shortcode > .em-stories .em-stories__inner {
	position: relative;
	z-index: 2;
	max-width: 1120px;
	padding: clamp(2.75rem, 6vw, 4.75rem) var(--emt-gutter, 32px) clamp(3.25rem, 6vw, 5rem);
	gap: clamp(2rem, 5vw, 4.5rem);
}

body.home .elementor-shortcode > .em-stories .em-stories__label {
	margin-bottom: 0.7rem;
	color: var(--emt-stories-maroon);
	font-family: var(--emt-font-ui, "Poppins", system-ui, sans-serif);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
}

body.home .elementor-shortcode > .em-stories .em-stories__label-mark {
	width: 1.75rem;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--emt-stories-gold), rgba(212, 158, 23, 0.15));
}

body.home .elementor-shortcode > .em-stories .em-stories__heading {
	max-width: 12ch;
	margin-bottom: 1.05rem;
	color: var(--emt-stories-ink);
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(2.55rem, 1.7rem + 2.5vw, 4rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.05;
	text-wrap: balance;
}

body.home .elementor-shortcode > .em-stories .em-stories__accent {
	color: var(--emt-stories-maroon);
	font-style: italic;
}

body.home .elementor-shortcode > .em-stories .em-stories__desc {
	max-width: 34rem;
	margin-bottom: 1.15rem;
	color: var(--emt-stories-body);
	font-family: var(--emt-font-body, "Inter", system-ui, sans-serif);
	font-size: clamp(0.98rem, 0.92rem + 0.2vw, 1.08rem);
	line-height: 1.7;
}

body.home .elementor-shortcode > .em-stories .em-stories__status {
	display: inline-flex;
	align-items: center;
	margin: 0 0 1.35rem;
	padding: 0.42rem 0.95rem;
	border: 1px solid rgba(212, 158, 23, 0.55);
	border-radius: 999px;
	background: rgba(212, 158, 23, 0.16);
	color: var(--emt-stories-maroon-deep);
	font-family: var(--emt-font-ui, "Poppins", system-ui, sans-serif);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
}

body.home .elementor-shortcode > .em-stories .em-stories__cta-wrap {
	margin-bottom: 0;
}

body.home .elementor-shortcode > .em-stories .em-stories__cta {
	gap: 0.55rem;
	min-height: 52px;
	padding: 0.85rem 1.45rem 0.85rem 1.6rem;
	border-radius: 999px;
	background: var(--emt-stories-maroon);
	color: #fff;
	font-family: var(--emt-font-ui, "Poppins", system-ui, sans-serif);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	box-shadow: 0 12px 28px rgba(122, 31, 61, 0.2);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.home .elementor-shortcode > .em-stories .em-stories__cta::after {
	content: "";
	width: 1.05rem;
	height: 1.05rem;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 12h12.2l-4.1-4.1 1.4-1.4L21 12l-6.5 6.5-1.4-1.4 4.1-4.1H5z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 12h12.2l-4.1-4.1 1.4-1.4L21 12l-6.5 6.5-1.4-1.4 4.1-4.1H5z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

body.home .elementor-shortcode > .em-stories .em-stories__cta:hover,
body.home .elementor-shortcode > .em-stories .em-stories__cta:focus-visible {
	background: var(--emt-stories-maroon-deep);
	color: #fff;
	outline: none;
	transform: translateY(-1px);
	box-shadow: 0 16px 32px rgba(94, 24, 48, 0.24);
}

body.home .elementor-shortcode > .em-stories .em-stories__cta:hover::after,
body.home .elementor-shortcode > .em-stories .em-stories__cta:focus-visible::after {
	transform: translateX(3px);
}

body.home .elementor-shortcode > .em-stories .em-stories__cta:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(212, 158, 23, 0.85);
}

body.home .elementor-shortcode > .em-stories .em-stories__support {
	display: none;
}

body.home .elementor-shortcode > .em-stories .em-stories__media {
	position: relative;
	justify-self: center;
	width: min(100%, 460px);
}

body.home .elementor-shortcode > .em-stories .em-stories__frame {
	border-radius: 46% 54% 42% 58% / 38% 46% 54% 62%;
	overflow: hidden;
	background: #f3ebe3;
	box-shadow:
		0 0 0 2px rgba(212, 158, 23, 0.72),
		0 22px 46px rgba(94, 24, 48, 0.12);
}

body.home .elementor-shortcode > .em-stories .em-stories__frame::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 9px;
	border-radius: inherit;
	border: 1px solid rgba(212, 158, 23, 0.55);
	pointer-events: none;
}

body.home .elementor-shortcode > .em-stories .em-stories__img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	object-position: center 42%;
}

@media (max-width: 1279px) {
	body.home .elementor-shortcode > .em-stories .em-stories__heading {
		font-size: clamp(2.35rem, 4.2vw, 3.25rem);
	}
}

@media (max-width: 921px) {
	body.home .elementor-shortcode > .em-stories .em-stories__inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding-top: 2.5rem;
		padding-bottom: 3.25rem;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__heading {
		max-width: 16ch;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__media {
		width: min(100%, 420px);
	}
}

@media (max-width: 767px) {
	body.home .elementor-shortcode > .em-stories::after {
		height: 1.75rem;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__inner {
		gap: 1.15rem;
		padding-top: 1.85rem;
		padding-bottom: 2.35rem;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__copy {
		text-align: center;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__label {
		justify-content: center;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__heading,
	body.home .elementor-shortcode > .em-stories .em-stories__desc {
		max-width: 22rem;
		margin-left: auto;
		margin-right: auto;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__heading {
		font-size: clamp(2.15rem, 8.4vw, 2.7rem);
	}

	body.home .elementor-shortcode > .em-stories .em-stories__desc {
		margin-bottom: 0.9rem;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__status {
		margin-bottom: 1rem;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__cta {
		width: 100%;
		max-width: 22rem;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__media {
		width: min(100%, 340px);
	}

	body.home .elementor-shortcode > .em-stories .em-stories__frame {
		border-radius: 42% 58% 46% 54% / 40% 44% 56% 60%;
	}

	body.home .elementor-shortcode > .em-stories .em-stories__img {
		aspect-ratio: 4 / 3;
		object-position: center 40%;
	}
}

@media (max-width: 390px) {
	body.home .elementor-shortcode > .em-stories .em-stories__inner {
		padding-right: 1rem;
		padding-left: 1rem;
	}
}
