/**
 * FAQ accordion — Figma nodes 14:391, 14:1074
 * Shared card styles: pill border, plus/minus toggle, grid expand transition.
 */

.faq-section {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: var(--wp--custom--layout--content-size, 1170px);
	margin: 0 auto;
	padding: 60px 0 40px;
}

.faq-section__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.faq-section__subtitle {
	margin: 0;
	font-family: var(--wp--preset--font-family--imperial-script), "Imperial Script", cursive;
	font-size: 60px;
	font-weight: 400;
	font-style: normal;
	line-height: normal;
	color: #ffc81e;
	text-transform: lowercase;
}

.faq-section__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter), Inter, sans-serif;
	font-size: 48px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.2;
	color: #000000;
	text-transform: uppercase;
}

.faq-section__list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.faq-item {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #d5e2f8;
	border-radius: 50px;
	background-color: #ffffff;
	overflow: hidden;
	transition: border-color 0.3s ease-in-out;
}

.faq-item__heading {
	margin: 0;
	font: inherit;
}

.faq-item__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 20px 30px;
	border: none;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.faq-item__trigger:focus {
	outline: none;
}

.faq-item__trigger:focus-visible {
	outline: 2px solid #e87f24;
	outline-offset: 2px;
}

.faq-item__question {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-family: var(--wp--preset--font-family--inter), Inter, sans-serif;
	font-size: 18px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.3;
	color: #000000;
	word-break: break-word;
}

.faq-item__icon-wrap {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: 500px;
	background-color: rgba(213, 226, 248, 0.5);
	transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.faq-item__icon {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.faq-item__icon-line {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 1px;
	background-color: #e87f24;
	transform: translate(-50%, -50%);
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.faq-item__icon-line--horizontal {
	width: 14px;
	height: 2px;
}

.faq-item__icon-line--vertical {
	width: 2px;
	height: 14px;
}

.faq-item--expanded .faq-item__icon-wrap {
	transform: rotate(180deg);
}

.faq-item--expanded .faq-item__icon-line--vertical {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0);
}

.faq-item__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease-in-out;
}

.faq-item__panel-inner {
	overflow: hidden;
}

.faq-item__answer {
	margin: 0;
	padding: 0 30px 20px;
	font-family: var(--wp--preset--font-family--inter), Inter, sans-serif;
	font-size: 18px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.3;
	color: #000000;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.faq-item--expanded .faq-item__panel {
	grid-template-rows: 1fr;
}

.faq-item--expanded .faq-item__answer {
	opacity: 1;
}

@media (max-width: 768px) {
	.faq-section {
		gap: 30px;
		padding: 40px 20px 30px;
	}

	.faq-section__subtitle {
		font-size: 48px;
	}

	.faq-section__title {
		font-size: 30px;
	}

	.faq-item__trigger {
		padding: 15px 20px;
	}

	.faq-item__question {
		font-size: 16px;
	}

	.faq-item__answer {
		padding: 0 20px 15px;
		font-size: 16px;
	}

	.faq-item__icon-wrap {
		padding: 8px;
	}
}
