/* ==========================================================================
   VE FAQ Section — faq.css
   Section 06: white sheet (like About), sticky intro column on the left,
   accordion list on the right. Scoped to .ve-faq.

   Without JavaScript every answer is visible. faq.js turns each question
   into a button and hides the answers until opened.
   ========================================================================== */

/* ---------- Section sheet ---------- */
.ve-page .e-con.ve-faq {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
	row-gap: var(--ve-space-7);
	align-items: start;
	width: 100%;
	max-width: none;
	margin: calc(-1 * clamp(1.5rem, 1rem + 2vw, 3rem)) 0 0;
	padding: var(--ve-section-y) max(var(--ve-gutter), calc((100% - var(--ve-max)) / 2));
	background-color: var(--ve-surface);
	border-radius: clamp(24px, 1rem + 2.5vw, 56px) clamp(24px, 1rem + 2.5vw, 56px) 0 0;
	box-shadow: 0 -1px 0 var(--ve-line), 0 -24px 60px -40px rgba(15, 22, 38, 0.25);
}
.ve-page .ve-faq > .elementor-element {
	width: auto;
	max-width: none;
	min-width: 0;
	margin: 0;
}

/* ---------- Intro column ---------- */
.ve-page .e-con.ve-faq__aside {
	grid-column: 1 / span 5;
	position: sticky;
	top: calc(var(--ve-space-7) + var(--wp-admin--admin-bar--height, 0px));
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ve-space-5);
	padding: 0;
	margin: 0;
}
.ve-page .ve-faq__aside > .elementor-element { width: 100%; max-width: none; margin: 0; }
.ve-page .ve-faq__aside > .elementor-widget-button { width: auto; }
.ve-page .ve-faq__eyebrow p::before,
.ve-page .ve-faq__eyebrow .elementor-heading-title::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 1.5px;
	margin-right: 0.75em;
	vertical-align: middle;
	background: var(--ve-ink);
}
.ve-page .ve-faq__title .elementor-heading-title {
	font-size: var(--ve-fs-h2);
	line-height: 1;
	margin: 0;
	text-wrap: balance;
}
.ve-page .ve-faq__lede p {
	margin: 0;
	max-width: 38ch;
	font-size: var(--ve-fs-lede);
	line-height: 1.6;
	color: var(--ve-ink-soft);
}

/* ---------- List ---------- */
.ve-page .e-con.ve-faq__list {
	grid-column: 7 / -1;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--ve-line);
}
.ve-page .e-con.ve-faq__item {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	padding: 0;
	margin: 0;
	border-bottom: 1px solid var(--ve-line);
}
.ve-page .ve-faq__item > .elementor-element { width: 100%; max-width: none; margin: 0; }

/* Question */
.ve-page .ve-faq__q .elementor-heading-title {
	margin: 0;
	font-family: var(--ve-font-display);
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--ve-ink);
}
/* No-JS: question as plain heading with spacing */
.ve-page .ve-faq__q { padding: var(--ve-space-5) 0 var(--ve-space-2); }
.ve-page .ve-faq.is-ready .ve-faq__q { padding: 0; }

.ve-faq .ve-faq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ve-space-4);
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: var(--ve-space-5) 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: left;
	white-space: normal;
	cursor: pointer;
}
.ve-faq .ve-faq__btn:hover,
.ve-faq .ve-faq__btn:focus {
	background: transparent;
	color: inherit;
}
.ve-faq .ve-faq__btn:focus-visible {
	outline: 3px solid var(--ve-focus);
	outline-offset: 4px;
	border-radius: var(--ve-radius-s);
}
.ve-faq__icon {
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ve-line);
	border-radius: 50%;
	background: var(--ve-surface);
	transition: background-color var(--ve-dur) ease, border-color var(--ve-dur) ease, transform var(--ve-dur) var(--ve-ease);
}
.ve-faq__icon::before,
.ve-faq__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 1.75px;
	margin: -0.875px 0 0 -7px;
	border-radius: 2px;
	background: var(--ve-ink);
	transition: transform var(--ve-dur) var(--ve-ease);
}
.ve-faq__icon::after { transform: rotate(90deg); }
.ve-faq__btn:hover .ve-faq__icon { border-color: var(--ve-ink); }
.ve-faq__item.is-open .ve-faq__icon {
	background: var(--ve-accent);
	border-color: var(--ve-accent);
	transform: rotate(45deg);
}
.ve-faq__item.is-open .ve-faq__icon::before,
.ve-faq__item.is-open .ve-faq__icon::after { background: var(--ve-on-accent); }

/* Answer (height animates with the grid-rows technique) */
.ve-page .ve-faq__a p {
	margin: 0 0 0.9em;
	max-width: 60ch;
	font-size: var(--ve-fs-body);
	line-height: 1.7;
	color: var(--ve-ink-soft);
}
.ve-page .ve-faq__a p:last-child { margin-bottom: 0; }
.ve-page .ve-faq__a ul,
.ve-page .ve-faq__a ol { margin: 0 0 0.9em; padding-left: 1.2em; color: var(--ve-ink-soft); }
.ve-page .ve-faq__a a { color: var(--ve-accent-text); text-decoration: underline; text-underline-offset: 2px; }
.ve-page .ve-faq__a { padding-bottom: var(--ve-space-5); } /* no-JS spacing */

.ve-faq.is-ready .ve-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s var(--ve-ease), visibility 0s linear 0.45s;
	visibility: hidden;
}
.ve-faq.is-ready .ve-faq__panel-inner {
	min-height: 0;
	overflow: hidden;
}
.ve-faq.is-ready .ve-faq__a { padding-bottom: 0; }
.ve-faq.is-ready .ve-faq__panel-inner > :last-child { padding-bottom: var(--ve-space-5); }
.ve-faq.is-ready .ve-faq__item.is-open .ve-faq__panel {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 0.45s var(--ve-ease), visibility 0s linear 0s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ve-page .e-con.ve-faq__aside { grid-column: 1 / span 5; }
	.ve-page .e-con.ve-faq__list { grid-column: 6 / -1; }
}
@media (max-width: 900px) {
	.ve-page .e-con.ve-faq__aside { grid-column: 1 / -1; position: static; }
	.ve-page .e-con.ve-faq__list { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.ve-faq__icon { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.ve-faq.is-ready .ve-faq__panel,
	.ve-faq.is-ready .ve-faq__item.is-open .ve-faq__panel,
	.ve-faq__icon,
	.ve-faq__icon::before,
	.ve-faq__icon::after { transition: none; }
}
