/* De Alva — FAQ topic page (accordion). v1.0.0
   Tokens: --navy, --blue, --red, --ink, --muted, --line, --paper, --white, --maxw, --sans
*/

.dealva-faq {
	background: var(--white);
	padding: 56px 0 72px;
}

.dealva-faq__inner {
	max-width: 880px;
	margin: 0 auto;
	padding: 0 24px;
}

.dealva-faq__intro {
	font-family: var(--sans);
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--muted);
	text-align: center;
	margin: 0 auto 44px;
	max-width: 720px;
}

/* ── Cross-topic navigation (pills) ──────────────────────── */
.dealva-faq-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 40px;
}

.dealva-faq-nav__btn {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--navy);
	font-family: var(--sans);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.dealva-faq-nav__btn:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.dealva-faq-nav__btn.is-active {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
	cursor: default;
}

/* ── Accordion list ──────────────────────────────────────── */
.dealva-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dealva-faq__item {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dealva-faq__item:hover {
	border-color: #d4d8e0;
}

/* Open state highlight (driven by aria-expanded on the trigger). */
.dealva-faq__item:has(.dealva-faq__trigger[aria-expanded="true"]) {
	border-color: var(--blue);
	box-shadow: 0 6px 20px rgba(21, 37, 76, 0.08);
}

/* ── Question / trigger ──────────────────────────────────── */
.dealva-faq__q {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

.dealva-faq__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 24px;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	margin: 0;
	text-align: left;
	cursor: pointer;
	font-family: var(--sans);
	transition: background 0.18s ease, border-color 0.18s ease;
}

.dealva-faq__trigger:hover {
	background: var(--paper);
}

.dealva-faq__trigger[aria-expanded="true"] {
	background: var(--paper);
	border-left-color: var(--red);
}

.dealva-faq__trigger:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: -2px;
}

.dealva-faq__q-text {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--navy);
	line-height: 1.4;
}

.dealva-faq__trigger[aria-expanded="true"] .dealva-faq__q-text {
	color: var(--blue);
}

/* ── Plus / minus icon ───────────────────────────────────── */
.dealva-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
}

.dealva-faq__icon::before,
.dealva-faq__icon::after {
	content: "";
	position: absolute;
	background: var(--red);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.dealva-faq__icon::before { /* horizontal bar */
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	transform: translateY(-50%);
}

.dealva-faq__icon::after { /* vertical bar — hidden when open */
	left: 50%;
	top: 0;
	width: 2px;
	height: 100%;
	transform: translateX(-50%);
}

.dealva-faq__trigger[aria-expanded="true"] .dealva-faq__icon::after {
	transform: translateX(-50%) scaleY(0);
	opacity: 0;
}

/* ── Answer panel ────────────────────────────────────────── */
.dealva-faq__panel {
	border-top: 1px solid var(--line);
}

.dealva-faq__answer {
	padding: 20px 24px 24px;
}

.dealva-faq__answer p {
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--ink);
	margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
	.dealva-faq {
		padding: 40px 0 56px;
	}
	.dealva-faq__inner {
		padding: 0 16px;
	}
	.dealva-faq__intro {
		font-size: 1.0625rem;
		margin-bottom: 32px;
	}
	.dealva-faq__trigger {
		padding: 16px 18px;
		gap: 14px;
	}
	.dealva-faq__q-text {
		font-size: 1rem;
	}
	.dealva-faq__answer {
		padding: 16px 18px 20px;
	}
}
