/**
 * NovaBP Home — Accounting Services Accordion
 *
 * Section 6 of the Home page: a dark navy gradient panel (201deg) with a 520px
 * sticky intro column on the left and an accordion of 7 services on the right.
 *
 * Figma reference: node 52:859 (intro 52:927, right column 52:971,
 * open item 52:972, closed item 52:979+).
 */

/*
 * Figma's gradient handles run well past the frame, so only the first ~40% of
 * the ramp is ever visible — the section stays deep navy and the bottom-left
 * corner only lifts to about #041E62, nowhere near the end colour. CSS
 * normalises the gradient line to the box, so the stops have to overshoot
 * (32% → 193%, sampled off the Figma render at 1440×924) to reproduce it.
 * Plain `10% → 100%` paints the full ramp and washes the section out.
 * Same gradient as `.nova-home-advantage__panel`; the angle differs because
 * Figma's handles are frame-relative and this box is much wider.
 */
.nova-home-process {
	background-image: linear-gradient(
		var(--nova-home-process-angle, 201deg),
		var(--nova-home-process-from, #021137) 32%,
		var(--nova-home-process-to, #06319d) 193%
	);
	color: var(--nova-tax-white);
}

.nova-home-process__inner {
	display: flex;
	align-items: flex-start;
	gap: var(--nova-home-process-column-gap, 60px);
}

/*
 * The intro pins while the accordion rows scroll past it.
 * `__inner` sets `align-items: flex-start`, which sticky requires.
 */
.nova-home-process__intro {
	position: sticky;
	inset-block-start: var(--nova-home-process-top, 120px);
	display: flex;
	flex: 0 0 520px;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}

.nova-home-process .nova-home-process__title {
	margin: 0;
	font-family: var(--nova-tax-font);
	font-size: 52px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: var(--nova-tax-white);
}

.nova-home-process__lede .nova-tax-lede {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	color: rgb(255 255 255 / 0.8);
}

/*
 * Green CTA button matching Figma node 52:928 (Buttons / Property=Secondary, Type=Solid, Size=Lg)
 */
.nova-tax .nova-home-process__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	min-height: 52px;
	padding: 12px 24px;
	background-color: var(--nova-tax-accent, #09A500);
	border: 0;
	border-radius: 8px;
	font-family: var(--nova-tax-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--nova-tax-white);
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.nova-tax .nova-home-process__button:hover,
.nova-tax .nova-home-process__button:focus {
	background-color: #088d00;
	color: var(--nova-tax-white);
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * Accordion List
 * ------------------------------------------------------------------------ */

.nova-home-process__list {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0 0 0 40px;
	list-style: none;
}

.nova-home-process__item {
	position: relative;
	border: 1px solid transparent;
	border-radius: 16px;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nova-home-process__item:hover {
	background-color: rgb(255 255 255 / 0.03);
}

/*
 * The active/expanded item carries the glass tint fill and gradient border
 * from Figma node 52:972.
 */
.nova-home-process__item.is-open {
	border-color: rgb(255 255 255 / 0.1);
	background-image: linear-gradient(
		180deg,
		rgb(255 255 255 / 0.08) 0%,
		rgb(255 255 255 / 0.02) 100%
	);
	background-origin: padding-box;
}

/*
 * The row's full width is the hit target.
 */
.nova-tax .nova-home-process__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 20px 24px;
	background: none;
	border: 0;
	border-radius: 16px;
	font-family: var(--nova-tax-font);
	text-align: start;
	cursor: pointer;
	transition: padding 0.3s ease;
	white-space: normal;
}

.nova-home-process__item.is-open .nova-home-process__question {
	padding: 24px 24px 12px 24px;
}

.nova-tax .nova-home-process__question:focus-visible {
	outline: 2px solid var(--nova-tax-green, #09A500);
	outline-offset: 2px;
}

.nova-home-process__question-text {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--nova-tax-font);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.5;
	color: rgb(255 255 255 / 0.99);
	white-space: normal;
	overflow-wrap: break-word;
}

.nova-home-process__toggle {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--nova-tax-white);
}

.nova-home-process__icon {
	width: 24px;
	height: 24px;
}

.nova-home-process__icon--minus {
	display: none;
}

.nova-home-process__item.is-open .nova-home-process__icon--minus {
	display: inline-flex;
}

.nova-home-process__item.is-open .nova-home-process__icon--plus {
	display: none;
}

/*
 * Smooth accordion height expansion using CSS grid-template-rows (0fr -> 1fr).
 */
.nova-home-process__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.nova-home-process__item.is-open .nova-home-process__answer {
	grid-template-rows: 1fr;
}

.nova-home-process__answer-inner {
	overflow: hidden;
	min-height: 0;
}

.nova-home-process__text {
	margin: 0;
	padding: 0 24px 24px 24px;
	font-family: var(--nova-tax-font);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	color: rgb(255 255 255 / 0.8);
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------ */

@media (max-width: 1280px) {
	.nova-home-process__inner {
		gap: 40px;
	}

	.nova-home-process__intro {
		flex: 0 0 440px;
	}

	.nova-home-process .nova-home-process__title {
		font-size: 42px;
	}

	.nova-home-process__list {
		padding-left: 20px;
	}
}

@media (max-width: 1024px) {
	.nova-home-process__inner {
		flex-direction: column;
		gap: 48px;
	}

	.nova-home-process__intro {
		position: static;
		flex: 0 0 auto;
		width: 100%;
		gap: 32px;
	}

	.nova-home-process .nova-home-process__title {
		font-size: 36px;
	}

	.nova-home-process__list {
		width: 100%;
		padding-left: 0;
	}
}

@media (max-width: 767px) {
	.nova-home-process__inner {
		gap: 32px;
	}

	.nova-home-process .nova-home-process__title {
		font-size: 28px;
	}

	.nova-tax .nova-home-process__question {
		padding: 16px 20px;
	}

	.nova-home-process__item.is-open .nova-home-process__question {
		padding: 20px 20px 8px 20px;
	}

	.nova-home-process__question-text {
		font-size: 20px;
	}

	.nova-home-process__text {
		font-size: 16px;
		padding: 0 20px 20px 20px;
	}

	.nova-tax .nova-home-process__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nova-home-process__item,
	.nova-tax .nova-home-process__question,
	.nova-home-process__answer {
		transition: none;
	}
}
