/* ──────────────────────────────────────────────────────────────────────────
   IV Me Now — 7 Pathways
   Brochure-themed: light bg, deep navy headings, cyan-blue accents.
   Eyeballed from the IV Me Now brochure PDF; tokens below are easy to swap.
   ────────────────────────────────────────────────────────────────────────── */

.ivmn-pathways {
	/* Tokens */
	--ivmn-bg:          #ffffff;
	--ivmn-bg-soft:     #f5f8fc;
	--ivmn-bg-section:  #fbfcfe;
	--ivmn-navy:        #0b1f3a;
	--ivmn-navy-dim:    #1c3461;
	--ivmn-blue:        #1a4d8f;
	--ivmn-cyan:        #29b6f6;
	--ivmn-cyan-hi:     #4fc3f7;
	--ivmn-text:        #1a2238;
	--ivmn-text-dim:    #5b6b85;
	--ivmn-border:      #e3eaf2;
	--ivmn-border-hi:   #cad7e6;
	--ivmn-shadow:      0 2px 10px rgba(11, 31, 58, 0.06);
	--ivmn-shadow-hi:   0 8px 28px rgba(11, 31, 58, 0.12);
	--ivmn-radius:      14px;
	--ivmn-radius-sm:   10px;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, sans-serif;
	color: var(--ivmn-text);
	background: var(--ivmn-bg);
	line-height: 1.55;
	scroll-behavior: smooth;
}

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

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.ivmn-hero {
	position: relative;
	padding: 64px 24px 40px;
	text-align: center;
	/* No overflow clip: the full-bleed top image needs to escape the hero box.
	   (If you re-enable the helix decoration, add `overflow: hidden;` back —
	   but note it will also clip a full-bleed top image.) */
}

.ivmn-hero__inner {
	position: relative;
	z-index: 1; /* sit above the helix decoration */
	max-width: 980px;
	margin: 0 auto;
}

/* ── Decorative side accent (e.g. DNA helix) ──────────────────────────── */

.ivmn-hero__decoration {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	max-height: 95%;
	width: auto;
	opacity: 0.18;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.ivmn-hero--decoration-left .ivmn-hero__decoration {
	left: -2%;
}

.ivmn-hero--decoration-right .ivmn-hero__decoration {
	right: -2%;
}

@media (max-width: 860px) {
	.ivmn-hero__decoration {
		display: none; /* keep mobile hero clean */
	}
}

.ivmn-hero__eyebrow {
	margin: 0 0 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 600;
	color: var(--ivmn-cyan);
}

.ivmn-hero__title {
	margin: 0 0 20px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	font-weight: 700;
	color: var(--ivmn-navy);
	letter-spacing: -0.01em;
}

.ivmn-hero__body {
	margin: 0 auto 16px;
	max-width: 760px;
	font-size: 17px;
	color: var(--ivmn-text-dim);
}

.ivmn-hero__tagline {
	margin: 24px auto 0;
	max-width: 720px;
	font-size: 17px;
	font-weight: 500;
	color: var(--ivmn-blue);
	font-style: italic;
}

/* ── Hero variant: image on top (full-bleed, spans the whole page width) ── */

.ivmn-hero__media--top {
	/* Break out of the centered .ivmn-hero__inner container and span the full
	   viewport width. Works regardless of the theme's content-width because
	   the container is horizontally centered. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: -64px;   /* cancel the hero's top padding so the banner sits flush */
	margin-bottom: 36px;
}

.ivmn-hero__media--top img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Hero variant: full-bleed background image ────────────────────────── */

.ivmn-hero--pos-background {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 96px 24px 80px;
	color: #ffffff;
}

.ivmn-hero--pos-background .ivmn-hero__eyebrow {
	color: var(--ivmn-cyan-hi);
}

.ivmn-hero--pos-background .ivmn-hero__title {
	color: #ffffff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.ivmn-hero--pos-background .ivmn-hero__body {
	color: rgba(255, 255, 255, 0.88);
}

.ivmn-hero--pos-background .ivmn-hero__tagline {
	color: var(--ivmn-cyan-hi);
}

/* ── Hero variant: image to the right of text ─────────────────────────── */

.ivmn-hero--pos-right .ivmn-hero__inner {
	max-width: 1180px;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 56px;
	align-items: center;
	text-align: left;
}

.ivmn-hero--pos-right .ivmn-hero__body,
.ivmn-hero--pos-right .ivmn-hero__tagline {
	margin-left: 0;
	margin-right: 0;
}

.ivmn-hero--pos-right .ivmn-hero__media--right img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: contain;
}

@media (max-width: 860px) {
	.ivmn-hero--pos-right .ivmn-hero__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		text-align: center;
	}

	.ivmn-hero--pos-right .ivmn-hero__media--right {
		order: -1; /* image above text on mobile */
		max-width: 420px;
		margin: 0 auto;
	}
}

/* ─── Sticky nav ────────────────────────────────────────────────────────── */

.ivmn-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--ivmn-border);
}

.ivmn-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 10px 16px;
	list-style: none;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
}

.ivmn-nav__item {
	margin: 0;
}

.ivmn-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ivmn-text-dim);
	transition: background 0.15s ease, color 0.15s ease;
}

.ivmn-nav__link i {
	font-size: 13px;
	color: var(--ivmn-cyan);
	transition: color 0.15s ease;
}

.ivmn-nav__link:hover {
	background: var(--ivmn-bg-soft);
	color: var(--ivmn-navy);
}

.ivmn-nav__link.is-active {
	background: var(--ivmn-navy);
	color: #fff;
}

.ivmn-nav__link.is-active i {
	color: var(--ivmn-cyan-hi);
}

/* ─── Sections ──────────────────────────────────────────────────────────── */

.ivmn-sections {
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 20px 96px;
}

.ivmn-section {
	padding: 56px 0 32px;
	border-top: 1px solid var(--ivmn-border);
	scroll-margin-top: 80px; /* offset for sticky nav */
}

.ivmn-section:first-of-type {
	border-top: 0;
	padding-top: 24px;
}

.ivmn-section__header {
	text-align: center;
	margin-bottom: 28px;
}

.ivmn-section__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ivmn-blue), var(--ivmn-cyan));
	color: #fff;
	font-size: 22px;
	margin-bottom: 14px;
	box-shadow: var(--ivmn-shadow);
}

.ivmn-section__title {
	margin: 0 0 6px;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	color: var(--ivmn-navy);
	letter-spacing: -0.005em;
}

.ivmn-section__desc {
	margin: 0 auto;
	max-width: 620px;
	color: var(--ivmn-text-dim);
	font-size: 15px;
}

/* ─── Featured Protocol card ────────────────────────────────────────────── */

.ivmn-featured {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: start;
	padding: 22px;
	margin: 0 auto 28px;
	max-width: 980px;
	background: linear-gradient(135deg, #0b1f3a 0%, #1a4d8f 100%);
	color: #ffffff;
	border-radius: var(--ivmn-radius);
	box-shadow: var(--ivmn-shadow-hi);
	position: relative;
	overflow: hidden;
}

.ivmn-featured__badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: var(--ivmn-cyan);
	color: #001628;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}

.ivmn-featured__media {
	background: rgba(255, 255, 255, 0.06);
	border-radius: var(--ivmn-radius-sm);
	padding: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 180px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease;
}

a.ivmn-featured__media:hover {
	transform: translateY(-2px);
}

.ivmn-featured__media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.ivmn-featured__media--placeholder {
	color: rgba(255, 255, 255, 0.5);
	font-size: 56px;
}

.ivmn-featured__body {
	padding-right: 100px; /* keep clear of the badge */
}

.ivmn-featured__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

.ivmn-featured__titlelink {
	color: #fff;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ivmn-featured__titlelink:hover {
	color: var(--ivmn-cyan-hi);
}

.ivmn-featured__short,
.ivmn-featured__preview {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
}

.ivmn-featured__short p:last-child {
	margin-bottom: 0;
}

/* Collapsible description + toggle */
.ivmn-featured__desc {
	position: relative;
	margin-bottom: 10px;
}

.ivmn-featured__desc .ivmn-featured__short {
	margin-bottom: 0;
}

.ivmn-featured__desc.is-collapsed {
	max-height: 132px;
	overflow: hidden;
}

.ivmn-featured__desc.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 56px;
	background: linear-gradient(to bottom, rgba(18, 44, 84, 0), rgba(18, 44, 84, 0.92));
	pointer-events: none;
}

.ivmn-featured__toggle {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0 0 14px;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ivmn-cyan-hi);
}

.ivmn-featured__toggle[hidden] {
	display: none;
}

.ivmn-featured__toggle-more,
.ivmn-featured__toggle-less {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ivmn-featured__toggle-less {
	display: none;
}

.ivmn-featured__toggle[aria-expanded="true"] .ivmn-featured__toggle-more {
	display: none;
}

.ivmn-featured__toggle[aria-expanded="true"] .ivmn-featured__toggle-less {
	display: inline-flex;
}

.ivmn-featured__toggle:hover {
	text-decoration: underline;
}

.ivmn-featured__price {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: var(--ivmn-cyan-hi);
}

.ivmn-featured__price .woocommerce-Price-amount {
	color: var(--ivmn-cyan-hi);
}

.ivmn-featured__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ivmn-cyan-hi);
	letter-spacing: 0.02em;
	text-decoration: none;
}

.ivmn-featured__cta i {
	transition: transform 0.2s ease;
}

.ivmn-featured__cta:hover {
	text-decoration: underline;
}

.ivmn-featured__cta:hover i {
	transform: translateX(4px);
}

/* Coming Soon variant — same shape, muted treatment */
.ivmn-featured--coming-soon {
	background: linear-gradient(135deg, #e7ecf3 0%, #f5f8fc 100%);
	color: var(--ivmn-text);
	border: 1px dashed var(--ivmn-border-hi);
	cursor: default;
	box-shadow: var(--ivmn-shadow);
}

.ivmn-featured--coming-soon:hover {
	transform: none;
	box-shadow: var(--ivmn-shadow);
}

.ivmn-featured--coming-soon .ivmn-featured__badge {
	background: var(--ivmn-text-dim);
	color: #fff;
}

.ivmn-featured--coming-soon .ivmn-featured__title {
	color: var(--ivmn-navy);
}

.ivmn-featured--coming-soon .ivmn-featured__preview {
	color: var(--ivmn-text-dim);
}

.ivmn-featured__cta--disabled {
	color: var(--ivmn-text-dim);
	font-style: italic;
}

/* ─── Product grid ──────────────────────────────────────────────────────── */

.ivmn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.ivmn-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ivmn-border);
	border-radius: var(--ivmn-radius);
	text-decoration: none;
	color: var(--ivmn-text);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ivmn-card:hover {
	transform: translateY(-3px);
	border-color: var(--ivmn-cyan);
	box-shadow: var(--ivmn-shadow-hi);
}

.ivmn-card__media {
	background: var(--ivmn-bg-soft);
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ivmn-card__media img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.ivmn-card:hover .ivmn-card__media img {
	transform: scale(1.04);
}

.ivmn-card__body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ivmn-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ivmn-navy);
	line-height: 1.3;
}

.ivmn-card__short {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--ivmn-text-dim);
	line-height: 1.5;
	flex: 1;

	/* Clamp to 3 lines so cards stay even-height */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ivmn-card__footer {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--ivmn-border);
}

.ivmn-card__price {
	font-size: 15px;
	font-weight: 700;
	color: var(--ivmn-navy);
}

.ivmn-card__price .woocommerce-Price-amount {
	color: var(--ivmn-navy);
}

.ivmn-card__price del .woocommerce-Price-amount {
	color: var(--ivmn-text-dim);
	font-weight: 400;
}

.ivmn-card__type {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ivmn-cyan);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ivmn-card__type i {
	transition: transform 0.2s ease;
}

.ivmn-card:hover .ivmn-card__type i {
	transform: translateX(3px);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
	.ivmn-hero {
		padding: 40px 18px 24px;
	}

	.ivmn-sections {
		padding: 16px 14px 64px;
	}

	.ivmn-section {
		padding: 40px 0 24px;
	}

	.ivmn-featured {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 18px;
	}

	.ivmn-featured__media {
		height: 160px;
	}

	.ivmn-featured__body {
		padding-right: 0;
		padding-top: 6px;
	}

	.ivmn-featured__badge {
		top: 10px;
		right: 10px;
	}

	.ivmn-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 14px;
	}

	.ivmn-card__media {
		height: 150px;
	}
}

@media (max-width: 480px) {
	.ivmn-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ivmn-card__title {
		font-size: 14px;
	}

	.ivmn-card__short {
		font-size: 12px;
		-webkit-line-clamp: 2;
	}
}

/* ─── FAQ accordion ──────────────────────────────────────────────────────── */

.ivmn-faqs {
	max-width: 880px;
	margin: 48px auto 96px;
	padding: 0 24px;
}

.ivmn-faqs__header {
	text-align: center;
	margin-bottom: 28px;
}

.ivmn-faqs__title {
	margin: 0;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	color: var(--ivmn-navy);
	letter-spacing: -0.01em;
}

.ivmn-faqs__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ivmn-faq {
	background: var(--ivmn-bg-section);
	border: 1px solid var(--ivmn-border);
	border-radius: var(--ivmn-radius);
	box-shadow: var(--ivmn-shadow);
	overflow: hidden;
}

.ivmn-faq > summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--ivmn-navy);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.4;
	user-select: none;
	transition: background 0.15s ease;
}

.ivmn-faq > summary::-webkit-details-marker { display: none; }
.ivmn-faq > summary::marker { content: ''; }

.ivmn-faq > summary:hover { background: rgba(26, 77, 143, 0.04); }

.ivmn-faq > summary:focus-visible {
	outline: 2px solid var(--ivmn-cyan);
	outline-offset: -2px;
}

.ivmn-faq__qtext { flex: 1; }

.ivmn-faq__icon {
	color: var(--ivmn-blue);
	font-size: 14px;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.ivmn-faq[open] > summary .ivmn-faq__icon {
	transform: rotate(180deg);
}

.ivmn-faq[open] > summary {
	border-bottom: 1px solid var(--ivmn-border);
}

.ivmn-faq__a {
	padding: 16px 22px 20px;
	color: var(--ivmn-text-dim);
	font-size: 16px;
	line-height: 1.6;
}

.ivmn-faq__a p { margin: 0 0 12px; }
.ivmn-faq__a p:last-child { margin-bottom: 0; }

.ivmn-faq__a ul {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.ivmn-faq__a ul:last-child { margin-bottom: 0; }

.ivmn-faq__a ul li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 6px;
}

.ivmn-faq__a ul li:last-child { margin-bottom: 0; }

.ivmn-faq__a ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ivmn-cyan);
}

@media (max-width: 600px) {
	.ivmn-faqs { margin: 32px auto 64px; }
	.ivmn-faq > summary { padding: 16px 18px; font-size: 16px; }
	.ivmn-faq__a { padding: 14px 18px 18px; }
}

/* ─── Hero "Have Questions?" CTA (jumps to FAQ) ───────────────────────────── */

.ivmn-hero__cta-wrap {
	margin: 32px 0 0;
	text-align: center;
}

.ivmn-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--ivmn-bg);
	color: var(--ivmn-navy);
	border: 1.5px solid var(--ivmn-border-hi);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	box-shadow: var(--ivmn-shadow);
	transition: background 0.18s ease, color 0.18s ease,
		border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ivmn-hero__cta i {
	color: var(--ivmn-cyan);
	font-size: 15px;
	transition: color 0.18s ease;
}

.ivmn-hero__cta:hover,
.ivmn-hero__cta:focus-visible {
	background: var(--ivmn-navy);
	color: #fff;
	border-color: var(--ivmn-navy);
	transform: translateY(-1px);
	box-shadow: var(--ivmn-shadow-hi);
	outline: none;
}

.ivmn-hero__cta:hover i,
.ivmn-hero__cta:focus-visible i {
	color: var(--ivmn-cyan-hi);
}

/* Slightly tighter on small screens. */
@media (max-width: 600px) {
	.ivmn-hero__cta-wrap { margin-top: 24px; }
	.ivmn-hero__cta { padding: 10px 18px; font-size: 14px; }
}
