/* GM Video Creator — FAQ (perguntas frequentes) */

.gmvc-faq {
	background: var(--gmvc-bg);
}

/* --------------------------------------------------------------------------
   Layout (coluna única ou dividido)
   -------------------------------------------------------------------------- */

.gmvc-faq__layout {
	display: block;
	width: 100%;
}

.gmvc-faq__aside {
	min-width: 0;
}

.gmvc-faq__main {
	min-width: 0;
}

.gmvc-faq__layout--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 64px;
}

.gmvc-faq__layout--split .gmvc-faq__aside {
	position: sticky;
	top: 40px;
}

.gmvc-faq__layout--split .gmvc-head {
	align-items: flex-start;
	margin-bottom: 28px;
	text-align: left;
}

.gmvc-faq__layout--split .gmvc-subtitle {
	max-width: 44ch;
}

.gmvc-faq__layout--split .gmvc-faq__actions {
	justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.gmvc-faq__acc {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 14px;
}

.gmvc-faq__item {
	border: 1px solid var(--gmvc-border);
	border-radius: var(--gmvc-radius);
	background: var(--gmvc-surface);
	overflow: hidden;
	transition: border-color 400ms var(--gmvc-ease), background-color 400ms var(--gmvc-ease);
}

.gmvc-faq__item:hover {
	border-color: var(--gmvc-border-strong);
}

.gmvc-faq__item.is-open {
	border-color: var(--gmvc-border-strong);
	background: var(--gmvc-surface-2);
}

.gmvc-faq__trigger {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 20px;
	padding: 22px 26px;
	text-align: left;
}

.gmvc-faq__question {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--gmvc-text);
	font-family: var(--gmvc-font-display);
	font-size: clamp(16px, 1.5vw, 19px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.32;
	text-wrap: pretty;
	transition: color 320ms var(--gmvc-ease);
}

/* Indicador à esquerda: inverte a ordem visual sem mudar o DOM. */
.gmvc-faq__acc--ind-left .gmvc-faq__trigger {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Indicador (CSS puro, sem SVG e sem icon font)
   -------------------------------------------------------------------------- */

.gmvc-faq__ind {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: var(--gmvc-faq-ind-size, 22px);
	height: var(--gmvc-faq-ind-size, 22px);
	color: var(--gmvc-text-muted);
	transition: transform 420ms var(--gmvc-ease), color 320ms var(--gmvc-ease);
}

.gmvc-faq__item:hover .gmvc-faq__ind {
	color: var(--gmvc-text);
}

.gmvc-faq__item.is-open .gmvc-faq__ind {
	color: var(--gmvc-accent);
}

/* Mais (+) → gira 45° e vira um "×" quando aberto. */
.gmvc-faq__acc--plus .gmvc-faq__ind::before,
.gmvc-faq__acc--plus .gmvc-faq__ind::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.gmvc-faq__acc--plus .gmvc-faq__ind::before {
	width: 100%;
	height: var(--gmvc-faq-ind-thickness, 2px);
}

.gmvc-faq__acc--plus .gmvc-faq__ind::after {
	width: var(--gmvc-faq-ind-thickness, 2px);
	height: 100%;
}

.gmvc-faq__acc--plus .gmvc-faq__item.is-open .gmvc-faq__ind {
	transform: rotate(45deg);
}

/* Chevron → aponta para baixo e gira 180° quando aberto. */
.gmvc-faq__acc--chevron .gmvc-faq__ind::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 58%;
	height: 58%;
	border-right: var(--gmvc-faq-ind-thickness, 2px) solid currentColor;
	border-bottom: var(--gmvc-faq-ind-thickness, 2px) solid currentColor;
	border-radius: 2px;
	transform: translate(-50%, -70%) rotate(45deg);
}

.gmvc-faq__acc--chevron .gmvc-faq__item.is-open .gmvc-faq__ind {
	transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Painel (contrato do runtime: o JS controla o max-height inline)
   -------------------------------------------------------------------------- */

.gmvc-faq .gmvc-acc__panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 480ms var(--gmvc-ease);
}

.gmvc-faq__panel-inner {
	padding: 0 26px 24px;
}

.gmvc-faq__acc--ind-left .gmvc-faq__panel-inner {
	padding-left: calc(26px + var(--gmvc-faq-ind-size, 22px) + 20px);
}

.gmvc-faq__answer {
	max-width: 74ch;
	color: var(--gmvc-text-muted);
	font-size: 15px;
	line-height: 1.65;
	text-wrap: pretty;
}

.gmvc-faq__answer p + p,
.gmvc-faq__answer ul,
.gmvc-faq__answer ol {
	margin-top: 12px;
}

.gmvc-faq__answer li {
	position: relative;
	padding-left: 18px;
}

.gmvc-faq__answer li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gmvc-accent);
}

.gmvc-faq__answer strong {
	color: var(--gmvc-text-soft);
	font-weight: 600;
}

.gmvc-faq__answer a {
	color: var(--gmvc-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 240ms var(--gmvc-ease);
}

.gmvc-faq__answer a:hover {
	opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Botão
   -------------------------------------------------------------------------- */

.gmvc-faq__actions {
	justify-content: center;
	margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.gmvc-faq__layout--split {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.gmvc-faq__layout--split .gmvc-faq__aside {
		position: relative;
		top: auto;
	}

	.gmvc-faq__layout--split .gmvc-head {
		margin-bottom: 40px;
	}

	.gmvc-faq__layout--split .gmvc-faq__actions {
		justify-content: center;
	}

	.gmvc-faq__trigger {
		gap: 16px;
		padding: 20px 22px;
	}

	.gmvc-faq__panel-inner {
		padding: 0 22px 22px;
	}

	.gmvc-faq__acc--ind-left .gmvc-faq__panel-inner {
		padding-left: calc(22px + var(--gmvc-faq-ind-size, 22px) + 16px);
	}
}

@media (max-width: 767px) {
	.gmvc-faq__acc {
		gap: 10px;
	}

	.gmvc-faq__trigger {
		gap: 12px;
		padding: 18px 16px;
	}

	.gmvc-faq__question {
		font-size: 16px;
	}

	.gmvc-faq__panel-inner {
		padding: 0 16px 18px;
	}

	.gmvc-faq__acc--ind-left .gmvc-faq__panel-inner {
		padding-left: 16px;
	}

	.gmvc-faq__answer {
		font-size: 14px;
	}

	.gmvc-faq__actions {
		margin-top: 28px;
	}

	.gmvc-faq__actions .gmvc-btn {
		width: 100%;
	}
}
