/* =========================================================
 * NationVoice — CTA Split Widget
 * Fully isolated under .nv-cta-wrapper
 * ========================================================= */

.nv-cta-wrapper {
	--nv-primary: #3c4d8c;
	--nv-orange: #f2a541;
	--nv-accent: #ff6716;
	--nv-heading: #202428;
	--nv-text: #5e5e5e;
	--nv-bg: #ffffff;
	--nv-bg-soft: #f4f4f4;
	--nv-white: #ffffff;

	--nv-shadow-md: 0 8px 24px rgba(0,0,0,0.10);
	--nv-shadow-lg: 0 24px 60px rgba(0,0,0,0.18);

	--nv-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nv-trans: 0.4s var(--nv-ease);

	--nv-font-body: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nv-font-heading: Georgia, 'Times New Roman', serif;

	font-family: var(--nv-font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.nv-cta-wrapper *,
.nv-cta-wrapper *::before,
.nv-cta-wrapper *::after {
	box-sizing: border-box;
}

.elementor-page .nv-cta-wrapper,
.e-con .nv-cta-wrapper,
.elementor-widget-container .nv-cta-wrapper {
	font-family: var(--nv-font-body) !important;
}

/* Frame */
.nv-cta-wrapper .nv-cta {
	width: 100%;
	background-color: var(--nv-orange);
}

.nv-cta-wrapper .nv-cta__container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 96px 32px;
}

.nv-cta-wrapper .nv-cta__inner {
	display: flex;
	flex-direction: column;
	gap: 56px;
	align-items: center;
}

/* Heading */
.nv-cta-wrapper .nv-cta__heading {
	margin: 0;
	font-family: var(--nv-font-heading) !important;
	font-weight: 600;
	font-size: 40px;
	line-height: 1.25;
	color: var(--nv-white) !important;
	max-width: 50ch;
	text-align: center;
}

/* Grid */
.nv-cta-wrapper .nv-cta__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	width: 100%;
}

/* Card base */
.nv-cta-wrapper .nv-cta__card {
	position: relative;
	display: flex;
	min-height: 320px;
	overflow: hidden;
	transition: transform var(--nv-trans);
	isolation: isolate;
}

/* LIGHT card: image left, content right */
.nv-cta-wrapper .nv-cta__card--light {
	background-color: var(--nv-bg-soft);
	color: var(--nv-text);
}

.nv-cta-wrapper .nv-cta__card--light .nv-cta__card-side {
	flex: 0 0 50%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 100%;
	transition: transform 0.7s var(--nv-ease);
}

.nv-cta-wrapper .nv-cta__card--light:hover .nv-cta__card-side {
	transform: scale(1.04);
}

.nv-cta-wrapper .nv-cta__card--light .nv-cta__card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 32px;
	padding: 48px 56px;
}

/* DARK card: full image + overlay, content centered */
.nv-cta-wrapper .nv-cta__card--dark {
	color: var(--nv-white);
}

.nv-cta-wrapper .nv-cta__card--dark .nv-cta__card-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.7s var(--nv-ease);
	z-index: 1;
}

.nv-cta-wrapper .nv-cta__card--dark:hover .nv-cta__card-image {
	transform: scale(1.04);
}

.nv-cta-wrapper .nv-cta__card--dark .nv-cta__card-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	z-index: 2;
	transition: background var(--nv-trans);
}

.nv-cta-wrapper .nv-cta__card--dark:hover .nv-cta__card-overlay {
	background-color: rgba(0, 0, 0, 0.55);
}

.nv-cta-wrapper .nv-cta__card--dark .nv-cta__card-content {
	position: relative;
	z-index: 3;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 32px;
	padding: 48px 40px;
	text-align: center;
}

/* Card text */
.nv-cta-wrapper .nv-cta__card-text {
	margin: 0;
	font-family: var(--nv-font-body) !important;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	max-width: 28ch;
}

.nv-cta-wrapper .nv-cta__card--light .nv-cta__card-text {
	color: var(--nv-text) !important;
}
.nv-cta-wrapper .nv-cta__card--dark .nv-cta__card-text {
	color: var(--nv-white) !important;
}

/* Button */
.nv-cta-wrapper .nv-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 16px 40px;
	font-family: var(--nv-font-body) !important;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	transition: transform var(--nv-trans), background var(--nv-trans), box-shadow var(--nv-trans);
}

.nv-cta-wrapper .nv-cta__card--light .nv-cta__btn {
	background-color: var(--nv-orange) !important;
	color: var(--nv-white) !important;
	box-shadow: 0 6px 18px rgba(242, 165, 65, 0.35);
}

.nv-cta-wrapper .nv-cta__card--light .nv-cta__btn:hover {
	background-color: #d68b2c !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(242, 165, 65, 0.45);
}

.nv-cta-wrapper .nv-cta__card--dark .nv-cta__btn {
	background-color: var(--nv-white) !important;
	color: var(--nv-heading) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.nv-cta-wrapper .nv-cta__card--dark .nv-cta__btn:hover {
	background-color: #f7f7f9 !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.nv-cta-wrapper .nv-cta__btn-dash {
	display: inline-block;
	width: 24px;
	height: 1px;
	background-color: currentColor;
	font-size: 0;
	flex-shrink: 0;
	transition: width var(--nv-trans);
}

.nv-cta-wrapper .nv-cta__btn:hover .nv-cta__btn-dash {
	width: 36px;
}

/* Stagger entrance */
.nv-cta-wrapper .nv-cta__anim {
	opacity: 0;
	transform: translateY(20px);
	animation: nv-cta-fade-up 0.7s var(--nv-ease) forwards;
	animation-delay: calc(var(--nv-anim-order, 0) * 120ms);
}

@keyframes nv-cta-fade-up {
	to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
	.nv-cta-wrapper .nv-cta__container { padding: 72px 24px; }
	.nv-cta-wrapper .nv-cta__heading { font-size: 30px; }
	.nv-cta-wrapper .nv-cta__inner { gap: 40px; }
	.nv-cta-wrapper .nv-cta__grid { grid-template-columns: 1fr; }
	.nv-cta-wrapper .nv-cta__card { min-height: 280px; }
	.nv-cta-wrapper .nv-cta__card--light .nv-cta__card-content { padding: 36px 32px; }
	.nv-cta-wrapper .nv-cta__card--dark .nv-cta__card-content { padding: 56px 32px; }
}

@media (max-width: 768px) {
	.nv-cta-wrapper .nv-cta__container { padding: 56px 16px; }
	.nv-cta-wrapper .nv-cta__heading { font-size: 24px; }
	.nv-cta-wrapper .nv-cta__inner { gap: 32px; }

	/* Card itself shrinks to fit content on mobile */
	.nv-cta-wrapper .nv-cta__card {
		min-height: auto !important;
	}

	/* Light card: image on top, content below — both with fixed/auto heights */
	.nv-cta-wrapper .nv-cta__card--light {
		flex-direction: column;
	}
	.nv-cta-wrapper .nv-cta__card--light .nv-cta__card-side {
		flex: 0 0 auto;
		width: 100%;
		height: 220px;
		min-height: 220px;
	}
	.nv-cta-wrapper .nv-cta__card--light .nv-cta__card-content {
		flex: 1 1 auto;
		width: 100%;
		min-height: auto;
		align-items: center;
		text-align: center;
		padding: 32px 20px;
	}

	/* Dark card: keep min-height for image presence; content stays centered */
	.nv-cta-wrapper .nv-cta__card--dark {
		min-height: 360px !important;
	}
	.nv-cta-wrapper .nv-cta__card--dark .nv-cta__card-content {
		padding: 48px 20px;
	}

	.nv-cta-wrapper .nv-cta__card-text { font-size: 17px; }
	.nv-cta-wrapper .nv-cta__btn { padding: 14px 28px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.nv-cta-wrapper *,
	.nv-cta-wrapper *::before,
	.nv-cta-wrapper *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.nv-cta-wrapper .nv-cta__anim { opacity: 1 !important; transform: none !important; }
}
