/*
 * Site5 – FAQ page (Figma "FAQ · Desktop", node 608:6535).
 * Hero variant: sections.css. Accordion: native <details name="faq"> (one answer open at a time).
 */

.faq {
	padding: 82px var(--gutter-wide) 96px;
	background: #f8f8f7;
}

.faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(1040px, 100%);
	margin-inline: auto;
}

.faq-item {
	border-bottom: 1px solid #e3e5e8;
	border-radius: 0;
	transition: background-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
	border: 1px solid #e3e5e8;
	border-radius: 14px;
	background: var(--white);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.faq-item__question {
	display: grid;
	grid-template-columns: 46px minmax(0, 850px) 34px;
	align-items: center;
	gap: 18px;
	padding: 22px 26px;
	color: #0b1421;
	cursor: pointer;
	list-style: none;
}

.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__question:focus-visible {
	border-radius: 14px;
	outline: 2px solid var(--red-bright);
	outline-offset: -2px;
}

.faq-item__number {
	color: var(--red-bright);
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 1px;
}

.faq-item__title {
	font-family: var(--font-serif);
	font-size: 23px;
	font-weight: 700;
	line-height: 31px;
	transition: color 0.2s;
}

/* Plus sign, turned into a minus when the answer is open. */
.faq-item__toggle {
	position: relative;
	justify-self: center;
	width: 14px;
	height: 14px;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transition: transform 0.2s;
}

.faq-item__toggle::after {
	transform: rotate(90deg);
}

.faq-item[open] .faq-item__question,
.faq-item__question:hover {
	color: var(--red-bright);
}

.faq-item[open] .faq-item__toggle::after {
	transform: rotate(0deg);
}

.faq-item__answer {
	max-width: 990px; /* 874 px of text */
	margin-top: -6px;
	padding: 0 26px 22px 90px;
	color: #3d454f;
	font-size: 15px;
	line-height: 25px;
}

.faq-item__answer > * + * {
	margin-top: 12px;
}

.faq-item__answer a {
	color: var(--red-bright);
	text-decoration: underline;
}

.faq-item__answer ul {
	padding-left: 20px;
	list-style: disc;
}

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

@media (max-width: 1023px) {
	.page-hero--faq .page-hero__title {
		font-size: 40px;
		line-height: 50px;
	}
}

@media (max-width: 767px) {
	.page-hero--faq {
		min-height: 0;
		padding: 64px var(--gutter);
	}

	.page-hero--faq .page-hero__title {
		margin-top: 20px;
		font-size: 32px;
		line-height: 40px;
	}

	.faq {
		padding-top: 48px;
		padding-bottom: 64px;
	}

	.faq-item__question {
		grid-template-columns: minmax(0, 1fr) 24px;
		row-gap: 6px;
		column-gap: 12px;
		padding: 20px 18px;
	}

	.faq-item__number {
		grid-column: 1 / -1;
	}

	.faq-item__title {
		font-size: 19px;
		line-height: 26px;
	}

	.faq-item__answer {
		margin-top: -4px;
		padding: 0 18px 20px;
		font-size: 14.5px;
		line-height: 24px;
	}
}
