/*!
 * FAQ accordion — front-end styles for the markup produced by
 * TS_FAQ_Helper::render_accordion(). Shipped and enqueued by the plugin itself
 * (wherever the accordion renders) so every consumer — the theme's Free Tool
 * template, the Services CPT, and any future caller — gets the same styled,
 * working accordion without providing its own CSS/JS.
 *
 * Self-contained: consumes the theme's design tokens (--ts-*, --fp-*) with hard
 * fallbacks, and scopes every rule under `.faq-section` (the accordion's own
 * wrapper) so nothing leaks into the rest of the page.
 */

.faq-section {
	padding: 72px var(--fp-gutter, 24px);
	background: var(--ts-ink-50, #F9FAFB);
}

.faq-section .faq-inner {
	max-width: 720px;
	margin: 0 auto;
}

.faq-section .section-head {
	max-width: 100%;
	margin: 0 0 8px;
}

.faq-section .ts-eyebrow {
	display: inline-block;
	font-family: var(--fp-font-body, 'Inter', system-ui, sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ts-coral-500, #D6412C);
	margin-bottom: 12px;
}

.faq-section .section-head h2 {
	font-family: var(--fp-font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.15;
	color: var(--ts-ink-900, #111827);
	margin: 0;
}

.faq-section .faq-list {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ts-ink-200, #E5E7EB);
	border-radius: var(--fp-r-card, 12px);
	overflow: hidden;
	background: var(--ts-white, #fff);
	margin-top: 40px;
}

.faq-section .faq-item {
	border-bottom: 1px solid var(--ts-ink-200, #E5E7EB);
}

.faq-section .faq-item:last-child {
	border-bottom: 0;
}

.faq-section .faq-q {
	width: 100%;
	background: none;
	border: 0;
	text-align: left;
	padding: 20px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	font-family: inherit;
	transition: background 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-section .faq-q:hover {
	background: var(--ts-ink-50, #F9FAFB);
}

.faq-section .faq-q[aria-expanded="true"] {
	background: var(--ts-plum-50, #F6F3F6);
}

.faq-section .faq-q > span {
	font-family: var(--fp-font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--ts-ink-900, #111827);
	line-height: 1.35;
	text-align: left;
}

.faq-section .faq-q svg {
	width: 18px;
	height: 18px;
	color: var(--ts-plum-600, #2A1E30);
	flex-shrink: 0;
	transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-section .faq-q[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.faq-section .faq-a {
	display: none;
	padding: 0 22px 20px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--ts-ink-700, #374151);
}

.faq-section .faq-a.open {
	display: block;
}

.faq-section .faq-a p {
	margin: 0 0 12px;
}

.faq-section .faq-a p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.faq-section .faq-q,
	.faq-section .faq-q svg {
		transition: none;
	}
}
