/*
 * Novus DNA – shared design base for the redesigned pages (homepage and
 * conversion product pages): brand tokens, type and buttons.
 *
 * Brand colours come from the Novus DNA logo (ink #2b255e; spectrum
 * #00b5cb → #4e2583 → #e6007e) and the packaging colours of each formula.
 * Everything is scoped to .nv so the shop, header and footer are unaffected.
 */

.nv {
	--nv-ink: #2b255e;
	--nv-ink-deep: #1b1740;
	--nv-text: #221f33;
	--nv-muted: #5d596e;
	--nv-paper: #f4f1ed;
	--nv-card: #fff;
	--nv-line: rgba(43, 37, 94, 0.12);
	--nv-spectrum: linear-gradient(90deg, #00b5cb 0%, #4e2583 52%, #e6007e 100%);
	--nv-star: #fca311;
	--nv-radius: 1.25rem;
	--nv-radius-s: 0.75rem;
	--nv-gutter: clamp(1rem, 4vw, 3rem);
	--nv-section: clamp(3.5rem, 2.5rem + 4.5vw, 7rem);
	--nv-heading: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	--nv-body: "Inter", ui-sans-serif, system-ui, sans-serif;

	color: var(--nv-text);
	font-family: var(--nv-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
}

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

.nv p {
	margin: 0;
}

.nv a {
	color: inherit;
}

.nv img {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

.nv-container {
	inline-size: 100%;
	max-inline-size: calc(84rem + var(--nv-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--nv-gutter);
}

.nv-section {
	padding-block: var(--nv-section);
}

.nv-section--tint {
	background: var(--nv-paper);
}

.nv-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-block-end: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.nv-section__intro {
	max-inline-size: 38rem;
	margin-block-start: 0.75rem !important;
	color: var(--nv-muted);
	font-size: 1.0625rem;
}

/* ---------------------------------------------------------------
 * Type
 * ------------------------------------------------------------- */
.nv-heading {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.nv-heading--large {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}

.nv-eyebrow {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* The spectrum rule under the wordmark, used as a small brand marker. */
.nv-eyebrow--spectrum::before {
	content: "";
	display: block;
	inline-size: 2.5rem;
	block-size: 3px;
	margin-block-end: 0.85rem;
	border-radius: 3px;
	background: var(--nv-spectrum);
}

.nv-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.nv-link .icon {
	transition: transform 0.2s ease;
}

.nv-link:hover .icon {
	transform: translateX(3px);
}

.nv-link:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* ---------------------------------------------------------------
 * Buttons (override the theme's .button on WooCommerce links)
 * ------------------------------------------------------------- */
.nv .nv-button,
.nv a.button.nv-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-block-size: 3.25rem;
	padding: 0 1.75rem;
	border: 1.5px solid var(--nv-ink);
	border-radius: 999px;
	background: var(--nv-ink);
	color: #fff;
	font-family: var(--nv-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nv .nv-button:hover,
.nv a.button.nv-button:hover {
	background: var(--nv-ink-deep);
	border-color: var(--nv-ink-deep);
	color: #fff;
}

.nv .nv-button:focus-visible,
.nv-tab:focus-visible,
.nv a:focus-visible {
	outline: 2px solid #00b5cb;
	outline-offset: 3px;
}

.nv .nv-button--small,
.nv a.button.nv-button--small {
	min-block-size: 2.5rem;
	padding: 0 1.1rem;
	font-size: 0.8125rem;
}

.nv .nv-button--light {
	border-color: #fff;
	background: #fff;
	color: var(--nv-ink);
}

.nv .nv-button--light:hover {
	border-color: #ece9f6;
	background: #ece9f6;
	color: var(--nv-ink);
}

.nv .nv-button--outline {
	background: transparent;
	color: var(--nv-ink);
}

.nv .nv-button--outline:hover {
	background: var(--nv-ink);
	color: #fff;
}

.nv .nv-button--outline-light {
	border-color: rgba(255, 255, 255, 0.7);
	background: transparent;
	color: #fff;
}

.nv .nv-button--outline-light:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* WooCommerce AJAX states */
.nv .nv-button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.nv .nv-button.added::after {
	content: "✓";
	margin-inline-start: 0.15rem;
}

.nv .added_to_cart {
	display: inline-block;
	margin-block-start: 0.5rem;
	color: var(--nv-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------
 * Product card (homepage, shop, product pages)
 * ------------------------------------------------------------- */
.nv-card {
	display: flex;
	flex-direction: column;
	block-size: 100%;
	overflow: hidden;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: var(--nv-card);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nv-card:hover {
	box-shadow: 0 18px 40px -24px rgba(27, 23, 64, 0.35);
}

.nv-card__media {
	position: relative;
	display: block;
	flex-shrink: 0;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--nv-paper);
}

.nv-card__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.nv-card:hover .nv-card__media img {
	transform: scale(1.035);
}

.nv-card__badge {
	position: absolute;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: var(--nv-ink);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
}

.nv-card__badge--offer {
	/* The brand spectrum's darker half, so white text keeps AA contrast. */
	background: linear-gradient(90deg, #4e2583 0%, #b0006a 100%);
}

.nv-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1rem 1.1rem 1.15rem;
}

.nv-card__label {
	/* Ink text (AA contrast at this size); the goal colour shows as a dot. */
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nv-card__title {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.nv-card__title a {
	text-decoration: none;
}

.nv-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.nv-card__subtitle {
	color: var(--nv-muted);
	font-size: 0.875rem;
	line-height: 1.45;
}

.nv-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-block-start: auto;
	padding-block-start: 0.85rem;
}

.nv-card__price,
.nv-stack__price {
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.0625rem;
	font-weight: 600;
}

.nv-card__price del,
.nv-stack__price del {
	margin-inline-end: 0.35rem;
	color: var(--nv-muted);
	font-weight: 400;
}

.nv-card__price ins,
.nv-stack__price ins {
	text-decoration: none;
}

/* Subscribe & Save under the one-off price (template-parts/product-card-shop.php) */
.nv-card__sub {
	display: block;
	margin-block-start: 0.2rem;
	color: var(--nv-muted);
	font-family: var(--nv-body);
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
}

.nv-card__sub-plan {
	white-space: nowrap;
}

.nv-card__sub-every {
	display: block;
	color: var(--nv-muted);
	font-family: var(--nv-body);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
}

.nv-card__sub .amount {
	color: #1d6b3a;
	font-weight: 600;
}

/* Section label with the spectrum line on its left: the About page's style
   (0.25.8), shared by the shop and the testing sections. */
.nv .nv-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.9rem;
	color: #4e2583;
	font-family: var(--nv-heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.nv .nv-kicker::before {
	content: "";
	flex: none;
	inline-size: 2rem;
	block-size: 2px;
	border-radius: 2px;
	background: var(--nv-spectrum);
}

.nv .nv-kicker--light {
	color: #c9bff0;
}

/* Signature accent (Novus, 24 Nov 2026): the spectrum line sits beside section
   labels, as on the About page, rather than above them. The homepage carousel
   and the featured stack panel keep their own treatment. */
.nv-eyebrow--spectrum {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

.nv-eyebrow--spectrum::before {
	flex: none;
	inline-size: 2rem;
	block-size: 2px;
	margin-block-end: 0;
	border-radius: 2px;
}

.nv-hero .nv-eyebrow--spectrum,
.nv-stack--featured .nv-eyebrow--spectrum {
	display: block;
}

.nv-hero .nv-eyebrow--spectrum::before,
.nv-stack--featured .nv-eyebrow--spectrum::before {
	margin-block-end: 0.85rem;
}
