/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.eit-faq {
	padding: clamp(52px, 7vw, 100px) 0;
	background: linear-gradient(180deg, #e9eef7 0%, #eef1f9 100%);
}

.eit-faq__inner {
	max-width: var(--eit-wrap);
	margin-inline: auto;
	padding-inline: clamp(18px, 3vw, 30px);
}

.eit-faq__title {
	margin: 0 0 clamp(26px, 3.5vw, 44px);
	color: var(--eit-ink, #15181f);
	font-size: clamp(26px, 3.2vw, 44px);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -.02em;
}

.eit-faq__cols {
	display: grid;
	gap: clamp(14px, 1.6vw, 24px);
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 900px) {
	.eit-faq__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.eit-faq__col {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 1.4vw, 20px);
}

/* ---------- Item ---------- */

.eit-faq__item {
	border-radius: 10px;
	background: rgba(255, 255, 255, .55);
	border: 1px solid rgba(255, 255, 255, .8);
	transition: background-color .5s ease, box-shadow .5s ease;
}

.eit-faq__item:hover { background: rgba(255, 255, 255, .78); }

.eit-faq__item[open]:not(.is-closing) {
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 6px 22px rgba(16, 24, 40, .07);
}

/* ---------- Question ---------- */

.eit-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 28px);
	cursor: pointer;
	list-style: none;           /* Firefox */
	-webkit-tap-highlight-color: transparent;
}

/* Safari/Chrome draw their own triangle without this. */
.eit-faq__q::-webkit-details-marker { display: none; }

.eit-faq__q:focus-visible {
	outline: 2px solid var(--eit-accent, #3b4fe8);
	outline-offset: 2px;
	border-radius: 10px;
}

.eit-faq__text {
	transition: color .5s ease;
	color: var(--eit-ink, #15181f);
	font-size: clamp(15px, 1.25vw, 18px);
	font-weight: 500;
	line-height: 1.45;
}

/* Open-state styles skip an item that is sliding shut (faq.js sets
   `is-closing` for the 0.5s it takes), so the icon and colour turn back as
   soon as it is clicked. */

/* ---------- Plus / minus ----------
   Drawn from two bars rather than swapped glyphs, so the vertical stroke can
   rotate away and the icon never jumps size between states. */

.eit-faq__icon {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
}

.eit-faq__icon::before,
.eit-faq__icon::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 1.5px;
	background: var(--eit-ink, #15181f);
	border-radius: 2px;
	transform: translateY(-50%);
	transition: transform .5s ease, opacity .5s ease, background-color .5s ease;
}

.eit-faq__icon::after { transform: translateY(-50%) rotate(90deg); }

.eit-faq__item[open]:not(.is-closing) .eit-faq__icon::after {
	transform: translateY(-50%) rotate(0deg);
	opacity: 0;
}

.eit-faq__item[open]:not(.is-closing) .eit-faq__icon::before { background: var(--eit-accent, #3b4fe8); }
.eit-faq__item[open]:not(.is-closing) .eit-faq__text { color: var(--eit-accent, #3b4fe8); }

/* ---------- Answer ---------- */

.eit-faq__a {
	padding: 0 clamp(18px, 2vw, 28px) clamp(18px, 2vw, 24px);
}

.eit-faq__a p {
	margin: 0;
	max-width: 62ch;
	color: var(--eit-body, #3d4453);
	font-size: clamp(14px, 1.1vw, 16px);
	line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
	.eit-faq__item,
	.eit-faq__text,
	.eit-faq__icon::before,
	.eit-faq__icon::after { transition: none; }
}
