/*
 * NEMRA Blocks — FAQ widget (V2, Figma node 571:22167 / component 505:11382).
 * Two columns on #f6f6f6: intro (divider + eyebrow, serif heading, body) on
 * the left; a stack of white rounded question cards with circular outline
 * +/× toggles on the right.
 */

.nemra-faq {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 64px;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 120px 64px 0;
	font-family: var(--nemra-font-body, 'Poppins', system-ui, sans-serif);
	color: var(--nemra-dark, #17171a);
	box-sizing: border-box;
}

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

/* ---------- Intro column ---------------------------------------------- */

.nemra-faq__intro {
	display: flex;
	flex-direction: column;
	gap: 24px;
	flex: 0 0 451px;
	min-width: 0;
}

.nemra-faq__divider {
	width: 100%;
	padding-top: 24px;
	border-top: 1px solid rgba(26, 26, 23, 0.16);
}

.nemra-faq__eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
}

.nemra-faq__eyebrow-dot {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--nemra-green, #4c7f39);
}

.nemra-faq__eyebrow-label {
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(23, 23, 26, 0.64);
}

/* The current round rebinds this heading to Heading/H3 on desktop — Poppins
 * Medium 40/1.2/-1 (Matt's dev-mode paste, 2026-08-18). The MOBILE instance
 * still binds H2 (get_variable_defs on 797:33101 returns Heading H2 / Size
 * 36), so the mobile block below keeps --nemra-t-h2-size. */
.nemra-faq__heading {
	margin: 0;
	font-family: var(--nemra-font-body, 'Poppins', system-ui, sans-serif);
	font-size: var(--nemra-t-h3-size, 40px);
	font-weight: 500;
	line-height: var(--nemra-t-h3-lh, 1.2);
	letter-spacing: var(--nemra-t-h3-ls, -1px);
	color: var(--nemra-dark, #17171a);
}

.nemra-faq__body {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--nemra-dark, #1a1a17);
}

/* ---------- Question cards --------------------------------------------- */

.nemra-faq__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 0 1 680px;
	min-width: 0;
}

.nemra-faq__item {
	background-color: var(--nemra-light, #fcfdfd);
	border-radius: 8px;
	padding: 24px;
}

.nemra-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.nemra-faq__question-label {
	font-size: 20px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--nemra-dark, #17171a);
}

.nemra-faq__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(23, 23, 26, 0.32);
	border-radius: 32px;
	background-color: rgba(252, 253, 253, 0.32);
	color: var(--nemra-dark, #17171a);
	transition: transform 200ms ease, background-color 150ms ease, color 150ms ease;
}

.nemra-faq__question:hover .nemra-faq__toggle,
.nemra-faq__question:focus-visible .nemra-faq__toggle {
	background-color: var(--nemra-dark, #17171a);
	border-color: var(--nemra-dark, #17171a);
	color: var(--nemra-light, #fcfdfd);
}

.nemra-faq__question:focus-visible {
	outline: 2px solid var(--nemra-green, #4c7f39);
	outline-offset: 4px;
	border-radius: 4px;
}

/* Open state: plus rotates into an × */
.nemra-faq__item--open .nemra-faq__toggle {
	transform: rotate(45deg);
}

.nemra-faq__answer {
	margin-top: 32px;
}

.nemra-faq__answer p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--nemra-dark, #17171a);
}

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

@media (max-width: 991px) {
	.nemra-faq {
		flex-direction: column;
		gap: 40px;
		/* Section padding is the container's job (Figma 797:32992 = 80/24);
		 * the widget adding its own on top made the space the sum of both. */
		padding: 0;
	}

	.nemra-faq__intro {
		flex: 0 0 auto;
	}

	.nemra-faq__list {
		flex: 0 0 auto;
		width: 100%;
	}

	/* Mobile comp 797:32992 binds the heading to Heading/H2 (36 in the mobile
	 * mode) — moved up from the 599 block so the whole mobile-mode range gets
	 * it now that the desktop rule is H3 (40 desktop / 32 mobile). */
	.nemra-faq__heading {
		font-size: var(--nemra-t-h2-size, 36px);
		letter-spacing: var(--nemra-t-h2-ls, -1.5px);
	}
}

@media (max-width: 599px) {
	.nemra-faq {
		/* Container owns section padding (Figma 797:32992 = 80/24). */
		padding: 0;
	}

	/* Mobile comp 797:32992: questions bind Body/Large (16) — 18 was a
	   midpoint no mode defines. Heading lives in the 991 block above. */
	.nemra-faq__question-label {
		font-size: var(--nemra-t-b1-size, 16px);
	}

	.nemra-faq__answer {
		margin-top: 20px;
	}
}
