/*------------------------------------------------------------
FAQs — bare-bones public page styling, same philosophy as
lego-sets.css: plain CSS, no fixed 1920px stage, so it doesn't
fight the homepage's layout system. Colour tokens match the
brand palette.
------------------------------------------------------------*/

.faq-page {
	--faq-orange: #FF8200;
	--faq-ink: #111111;
	--faq-cream: #EADFCF;
	--faq-border: #E2DED6;
	font-family: 'DM Sans', sans-serif;
	color: var(--faq-ink);
	max-width: 900px;
	margin: 0 auto;
	padding: 160px 24px 96px;
}

.faq-page__title {
	font-family: 'F37Analogue', sans-serif;
	font-size: 40px;
	text-align: center;
	margin: 0 0 16px;
}

.faq-page__intro {
	max-width: 640px;
	margin: 0 auto 48px;
	text-align: center;
	font-size: 17px;
	line-height: 1.6;
	opacity: 0.8;
}

/* Accordion */

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-item {
	border: 1px solid var(--faq-border);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.faq-item__question {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.faq-item__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 20px;
	border: none;
	background: none;
	font: inherit;
	font-weight: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.faq-item__trigger:hover,
.faq-item__trigger:focus-visible {
	background: var(--faq-cream);
}

.faq-item__trigger:focus-visible {
	outline: 2px solid var(--faq-orange);
	outline-offset: -2px;
}

.faq-item__icon {
	flex: none;
	position: relative;
	width: 18px;
	height: 18px;
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--faq-orange);
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease;
}

.faq-item__icon::before {
	width: 14px;
	height: 2px;
}

.faq-item__icon::after {
	width: 2px;
	height: 14px;
}

.faq-item.is-open .faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

/* Height-animating wrapper — grid-rows trick so we don't need JS to
   measure pixel heights for arbitrarily long answers. The inner
   `overflow: hidden` clips the collapsed content; `inert` (toggled in
   app.js) keeps it out of tab order and the a11y tree while closed,
   independent of this purely-visual transition. */
.faq-item__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-item__panel {
	grid-template-rows: 1fr;
}

.faq-item__panel-inner {
	overflow: hidden;
}

.faq-item__answer {
	padding: 0 20px 20px;
	font-size: 15px;
	line-height: 1.6;
}

.faq-item__answer p {
	margin: 20px 0 14px;
}

.faq-item__answer p:last-child {
	margin-bottom: 0;
}

.faq-item__answer ul {
	margin: 0 0 14px;
	padding-left: 20px;
}

.faq-item__answer li {
	margin-bottom: 6px;
}

.faq-item__answer li:last-child {
	margin-bottom: 0;
}

/* States listed so answer links outrank the link-underline reset in the
   bricks stylesheet — see bricks/scss/partials/_base.scss. */
.faq-item__answer a,
.faq-item__answer a:hover,
.faq-item__answer a:focus,
.faq-item__answer a:visited,
.faq-item__answer a:visited:hover,
.faq-item__answer a:visited:focus {
	color: var(--faq-ink);
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.faq-item__panel,
	.faq-item__icon::before,
	.faq-item__icon::after {
		transition: none;
	}
}

@media (max-width: 600px) {
	.faq-page {
		padding: 140px 16px 64px;
	}

	.faq-page__title {
		font-size: 28px;
	}

	.faq-item__trigger {
		padding: 16px;
	}

	.faq-item__answer {
		padding: 0 16px 16px;
	}
}
