/* =========================================================
 * NationVoice — Pitch Block Widget
 * Fully isolated under .nv-pitch-wrapper
 * ========================================================= */

.nv-pitch-wrapper {
	--nv-primary: #3c4d8c;
	--nv-accent: #ff6716;
	--nv-accent-dark: #cc4f0f;
	--nv-orange: #f2a541;
	--nv-heading: #202428;
	--nv-text: #5e5e5e;
	--nv-text-soft: #7c7c7c;
	--nv-bg: #ffffff;
	--nv-bg-soft: #f7f7f9;

	--nv-radius-sm: 8px;
	--nv-shadow-md: 0 8px 24px rgba(0,0,0,0.08);

	--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-pitch-wrapper *,
.nv-pitch-wrapper *::before,
.nv-pitch-wrapper *::after {
	box-sizing: border-box;
}

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

/* Section frame */
.nv-pitch-wrapper .nv-pitch {
	width: 100%;
	background-color: var(--nv-bg);
}

.nv-pitch-wrapper .nv-pitch__container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 96px 32px;
}

/* Grid */
.nv-pitch-wrapper .nv-pitch__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: center;
}

.nv-pitch-wrapper .nv-pitch--img-right .nv-pitch__media   { order: 2; }
.nv-pitch-wrapper .nv-pitch--img-right .nv-pitch__content { order: 1; }

/* Image */
.nv-pitch-wrapper .nv-pitch__media {
	min-width: 0;
}

.nv-pitch-wrapper .nv-pitch__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 4px;
	overflow: hidden;
	background-color: var(--nv-bg-soft);
	box-shadow: var(--nv-shadow-md);
	transition: transform var(--nv-trans);
}

.nv-pitch-wrapper .nv-pitch__image-wrap:hover {
	transform: translateY(-4px);
}

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

.nv-pitch-wrapper .nv-pitch__image-wrap:hover .nv-pitch__image {
	transform: scale(1.04);
}

/* =========================================================
 * VIDEO MEDIA TYPES
 * ========================================================= */

/* YouTube/Vimeo thumbnail with play button */
.nv-pitch-wrapper .nv-pitch__video-link {
	position: absolute;
	inset: 0;
	display: block;
	cursor: pointer;
	background-color: #000;
	overflow: hidden;
}

.nv-pitch-wrapper .nv-pitch__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 76px;
	height: 54px;
	transform: translate(-50%, -50%);
	background-color: #ff0000;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
	transition: transform var(--nv-trans), background var(--nv-trans), box-shadow var(--nv-trans);
	pointer-events: none;
	z-index: 2;
}

.nv-pitch-wrapper .nv-pitch__video-link:hover .nv-pitch__play {
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.nv-pitch-wrapper .nv-pitch__play svg {
	margin-left: 4px;
}

.nv-pitch-wrapper .nv-pitch__video-link:hover .nv-pitch__image {
	filter: brightness(0.92);
	transform: scale(1.04);
}

/* Inline iframe (no lightbox mode) */
.nv-pitch-wrapper .nv-pitch__iframe-wrap {
	position: absolute;
	inset: 0;
	background-color: #000;
}

.nv-pitch-wrapper .nv-pitch__iframe-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Self-hosted video */
.nv-pitch-wrapper .nv-pitch__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-color: #000;
}

/* =========================================================
 * VIDEO LIGHTBOX
 * ========================================================= */
.nv-pitch-wrapper .nv-pitch__lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background-color: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--nv-ease), visibility 0.3s var(--nv-ease);
}

.nv-pitch-wrapper .nv-pitch__lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.nv-pitch-wrapper .nv-pitch__lightbox-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform var(--nv-trans), background var(--nv-trans);
	z-index: 2;
}

.nv-pitch-wrapper .nv-pitch__lightbox-close:hover {
	transform: rotate(90deg) scale(1.05);
	background-color: rgba(255, 255, 255, 0.22);
}

.nv-pitch-wrapper .nv-pitch__lightbox-frame {
	width: 100%;
	max-width: 1200px;
	transform: scale(0.95);
	transition: transform 0.4s var(--nv-ease);
}

.nv-pitch-wrapper .nv-pitch__lightbox.is-open .nv-pitch__lightbox-frame {
	transform: scale(1);
}

.nv-pitch-wrapper .nv-pitch__lightbox-iframe-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.nv-pitch-wrapper .nv-pitch__lightbox-iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 768px) {
	.nv-pitch-wrapper .nv-pitch__play { width: 60px; height: 42px; border-radius: 12px; }
	.nv-pitch-wrapper .nv-pitch__lightbox { padding: 16px; }
	.nv-pitch-wrapper .nv-pitch__lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* Content column */
.nv-pitch-wrapper .nv-pitch__content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

/* Eyebrow badge */
.nv-pitch-wrapper .nv-pitch__eyebrow {
	display: inline-block;
	width: fit-content;
	font-family: var(--nv-font-body) !important;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.4px;
	margin-bottom: 4px;
}

.nv-pitch-wrapper .nv-pitch__eyebrow--pill-dark {
	padding: 6px 14px;
	background-color: #202428;
	color: #ffffff !important;
	border-radius: 4px;
}

.nv-pitch-wrapper .nv-pitch__eyebrow--pill-light {
	padding: 6px 14px;
	background-color: rgba(60, 77, 140, 0.10);
	color: var(--nv-primary) !important;
	border-radius: 4px;
}

.nv-pitch-wrapper .nv-pitch__eyebrow--plain {
	padding: 0;
	background: transparent;
	color: var(--nv-text-soft) !important;
	font-size: 13px;
	letter-spacing: 0.3px;
	font-weight: 500;
}

/* Heading */
.nv-pitch-wrapper .nv-pitch__heading {
	margin: 0;
	font-family: var(--nv-font-heading) !important;
	font-weight: 600;
	font-size: 34px;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--nv-heading) !important;
	max-width: 22ch;
}

/* Description */
.nv-pitch-wrapper .nv-pitch__desc {
	margin: 0;
	font-family: var(--nv-font-body) !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--nv-text) !important;
	max-width: 56ch;
}

/* CTA link */
.nv-pitch-wrapper .nv-pitch__cta {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: var(--nv-font-body) !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: var(--nv-accent) !important;
	text-decoration: none !important;
	width: fit-content;
	transition: color var(--nv-trans), gap var(--nv-trans);
	margin-top: 4px;
}

.nv-pitch-wrapper .nv-pitch__cta-dash {
	display: inline-block;
	width: 28px;
	height: 1.5px;
	background-color: var(--nv-accent);
	flex-shrink: 0;
	transition: width var(--nv-trans), background var(--nv-trans);
}

.nv-pitch-wrapper .nv-pitch__cta:hover {
	color: var(--nv-accent-dark) !important;
	gap: 18px;
}

.nv-pitch-wrapper .nv-pitch__cta:hover .nv-pitch__cta-dash {
	width: 40px;
	background-color: var(--nv-accent-dark);
}

/* Divider */
.nv-pitch-wrapper .nv-pitch__divider {
	display: block;
	width: 100%;
	max-width: 200px;
	height: 1px;
	background-color: rgba(0, 0, 0, 0.10);
	margin: 8px 0;
}

/* Testimonial */
.nv-pitch-wrapper .nv-pitch__testi {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.nv-pitch-wrapper .nv-pitch__quote {
	margin: 0;
	font-family: var(--nv-font-heading) !important;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.5;
	color: var(--nv-text) !important;
	max-width: 30ch;
	font-style: normal;
}

/* Author row */
.nv-pitch-wrapper .nv-pitch__author {
	display: flex;
	align-items: center;
	gap: 14px;
}

.nv-pitch-wrapper .nv-pitch__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background-color: var(--nv-bg-soft);
}

.nv-pitch-wrapper .nv-pitch__author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nv-pitch-wrapper .nv-pitch__name {
	font-family: var(--nv-font-body) !important;
	font-size: 15px;
	font-weight: 600;
	color: var(--nv-heading) !important;
	line-height: 1.3;
}

.nv-pitch-wrapper .nv-pitch__role {
	font-family: var(--nv-font-body) !important;
	font-size: 13px;
	font-weight: 400;
	color: var(--nv-text-soft) !important;
	line-height: 1.3;
}

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

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

/* =========================================================
 * RESPONSIVE — TABLET + MOBILE
 *  - Stack vertically: image on top, content below
 *  - Center content for cleaner mobile feel
 * ========================================================= */
@media (max-width: 1024px) {
	.nv-pitch-wrapper .nv-pitch__container { padding: 72px 24px; }

	.nv-pitch-wrapper .nv-pitch__grid,
	.nv-pitch-wrapper .nv-pitch--img-right .nv-pitch__grid {
		grid-template-columns: 1fr !important;
		gap: 48px;
	}

	.nv-pitch-wrapper .nv-pitch__media,
	.nv-pitch-wrapper .nv-pitch--img-right .nv-pitch__media   { order: 1; }
	.nv-pitch-wrapper .nv-pitch__content,
	.nv-pitch-wrapper .nv-pitch--img-right .nv-pitch__content { order: 2; }

	.nv-pitch-wrapper .nv-pitch__image-wrap {
		max-width: 560px;
		margin: 0 auto;
	}

	.nv-pitch-wrapper .nv-pitch__heading { font-size: 28px; max-width: 100%; }
}

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

	.nv-pitch-wrapper .nv-pitch__grid { gap: 32px; }

	/* Center-align text on mobile */
	.nv-pitch-wrapper .nv-pitch__content {
		align-items: center;
		text-align: center;
		gap: 20px;
	}

	.nv-pitch-wrapper .nv-pitch__heading {
		font-size: 24px;
		text-align: center;
	}

	.nv-pitch-wrapper .nv-pitch__desc {
		font-size: 15px;
		text-align: center;
		max-width: 100%;
	}

	.nv-pitch-wrapper .nv-pitch__cta {
		font-size: 14px;
	}

	.nv-pitch-wrapper .nv-pitch__divider {
		margin: 4px auto;
	}

	.nv-pitch-wrapper .nv-pitch__testi {
		align-items: center;
		text-align: center;
	}

	.nv-pitch-wrapper .nv-pitch__quote {
		font-size: 18px;
		text-align: center;
		max-width: 100%;
	}

	.nv-pitch-wrapper .nv-pitch__author {
		justify-content: center;
	}

	.nv-pitch-wrapper .nv-pitch__avatar {
		width: 40px;
		height: 40px;
	}

	.nv-pitch-wrapper .nv-pitch__name { font-size: 14px; }
	.nv-pitch-wrapper .nv-pitch__role { font-size: 12px; }
}

@media (max-width: 480px) {
	.nv-pitch-wrapper .nv-pitch__container { padding: 48px 12px; }
	.nv-pitch-wrapper .nv-pitch__heading { font-size: 22px; }
}

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