/* =========================================================
 * NationVoice — Hero Widget (Modern Edition)
 * Fully isolated under .nv-hero-wrapper
 * ========================================================= */

.nv-hero-wrapper {
	--nv-primary: #3c4d8c;
	--nv-primary-dark: #2f3d70;
	--nv-secondary: #6b0024;
	--nv-accent: #ff6716;
	--nv-orange: #f2a541;
	--nv-heading: #202428;
	--nv-text: #5e5e5e;
	--nv-bg: #fdfcfa;
	--nv-bg-soft: #f7f7f9;
	--nv-card: #ffffff;

	--nv-radius-sm: 8px;
	--nv-radius-md: 16px;
	--nv-radius-lg: 24px;
	--nv-radius-pill: 999px;

	--nv-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
	--nv-shadow-md: 0 8px 24px rgba(0,0,0,0.10);
	--nv-shadow-lg: 0 24px 60px rgba(0,0,0,0.15);
	--nv-shadow-card: 0 16px 40px rgba(60,77,140,0.16);

	--nv-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--nv-trans: 0.35s 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);
	color: var(--nv-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

/* =========================================================
 * SECTION FRAME
 * ========================================================= */
.nv-hero-wrapper .nv-hero {
	position: relative;
	width: 100%;
	background-color: var(--nv-bg);
	overflow: hidden;
	isolation: isolate;
}

.nv-hero-wrapper .nv-hero__container {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 96px 32px;
	z-index: 2;
}

/* =========================================================
 * BACKGROUND DECOR (blobs + dot grid)
 * ========================================================= */
.nv-hero-wrapper .nv-hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}

.nv-hero-wrapper .nv-hero__blob {
	position: absolute;
	width: 720px;
	height: 720px;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.18;
	mix-blend-mode: multiply;
}

.nv-hero-wrapper .nv-hero__blob--1 {
	top: -260px;
	left: -200px;
	background: radial-gradient(circle, var(--nv-accent) 0%, transparent 70%);
	animation: nv-hero-drift1 22s var(--nv-ease) infinite alternate;
}

.nv-hero-wrapper .nv-hero__blob--2 {
	bottom: -300px;
	right: -240px;
	background: radial-gradient(circle, var(--nv-primary) 0%, transparent 70%);
	animation: nv-hero-drift2 26s var(--nv-ease) infinite alternate;
}

@keyframes nv-hero-drift1 {
	0%   { transform: translate(0, 0) scale(1); }
	100% { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes nv-hero-drift2 {
	0%   { transform: translate(0, 0) scale(1); }
	100% { transform: translate(-60px, -40px) scale(1.05); }
}

.nv-hero-wrapper .nv-hero__dots {
	position: absolute;
	width: 240px;
	height: 240px;
	background-image: radial-gradient(rgba(60,77,140,0.18) 1.5px, transparent 1.5px);
	background-size: 18px 18px;
	top: 80px;
	right: 50%;
	transform: translateX(50%);
	opacity: 0.5;
	mask-image: radial-gradient(circle, #000 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(circle, #000 0%, transparent 70%);
}

/* =========================================================
 * GRID
 * ========================================================= */
.nv-hero-wrapper .nv-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.nv-hero-wrapper .nv-hero--img-left .nv-hero__content { order: 2; }
.nv-hero-wrapper .nv-hero--img-left .nv-hero__media   { order: 1; }

/* =========================================================
 * TEXT COLUMN
 * ========================================================= */
.nv-hero-wrapper .nv-hero__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Eyebrow tag */
.nv-hero-wrapper .nv-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	padding: 8px 16px 8px 12px;
	background-color: rgba(60, 77, 140, 0.08);
	color: var(--nv-primary) !important;
	border-radius: var(--nv-radius-pill);
	font-family: var(--nv-font-body) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.nv-hero-wrapper .nv-hero__eyebrow-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--nv-accent);
	box-shadow: 0 0 0 0 rgba(255, 103, 22, 0.6);
	animation: nv-hero-pulse 2s var(--nv-ease) infinite;
}

@keyframes nv-hero-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 103, 22, 0.6); }
	70%  { box-shadow: 0 0 0 8px rgba(255, 103, 22, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 103, 22, 0); }
}

/* Heading */
.nv-hero-wrapper .nv-hero__heading {
	margin: 0;
	font-family: var(--nv-font-body) !important;
	font-weight: 800;
	font-size: clamp(2.4rem, 4.6vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--nv-heading) !important;
	max-width: 16ch;
}

.nv-hero-wrapper .nv-hero__highlight {
	position: relative;
	display: inline;
	color: var(--nv-orange) !important;
	padding: 0 0.05em;
}

.nv-hero-wrapper .nv-hero__highlight-text {
	position: relative;
	z-index: 2;
}

/* Scribble — wraps ONLY the highlighted word(s) */
.nv-hero-wrapper .nv-hero__scribble {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 112%;
	height: 130%;
	transform: translate(-50%, -50%);
	color: var(--nv-primary);
	pointer-events: none;
	z-index: 1;
	overflow: visible;
}

.nv-hero-wrapper .nv-hero--anim-decor .nv-hero__scribble-path {
	stroke-dasharray: var(--nv-stroke-len, 3000);
	stroke-dashoffset: var(--nv-stroke-len, 3000);
	animation: nv-hero-draw 1.6s var(--nv-ease) 0.6s forwards;
}
.nv-hero-wrapper .nv-hero--anim-decor .nv-hero__scribble-path--2 {
	animation-delay: 1.0s;
}

@keyframes nv-hero-draw {
	to { stroke-dashoffset: 0; }
}

/* Subheading */
.nv-hero-wrapper .nv-hero__subheading {
	margin: 0;
	font-family: var(--nv-font-body) !important;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--nv-text) !important;
	max-width: 50ch;
}

/* CTAs */
.nv-hero-wrapper .nv-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	margin-top: 4px;
}

.nv-hero-wrapper .nv-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	font-family: var(--nv-font-body) !important;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.2px;
	text-decoration: none !important;
	border-radius: var(--nv-radius-pill);
	border: 0;
	cursor: pointer;
	transition: transform var(--nv-trans), box-shadow var(--nv-trans), background var(--nv-trans), color var(--nv-trans);
	position: relative;
	overflow: hidden;
}

.nv-hero-wrapper .nv-hero__btn svg {
	transition: transform var(--nv-trans);
	flex-shrink: 0;
}

.nv-hero-wrapper .nv-hero__btn:hover svg {
	transform: translateX(4px);
}

.nv-hero-wrapper .nv-hero__btn--primary {
	background-color: var(--nv-primary) !important;
	color: #ffffff !important;
	box-shadow: 0 8px 24px rgba(60, 77, 140, 0.32);
}

.nv-hero-wrapper .nv-hero__btn--primary::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
	opacity: 0;
	transition: opacity var(--nv-trans);
}

.nv-hero-wrapper .nv-hero__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(60, 77, 140, 0.42);
	background-color: var(--nv-primary-dark) !important;
}

.nv-hero-wrapper .nv-hero__btn--primary:hover::before {
	opacity: 1;
}

.nv-hero-wrapper .nv-hero__btn--ghost {
	padding: 14px 8px;
	background: transparent !important;
	color: var(--nv-heading) !important;
	border-radius: 0;
	box-shadow: none;
}

.nv-hero-wrapper .nv-hero__btn--ghost::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	height: 2px;
	background-color: var(--nv-heading);
	transform-origin: left;
	transform: scaleX(0);
	transition: transform var(--nv-trans);
}

.nv-hero-wrapper .nv-hero__btn--ghost:hover::after {
	transform: scaleX(1);
}

/* =========================================================
 * STATS ROW
 * ========================================================= */
.nv-hero-wrapper .nv-hero__stats {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 28px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nv-hero-wrapper .nv-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nv-hero-wrapper .nv-hero__stat-num {
	font-family: var(--nv-font-body) !important;
	font-weight: 800;
	font-size: 28px;
	line-height: 1;
	color: var(--nv-heading) !important;
	letter-spacing: -0.01em;
}

.nv-hero-wrapper .nv-hero__stat-label {
	font-family: var(--nv-font-body) !important;
	font-size: 13px;
	color: var(--nv-text) !important;
	letter-spacing: 0.2px;
}

.nv-hero-wrapper .nv-hero__stat-divider {
	width: 1px;
	height: 36px;
	background-color: rgba(0, 0, 0, 0.10);
}

/* =========================================================
 * IMAGE + FLOATING BADGE
 * ========================================================= */
.nv-hero-wrapper .nv-hero__media {
	position: relative;
	min-width: 0;
}

.nv-hero-wrapper .nv-hero__image-wrap {
	position: relative;
	width: 100%;
	min-height: 540px;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: var(--nv-shadow-card);
	background-color: var(--nv-bg-soft);
	transition: transform 0.6s var(--nv-ease);
	transform-origin: center;
}

.nv-hero-wrapper .nv-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.8s var(--nv-ease);
}

.nv-hero-wrapper .nv-hero__media:hover .nv-hero__image {
	transform: scale(1.04);
}

/* Floating badge — glassy white card */
.nv-hero-wrapper .nv-hero__badge {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	min-width: 200px;
	background-color: var(--nv-card) !important;
	color: var(--nv-heading) !important;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
	transition: transform var(--nv-trans), box-shadow var(--nv-trans);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	animation: nv-hero-bob 4s var(--nv-ease) infinite alternate;
}

.nv-hero-wrapper .nv-hero__badge:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.nv-hero-wrapper .nv-hero__badge--tl { top: 24px; left: 24px; }
.nv-hero-wrapper .nv-hero__badge--tr { top: 24px; right: 24px; }
.nv-hero-wrapper .nv-hero__badge--bl { bottom: 24px; left: -24px; }
.nv-hero-wrapper .nv-hero__badge--br { bottom: 24px; right: -24px; }

.nv-hero-wrapper .nv-hero__badge-icon {
	font-size: 28px;
	line-height: 1;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(60, 77, 140, 0.10);
	border-radius: 12px;
	flex-shrink: 0;
}

.nv-hero-wrapper .nv-hero__badge-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nv-hero-wrapper .nv-hero__badge-num {
	font-family: var(--nv-font-body) !important;
	font-weight: 800;
	font-size: 20px;
	line-height: 1;
	color: var(--nv-primary) !important;
	letter-spacing: -0.01em;
}

.nv-hero-wrapper .nv-hero__badge-label {
	font-family: var(--nv-font-body) !important;
	font-size: 12px;
	color: var(--nv-text) !important;
	letter-spacing: 0.2px;
}

@keyframes nv-hero-bob {
	0%   { transform: translateY(0); }
	100% { transform: translateY(-8px); }
}

/* =========================================================
 * STAGGER ENTRANCE ANIMATIONS
 *  Pure CSS — runs automatically on render so the editor
 *  preview shows content immediately (no JS dependency).
 * ========================================================= */
.nv-hero-wrapper .nv-hero__anim {
	opacity: 0;
	transform: translateY(20px);
	animation: nv-hero-fade-up 0.7s var(--nv-ease) forwards;
	animation-delay: calc(var(--nv-anim-order, 0) * 120ms);
}

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

/* =========================================================
 * RESPONSIVE — TABLET (≤1024px) AND MOBILE (≤768px)
 *   Stack vertically: text on top, image below
 *   Center-align all text content
 * ========================================================= */
@media (max-width: 1024px) {
	.nv-hero-wrapper .nv-hero__container {
		padding: 64px 24px;
	}

	.nv-hero-wrapper .nv-hero__grid,
	.nv-hero-wrapper .nv-hero--img-left .nv-hero__grid {
		grid-template-columns: 1fr !important;
		gap: 48px;
	}

	.nv-hero-wrapper .nv-hero__content,
	.nv-hero-wrapper .nv-hero--img-left .nv-hero__content {
		order: 1;
		align-items: center;
		text-align: center;
	}

	.nv-hero-wrapper .nv-hero__media,
	.nv-hero-wrapper .nv-hero--img-left .nv-hero__media {
		order: 2;
	}

	.nv-hero-wrapper .nv-hero__heading {
		margin-left: auto;
		margin-right: auto;
		max-width: 18ch;
	}

	.nv-hero-wrapper .nv-hero__subheading {
		margin-left: auto;
		margin-right: auto;
	}

	.nv-hero-wrapper .nv-hero__cta {
		justify-content: center;
	}

	.nv-hero-wrapper .nv-hero__stats {
		justify-content: center;
	}

	.nv-hero-wrapper .nv-hero__image-wrap {
		min-height: 420px;
	}

	.nv-hero-wrapper .nv-hero__badge--bl { left: 12px; }
	.nv-hero-wrapper .nv-hero__badge--br { right: 12px; }
}

@media (max-width: 768px) {
	.nv-hero-wrapper .nv-hero__container {
		padding: 56px 16px;
	}

	.nv-hero-wrapper .nv-hero__content {
		gap: 22px;
	}

	.nv-hero-wrapper .nv-hero__heading {
		max-width: 16ch;
	}

	.nv-hero-wrapper .nv-hero__subheading {
		font-size: 15px;
	}

	.nv-hero-wrapper .nv-hero__cta {
		gap: 12px;
		width: 100%;
	}

	.nv-hero-wrapper .nv-hero__btn {
		padding: 12px 22px;
		font-size: 14px;
	}

	.nv-hero-wrapper .nv-hero__btn--primary {
		flex: 1 1 auto;
		justify-content: center;
	}

	.nv-hero-wrapper .nv-hero__stats {
		gap: 16px;
		padding-top: 22px;
	}

	.nv-hero-wrapper .nv-hero__stat-num {
		font-size: 22px;
	}

	.nv-hero-wrapper .nv-hero__stat-divider {
		height: 28px;
	}

	.nv-hero-wrapper .nv-hero__image-wrap {
		min-height: 320px;
		border-radius: 20px;
	}

	.nv-hero-wrapper .nv-hero__badge {
		padding: 10px 14px;
		min-width: auto;
		gap: 10px;
	}

	.nv-hero-wrapper .nv-hero__badge-icon {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}

	.nv-hero-wrapper .nv-hero__badge-num { font-size: 16px; }
	.nv-hero-wrapper .nv-hero__badge-label { font-size: 11px; }

	.nv-hero-wrapper .nv-hero__badge--bl { left: 8px; bottom: 12px; }
	.nv-hero-wrapper .nv-hero__badge--br { right: 8px; bottom: 12px; }
	.nv-hero-wrapper .nv-hero__badge--tl { left: 8px; top: 12px; }
	.nv-hero-wrapper .nv-hero__badge--tr { right: 8px; top: 12px; }
}

@media (max-width: 480px) {
	.nv-hero-wrapper .nv-hero__container {
		padding: 48px 12px;
	}

	.nv-hero-wrapper .nv-hero__image-wrap {
		min-height: 260px;
	}
}

/* =========================================================
 * REDUCED MOTION
 * ========================================================= */
@media (prefers-reduced-motion: reduce) {
	.nv-hero-wrapper *,
	.nv-hero-wrapper *::before,
	.nv-hero-wrapper *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.nv-hero-wrapper .nv-hero--anim-decor .nv-hero__scribble-path {
		stroke-dasharray: none !important;
		stroke-dashoffset: 0 !important;
	}
	.nv-hero-wrapper .nv-hero__anim {
		opacity: 1 !important;
		transform: none !important;
	}
}
