/* ============================================
 * acf/faq — block-scoped styles
 *
 * Enqueued via block.json "style": "file:./faq.css". Loaded only on
 * pages where the block is used. The accordion toggle is handled by
 * faq.js (viewScript) — CSS animates max-height + chevron rotation.
 *
 * Naming: BEM with `.blk-faq` root. Tokens come from :root in global.css.
 * ============================================ */

.blk-faq {
	padding: var(--section-py) 0;
}

.blk-faq__head {
	text-align: center;
	margin: 0 auto 56px;
}
.blk-faq__head h2 {
	font-size: clamp(40px, 5.4vw, 64px);
	letter-spacing: var(--tracking-tight);
	line-height: 1.05;
	font-weight: var(--weight-regular);
}

.blk-faq__wrap {
	max-width: 880px;
	margin: 0 auto;
	position: relative;
}

.blk-faq__item {
	position: relative;
	background: var(--color-bg-elev-1);
	border-radius: var(--radius-sm);
	padding: 0 28px;
	overflow: hidden;
	transition: background var(--duration-fast) var(--ease);
}
.blk-faq__item:hover { background: var(--color-bg-elev-2); }
.blk-faq__item.is-open { background: var(--color-bg-elev-2); }
.blk-faq__item + .blk-faq__item { margin-top: 12px; }

/* Each question is wrapped in an <h3> (see blurr-faq-question-heading.php) so
 * it's a real heading for the document outline. Keep the wrapper layout- and
 * style-transparent so the button below renders unchanged. The <h3> matches
 * the theme's `h1–h4 { text-wrap: balance }`, which inherits into the question
 * text and evens the lines — reset it to greedy so the question fills the
 * available width before wrapping. */
.blk-faq__q-heading {
	margin: 0;
	font: inherit;
	text-wrap-style: auto;
	text-wrap: wrap;
}

.blk-faq__q {
	width: 100%;
	background: transparent;
	border: none;
	color: var(--color-fg);
	font-family: inherit;
	font-size: 16px;
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-normal);
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	text-align: left;
	position: relative;
	z-index: 2;
}
.blk-faq__q:focus-visible {
	outline: 2px solid var(--color-fg);
	outline-offset: 4px;
	border-radius: 4px;
}

.blk-faq__chev {
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	transition: transform 0.35s var(--ease), color var(--duration-fast) var(--ease);
	color: var(--color-fg-muted);
}
.blk-faq__chev svg { width: 14px; height: 14px; }
.blk-faq__item.is-open .blk-faq__chev {
	transform: rotate(180deg);
	color: var(--color-fg);
}

.blk-faq__a {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s var(--ease);
	position: relative;
	z-index: 2;
}
.blk-faq__a-inner {
	padding: 0 0 22px;
	color: var(--color-fg-muted);
	font-size: 15px;
	line-height: 1.6;
}
.blk-faq__a-inner a {
	color: var(--color-fg);
	text-decoration: underline;
}
.blk-faq__a-inner p + p { margin-top: 12px; }

@media (max-width: 600px) {
	.blk-faq__item { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.blk-faq__chev,
	.blk-faq__a { transition: none; }
}
