/* Systical — FAQ Accordion */

.sys-fq {
	--fq-accent: #9afd0d;
	--fq-max: 1320px;
	--fq-left: 38%;
	--fq-col-gap: 80px;
	--fq-img: 190px;
	--fq-speed: 320ms;
	--fq-sticky-top: 60px;

	--fq-item-bd: #e4e5e7;
	--fq-item-bd-open: #0b0b0b;
	--fq-item-radius: 14px;
	--fq-pad: 22px 26px;

	--fq-icon: #6e7176;
	--fq-icon-size: 22px;

	--fq-btn-fg: #0b0b0b;
	--fq-btn-bg: #9afd0d;
	--fq-btn-fg-hover: #fff;
	--fq-btn-bg-hover: #0b0b0b;

	position: relative;
	padding: 100px 0 110px;
	background: #fff;
}

.sys-fq__inner {
	display: grid;
	grid-template-columns: var(--fq-left) minmax(0, 1fr);
	gap: var(--fq-col-gap);
	align-items: start;
	max-width: var(--fq-max);
	margin: 0 auto;
	padding: 0 24px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Grid items default to min-width:auto, which lets a long question set the
   column floor and push the page sideways. */
.sys-fq__left,
.sys-fq__right {
	min-width: 0;
}

/* ---------- left column ---------- */

.sys-fq--sticky .sys-fq__left {
	position: sticky;
	top: var(--fq-sticky-top, 60px);
	align-self: start;
}

.sys-fq img.sys-fq__img {
	display: block;
	width: var(--fq-img);
	height: auto;
	max-width: 100%;
	margin-bottom: 44px;
}

.sys-fq__lead {
	max-width: 18ch;
	margin: 0 0 34px;
	color: #0b0b0b;
	font-size: clamp(28px, 3.4vw, 48px);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.sys-fq__btn {
	display: inline-block;
	padding: 16px 28px;
	border-radius: 40px;
	background: var(--fq-btn-bg);
	color: var(--fq-btn-fg);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.sys-fq__btn:hover,
.sys-fq__btn:focus {
	background: var(--fq-btn-bg-hover);
	color: var(--fq-btn-fg-hover);
}

.sys-fq__btn:focus-visible {
	outline: 2px solid var(--fq-accent);
	outline-offset: 3px;
}

/* ---------- right column ---------- */

.sys-fq__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	padding: 8px 18px;
	border-radius: 40px;
	background: #0b0b0b;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.sys-fq__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fq-accent);
}

.sys-fq__title {
	margin: 0 0 40px;
	font-size: clamp(32.5px, 4.2vw, 57.5px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #0b0b0b;
}

/* ---------- accordion ---------- */

.sys-fq__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sys-fq__item {
	border: 1px solid var(--fq-item-bd);
	border-radius: var(--fq-item-radius);
	background: #fff;
	transition: border-color 0.25s ease;
}

.sys-fq__item.is-open {
	border-color: var(--fq-item-bd-open);
}

.sys-fq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: var(--fq-pad);
	border: 0;
	border-radius: var(--fq-item-radius);
	background: none;
	color: #0b0b0b;
	text-align: left;
	/* Hello Elementor's reset sets `white-space: nowrap` on every button, which
	   the question inherits — it then refuses to wrap and runs off the phone. */
	white-space: normal;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* Restated because Hello Elementor's reset paints `button:hover` pink and
   would win over the base rule for anything left unset here. */
.sys-fq__q:hover,
.sys-fq__q:focus {
	background: none;
	color: #0b0b0b;
}

.sys-fq__q:focus-visible {
	outline: 2px solid var(--fq-accent);
	outline-offset: -2px;
}

.sys-fq__q-text {
	/* A flex item will not shrink past its content without this, so a long
	   question pushes the whole row wider than the phone. */
	min-width: 0;
	flex: 1 1 auto;
	white-space: normal;
	overflow-wrap: anywhere;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.sys-fq__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: var(--fq-icon-size);
	height: var(--fq-icon-size);
	color: var(--fq-icon);
	transition: transform var(--fq-speed) cubic-bezier(0.22, 1, 0.36, 1);
}

.sys-fq__item.is-open .sys-fq__icon {
	transform: rotate(180deg);
}

.sys-fq__icon svg {
	width: 100%;
	height: 100%;
}

/* Animating grid-template-rows from 0fr lets the panel travel to whatever
   height the answer actually needs — no max-height guess to outgrow. */
.sys-fq__a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--fq-speed) cubic-bezier(0.22, 1, 0.36, 1);
}

.sys-fq__item.is-open .sys-fq__a {
	grid-template-rows: 1fr;
}

.sys-fq__a-clip {
	overflow: hidden;
}

.sys-fq__a-in {
	margin: 0;
	padding: 0 26px 24px;
	color: #0b0b0b;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.62;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.sys-fq {
		--fq-col-gap: 44px;
		--fq-img: 150px;
		padding: 80px 0 88px;
	}

	.sys-fq__inner {
		grid-template-columns: 1fr;
	}

	/* Stacked, there is nothing for it to stick beside. */
	.sys-fq--sticky .sys-fq__left {
		position: static;
	}

	.sys-fq img.sys-fq__img {
		margin-bottom: 28px;
	}

	.sys-fq__lead {
		max-width: none;
		margin-bottom: 26px;
	}
}

@media (max-width: 767px) {
	.sys-fq {
		--fq-img: 120px;
		--fq-pad: 18px 18px;
		--fq-icon-size: 20px;
		padding: 64px 0 70px;
	}

	.sys-fq__inner {
		gap: 34px;
		padding: 0 18px;
	}

	.sys-fq__title {
		margin-bottom: 26px;
	}

	.sys-fq__q-text {
		font-size: 18px;
	}

	.sys-fq__a-in {
		padding: 0 18px 18px;
		font-size: 15px;
	}

	.sys-fq__btn {
		display: block;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sys-fq__a,
	.sys-fq__icon,
	.sys-fq__btn {
		transition: none;
	}
}
