/**
 * Nova CTA Component Styles
 *
 * Unified CTA card styles shared across homepage, shop (PLP), and about page.
 * Single boxed, rounded, gradient card — never fullbleed or edge-to-edge.
 * Layout: [Logo] [Text] [Button]
 *
 * Variants:
 *   - gradient (default) — homepage, shop: logo + heading/body + CTA button
 *   - email-signup       — about page: logo + copy + email field
 *
 * Figma node 548:3189
 *
 * @package nova-peptides
 * @since   2.0
 */

/* ============================================================
   Outer section — transparent bg, page-level horizontal padding
   ============================================================ */

.nova-cta {
	padding: 0 56px 50px;
	background: var(--nova-bg-white);
}

/* ============================================================
   Card — the boxed gradient container
   ============================================================ */

.nova-cta__inner {
	border: 1px solid #e4e6f2;
	border-radius: 12px;
	padding: 24px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(170.23deg, #431c71 0%, #1b003c 100%);
	max-width: var(--nova-content-width);
	margin: auto;
}

/* Texture overlay */
.nova-cta__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url(../../images/nova-hero.jpg);
	background-size: cover;
	background-position: center;
	opacity: 0.2;
	mix-blend-mode: luminosity;
	pointer-events: none;
	z-index: 0;
}

/* ============================================================
   Logo
   ============================================================ */

.nova-cta__logo {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	height: 48px;
	width: auto;
	object-fit: contain;
	color: #fff;
}

/* ============================================================
   Content block — heading + body
   ============================================================ */

.nova-cta__content {
	position: relative;
	z-index: 1;
	flex: 1;
}

.nova-cta__heading {
	font-family: var(--nova-font-heading);
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	color: #fff;
	margin: 0;
}

.nova-cta__body {
	font-family: var(--nova-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
	margin: 6px 0 0;
}

/* ============================================================
   CTA button (gradient variant)
   ============================================================ */

.nova-btn--cta {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: #ffffff;
	border-radius: 40px;
	padding: 12px 28px;
	font-family: var(--nova-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #8a4fff;
	text-decoration: none;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	transition: background 0.2s;
}

.nova-btn--cta:hover {
	background: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Footnote — below the card
   ============================================================ */

.nova-cta__footnote {
	width: 100%;       /* spans full row so it wraps below logo/content/button */
	margin: -16px 0 0; /* pull up to reduce gap from row above */
	font-family: var(--nova-font-body);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.43;
	color: rgba(255, 255, 255, 0.6);
    padding-top: 10px;
}

/* ============================================================
   Email-signup variant (about page)
   ============================================================ */

.nova-cta--email {
	padding: 0 56px 80px;
	background: transparent;
}

.nova-cta--email .nova-cta__card {
	position: relative;
	overflow: hidden;
	border: 1px solid #e4e6f2;
	border-radius: 12px;
	background: linear-gradient(170.23deg, #431c71 0%, #1b003c 100%);
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 24px 32px;
}

.nova-cta--email .nova-cta__texture {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	mix-blend-mode: luminosity;
	opacity: 0.2;
	pointer-events: none;
}

.nova-cta--email .nova-cta__logo {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	height: 48px;
	width: auto;
	object-fit: contain;
	color: #fff;
}

.nova-cta--email .nova-cta__copy {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #fff;
}

.nova-cta--email .nova-cta__title {
	font-family: var(--nova-font-heading);
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	margin: 0;
}

.nova-cta--email .nova-cta__desc {
	font-family: var(--nova-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: rgba(255, 255, 255, 0.8);
	max-width: 416px;
	margin: 0;
}

.nova-cta--email .nova-cta__field {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	gap: 8px;
	align-items: center;
}

.nova-cta--email .nova-cta__email {
	flex: 1;
	background: #ffffff;
	border: 1px solid #e4e6f2;
	border-radius: 40px;
	padding: 12px 20px;
	font-family: var(--nova-font-body);
	font-size: 16px;
	color: rgba(10, 10, 14, 0.5);
	outline: none;
}

.nova-cta--email .nova-cta__submit {
	background: #8a4fff;
	color: #ffffff;
	border: none;
	border-radius: 40px;
	padding: 12px 28px;
	font-family: var(--nova-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.nova-cta--email .nova-cta__submit:hover {
	background: #9d6bff;
}

/* ============================================================
   Responsive — 1024px (tablet)
   ============================================================ */

@media (max-width: 1024px) {

	.nova-cta {
		padding: 0 32px 48px;
	}

	.nova-cta__inner {
		padding: 32px 28px;
		gap: 24px;
	}

	.nova-cta__heading {
		font-size: 22px;
		line-height: 26px;
	}

	.nova-cta__body {
		font-size: 15px;
	}

	.nova-btn--cta {
		min-height: 48px;
		padding: 12px 26px;
	}

	/* Email-signup variant */
	.nova-cta--email {
		padding: 0 32px 48px;
	}

	.nova-cta--email .nova-cta__card {
		flex-wrap: wrap;
		padding: 24px 28px;
	}

	.nova-cta--email .nova-cta__copy {
		flex: 1;
		min-width: 280px;
	}

	.nova-cta--email .nova-cta__desc {
		max-width: 100%;
	}

	.nova-cta--email .nova-cta__field {
		flex: 0 0 100%;
	}
}

/* ============================================================
   Responsive — 768px (mobile)
   ============================================================ */

@media (max-width: 768px) {

	.nova-cta {
		padding: 0 16px 40px;
	}

	.nova-cta__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 40px 20px;
		border-radius: 24px;
	}

	.nova-cta__logo {
		height: 40px;
		width: 120px;
	}

	.nova-cta__heading {
		font-size: 24px;
		line-height: 1.15;
		letter-spacing: -0.4px;
	}

	.nova-cta__body {
		font-size: 14px;
		line-height: 1.5;
		margin-top: 6px;
	}

	.nova-btn--cta {
		width: 100%;
		justify-content: center;
		min-height: 44px;
		padding: 12px 22px;
		font-size: 14px;
		line-height: 20px;
	}

	.nova-cta__footnote {
		font-size: 12px;
	}

	/* Email-signup variant */
	.nova-cta--email {
		padding: 0 16px 40px;
	}

	.nova-cta--email .nova-cta__card {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		padding: 20px;
	}

	.nova-cta--email .nova-cta__logo {
		height: 40px;
	}

	.nova-cta--email .nova-cta__copy {
		min-width: 0;
	}

	.nova-cta--email .nova-cta__field {
		width: 100%;
	}

	.nova-cta--email .nova-cta__email {
		min-width: 0;
	}
}

/* ============================================================
   Responsive — 480px (small mobile)
   ============================================================ */

@media (max-width: 480px) {

	.nova-cta {
		padding: 0 12px 32px;
	}

	.nova-cta__inner {
		padding: 32px 16px;
		border-radius: 20px;
		gap: 12px;
	}

	.nova-cta__logo {
		height: 36px;
		width: 96px;
	}

	.nova-cta__heading {
		font-size: 20px;
		line-height: 1.2;
	}

	.nova-cta__body {
		font-size: 13px;
	}

	.nova-btn--cta {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		font-size: 14px;
	}

	/* Email-signup variant */
	.nova-cta--email {
		padding: 0 12px 32px;
	}

	.nova-cta--email .nova-cta__card {
		padding: 24px 16px;
		gap: 16px;
	}

	.nova-cta--email .nova-cta__logo {
		height: 36px;
	}

	.nova-cta--email .nova-cta__title {
		font-size: 18px;
		line-height: 22px;
	}

	.nova-cta--email .nova-cta__desc {
		font-size: 14px;
		line-height: 20px;
	}

	.nova-cta--email .nova-cta__field {
		flex-direction: column;
	}

	.nova-cta--email .nova-cta__email {
		width: 100%;
		min-height: 44px;
		font-size: 16px;
	}

	.nova-cta--email .nova-cta__submit {
		width: 100%;
		min-height: 44px;
		text-align: center;
	}
}
