/* ===========================================================
   Voyamore Core — FAQ accordion
   Mockup ref: Voyamore Homepage.html · #faq section (lines 839-905)
   =========================================================== */

.vym-faq { font-family: var(--vym-font-ui); color: var(--vym-text); }

.vym-faq__list {
	max-width: 800px;
	margin: 0 auto;
}

/* ---------- Section head ---------- */
.vym-faq--head-centered .vym-section-head { text-align: center; justify-content: center; }
.vym-faq--head-centered .vym-section-head > div { margin: 0 auto; }

/* ---------- Item ---------- */
.vym-faq__item {
	background: var(--vym-surface);
	border: 1px solid var(--vym-border);
	border-radius: 12px;
	margin-bottom: 12px;
	overflow: hidden;
	position: relative;
	transition: border-color 0.35s var(--vym-ease);
}
.vym-faq__item:last-child { margin-bottom: 0; }

/* Left accent bar — slides in on open */
.vym-faq__item::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--vym-accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.4s var(--vym-ease);
}
.vym-faq__item.is-open {
	border-color: color-mix(in srgb, var(--vym-accent) 30%, transparent);
}
.vym-faq__item.is-open::before { transform: scaleY(1); }

/* ---------- Question button ---------- */
.vym-faq__q {
	width: 100%;
	text-align: left;
	padding: 22px 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--vym-text);
	background: transparent;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	letter-spacing: -0.005em;
}
.vym-faq__q:focus-visible {
	outline: 2px solid var(--vym-accent);
	outline-offset: -2px;
}
.vym-faq__q-text { flex: 1; }

/* Plus → X icon (pure CSS, no SVG) */
.vym-faq__icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	position: relative;
	transition: transform 0.4s var(--vym-ease);
}
.vym-faq__icon::before,
.vym-faq__icon::after {
	content: "";
	position: absolute;
	background: var(--vym-text);
	transition: background 0.25s var(--vym-ease);
}
.vym-faq__icon::before {
	left: 0; right: 0;
	top: 50%;
	height: 1.5px;
	transform: translateY(-50%);
}
.vym-faq__icon::after {
	top: 0; bottom: 0;
	left: 50%;
	width: 1.5px;
	transform: translateX(-50%);
}
.vym-faq__item.is-open .vym-faq__icon { transform: rotate(45deg); }
.vym-faq__item.is-open .vym-faq__icon::before,
.vym-faq__item.is-open .vym-faq__icon::after { background: var(--vym-accent); }

/* ---------- Answer panel ---------- */
.vym-faq__a {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.vym-faq__a-inner {
	padding: 0 28px 24px;
	color: var(--vym-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	max-width: 660px;
}
.vym-faq__a-inner p:first-child { margin-top: 0; }
.vym-faq__a-inner p:last-child  { margin-bottom: 0; }
.vym-faq__a-inner a { color: var(--vym-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.vym-faq__q { padding: 18px 20px; font-size: 15px; gap: 16px; }
	.vym-faq__a-inner { padding: 0 20px 20px; font-size: 14px; }
}
