/**
 * Alt Home 2 — enhancement-only CSS.
 * Layout, typography, and colors live in Elementor widget/container settings.
 */

body.alt-home-2-landing .ah2-hero-title em,
body.alt-home-2-landing .ah2-proof-stat em,
body.alt-home-2-landing .ah2-proof-title em,
body.alt-home-2-landing .ah2-reviews .elementor-heading-title em,
body.alt-home-2-landing .elementor-heading-title em {
	font-style: italic;
	color: var(--ah2-purple, #785788);
}

body.alt-home-2-landing .ah2-reviews .raven-testimonial-carousel {
	max-width: 900px;
	margin-inline: auto;
}

/* Static review card grid (below carousel) */
body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 24px;
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
}

body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-card {
	flex: 1 1 280px;
	max-width: 360px;
	min-height: 100%;
	box-sizing: border-box;
	/* Match .ah2-frame image containers */
	box-shadow: 0 18px 40px rgba(120, 87, 136, 0.16);
	transform: translateY(0);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		background-color 0.28s ease;
}

body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-card:hover {
	transform: translateY(-4px);
	background-color: #ffffff !important;
	box-shadow: 0 22px 48px rgba(120, 87, 136, 0.2);
}

@media (prefers-reduced-motion: reduce) {
	body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-card {
		transition: none;
	}

	body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-card:hover {
		transform: none;
	}
}

body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-person {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin-bottom: 18px;
}

body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-avatar {
	flex: 0 0 auto;
}

body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-avatar img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #ffffff;
}

body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-quote p {
	margin: 0;
}

@media (max-width: 767px) {
	body.alt-home-2-landing .ah2-reviews-grid .ah2-rg-card {
		max-width: none;
		flex-basis: 100%;
	}
}

body.alt-home-2-landing .ah2-proof .elementor-heading-title em,
body.alt-home-2-landing .ah2-proof-stat em,
body.alt-home-2-landing .ah2-proof-title em {
	color: var(--ah2-gold, #F1C677);
}

body.alt-home-2-landing .ah2-hero-title em {
	position: relative;
	display: inline;
}

body.alt-home-2-landing .ah2-hero-title em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.06em;
	height: 0.35em;
	background: linear-gradient(90deg, #F1C677, rgba(241, 198, 119, 0.25));
	z-index: -1;
	border-radius: 3px;
	bottom: 10px;
}

/* Gold button: kill shared .fake-blog-link underline treatment */
body.alt-home-2-landing .ah2-btn-gold.fake-blog-link,
body.alt-home-2-landing .elementor-button.fake-blog-link {
	border-bottom: none !important;
	text-decoration: none !important;
	cursor: pointer;
}

body.alt-home-2-landing .ah2-text-link .elementor-button {
	border-bottom: 2px solid #F1C677;
	border-radius: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.alt-home-2-landing .ah2-strip-links {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Scroll reveal */
body.alt-home-2-landing .ah2-reveal {
	/* 	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s ease, transform 0.7s ease; */
}

body.alt-home-2-landing .ah2-reveal.in {
	opacity: 1;
	transform: none;
}

.sms-bubble-blue .elementor-widget-container {
	position: relative;
	background: #157bd5;
	border-radius: .4em;
	padding: 5px;
	color: white;
	border-radius: 14px;
	border: 1px solid #ffffff5e;
}

.sms-bubble-blue .elementor-widget-container p {
	padding: 10px 10px 10px 10px;
	margin: 0;
}

.sms-bubble-blue .elementor-widget-container:after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 0;
	border: 1em solid transparent;
	border-right-color: #157bd5;
	border-left: 0;
	border-bottom: 0;
	margin-top: -0.5em;
	margin-left: -1em;
}

iframe#how-it-works-anim {
	position: relative;
	top: 20px;
	right: -20px;
}

@media (prefers-reduced-motion: reduce) {
	body.alt-home-2-landing .ah2-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Float cards stack on tablet/mobile instead of absolute overlay */
@media (max-width: 1024px) {

	body.alt-home-2-landing .ah2-hero-visual .ah2-float-card.elementor-element,
	body.alt-home-2-landing .ah2-sol-visual .ah2-float-card.elementor-element {
		/* 		position: relative !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		bottom: auto !important;
		transform: none !important;
		margin-top: 10px;
		width: calc(50% - 8px) !important;
		max-width: none;
		display: inline-flex;
		vertical-align: top; */
	}

	body.alt-home-2-landing .ah2-hero-visual,
	body.alt-home-2-landing .ah2-sol-visual {
		min-height: 0 !important;
	}
}