/*
 * FAQ page (template-faqs.php, owner request 2026-11-02). Same tokens, arcs and cards as
 * the other redesigned pages.
 */

.wx-faq {
	--wx-dark: #131313;
	--wx-grey: #575757;
	--wx-cream: #fcf6ef;
	--wx-paper: #fcf6ef;
	--wx-edge: #ece4d8;
	--wx-pad: max(40px, calc((100% - 1400px) / 2));
	color: #404040;
	font-family: "Manrope", sans-serif;
}

.wx-faq h1,
.wx-faq h2,
.wx-faq p {
	margin: 0;
}

/* ---------- hero ---------- */

.wx-faq-hero {
	border-bottom: 1px solid var(--wx-edge);
	background:
		radial-gradient(circle at 100% 0, transparent 389px, rgba(160, 145, 125, .2) 390px, transparent 391.5px, transparent 479px, rgba(160, 145, 125, .13) 480px, transparent 481.5px, transparent 579px, rgba(160, 145, 125, .08) 580px, transparent 581.5px),
		radial-gradient(55% 90% at 88% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 60%),
		linear-gradient(170deg, #fffbf6 0%, #f8f1e7 60%, #f1e8dc 100%);
}

.wx-faq-hero__inner {
	padding: 150px var(--wx-pad) 80px;
}

.wx-faq-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px !important;
	color: var(--wx-grey);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.wx-faq-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.wx-faq-hero h1 {
	color: var(--wx-dark);
	font-weight: 700;
	line-height: 1.12;
}

.wx-faq-lead {
	max-width: 720px;
	margin-top: 20px !important;
	color: var(--wx-grey);
	font-size: 19px;
	line-height: 1.55;
}

/* the search box, with a magnifier */
.wx-faq-search {
	position: relative;
	display: block;
	max-width: 620px;
	margin-top: 36px;
}

.wx-faq-search::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 24px;
	width: 18px;
	height: 18px;
	background: var(--wx-grey);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 3a7.5 7.5 0 0 1 5.96 12.05l4.25 4.24-1.42 1.42-4.24-4.25A7.5 7.5 0 1 1 10.5 3zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 3a7.5 7.5 0 0 1 5.96 12.05l4.25 4.24-1.42 1.42-4.24-4.25A7.5 7.5 0 1 1 10.5 3zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11z'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: translateY(-50%);
	pointer-events: none;
}

/* !important: the theme's global input style (bottom line only, no padding) would win */
.wx-faq .wx-faq-search input {
	width: 100%;
	height: 62px;
	padding: 0 24px 0 56px !important;
	border: 1px solid var(--wx-edge) !important;
	border-radius: 40px !important;
	background: #fff !important;
	color: var(--wx-dark);
	font-family: inherit;
	font-size: 17px;
	box-shadow: 0 30px 60px -40px rgba(70, 50, 25, .16);
	outline: none;
	transition: border-color .25s ease;
}

.wx-faq .wx-faq-search input:focus {
	border-color: var(--wx-dark) !important;
}

.wx-faq-none {
	margin-top: 16px !important;
	color: var(--wx-grey);
	font-size: 15px;
}

.wx-faq-none a {
	color: var(--wx-dark) !important;
	font-size: inherit !important;
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- body ---------- */

.wx-faq-body {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	align-items: start;
	gap: 80px;
	padding: 90px var(--wx-pad) 110px;
}

.wx-faq-side {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 18px;
}

.wx-faq-nav {
	padding: 22px 16px 14px;
	border: 1px solid var(--wx-edge);
	border-radius: 24px;
	background: #fff;
}

.wx-faq-nav__label {
	margin: 0 10px 10px !important;
	color: #7d7a75;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.wx-faq-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 12px;
	border-radius: 14px;
	color: var(--wx-grey) !important;
	font-size: 15px !important;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}

.wx-faq-nav a em {
	display: grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	border-radius: 20px;
	background: var(--wx-paper);
	color: var(--wx-dark);
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	transition: background-color .25s ease, color .25s ease;
}

.wx-faq-nav a:hover,
.wx-faq-nav a.is-active {
	background: var(--wx-dark);
	color: var(--wx-cream) !important;
}

.wx-faq-nav a:hover em,
.wx-faq-nav a.is-active em {
	background: rgba(252, 246, 239, .15);
	color: var(--wx-cream);
}

.wx-faq-help {
	padding: 26px 24px;
	border-radius: 24px;
	background:
		radial-gradient(circle at 100% 0, transparent 119px, rgba(252, 246, 239, .1) 120px, transparent 121.5px, transparent 179px, rgba(252, 246, 239, .06) 180px, transparent 181.5px),
		var(--wx-dark);
}

.wx-faq-help__title {
	color: var(--wx-cream);
	font-size: 20px;
	font-weight: 600;
}

.wx-faq-help__text {
	margin: 8px 0 18px !important;
	color: #b9b4ad;
	font-size: 15px;
	line-height: 1.55;
}

.wx-faq-help__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 22px;
	border-radius: 30px;
	background: var(--wx-cream);
	color: var(--wx-dark) !important;
	font-size: 16px !important;
	text-decoration: none;
}

.wx-faq-help__btn::after {
	content: "";
	width: 12px;
	height: 11px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M13.26 1.34a1 1 0 0 0-.97-1.03L3.3 0a1 1 0 0 0-.07 2l8 .27-.27 8a1 1 0 0 0 2 .07l.3-9ZM1.37 12.85 12.94 2.04 11.58.57 0 11.39Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M13.26 1.34a1 1 0 0 0-.97-1.03L3.3 0a1 1 0 0 0-.07 2l8 .27-.27 8a1 1 0 0 0 2 .07l.3-9ZM1.37 12.85 12.94 2.04 11.58.57 0 11.39Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}

.wx-faq-help__btn:hover::after {
	transform: translate(2px, -2px);
}

/* ---------- topics and questions ---------- */

.wx-faq-group {
	scroll-margin-top: 110px;
}

.wx-faq-group + .wx-faq-group {
	margin-top: 70px;
}

.wx-faq-group__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--wx-edge);
}

.wx-faq .wx-faq-group__head h2 {
	color: var(--wx-dark);
	font-size: 32px !important;
	font-weight: 600;
	line-height: 1.2;
}

.wx-faq-group__head p {
	color: #7d7a75;
	font-size: 15px;
	text-align: right;
}

.wx-faq-list {
	display: grid;
	gap: 12px;
}

.wx-faq-item {
	border: 1px solid var(--wx-edge);
	border-radius: 20px;
	background: #fff;
	transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.wx-faq-item[open] {
	border-color: var(--wx-dark);
	box-shadow: 0 30px 60px -45px rgba(70, 50, 25, .16);
}

.wx-faq-item summary {
	position: relative;
	padding: 22px 70px 22px 26px;
	color: var(--wx-dark);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.wx-faq-item summary::-webkit-details-marker {
	display: none;
}

/* the plus in a circle turns into a cross */
.wx-faq-item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 34px;
	height: 34px;
	border: 1px solid var(--wx-edge);
	border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
	transform: translateY(-50%);
	transition: transform .45s cubic-bezier(.22, 1, .36, 1), background-color .3s ease, color .3s ease, border-color .3s ease;
}

.wx-faq-item summary:hover::after {
	border-color: var(--wx-dark);
}

.wx-faq-item[open] summary::after {
	border-color: var(--wx-dark);
	background-color: var(--wx-dark);
	color: var(--wx-cream);
	transform: translateY(-50%) rotate(45deg);
}

.wx-faq-item.is-closing summary::after {
	border-color: var(--wx-edge);
	background-color: transparent;
	color: var(--wx-dark);
	transform: translateY(-50%);
}

.wx-faq-item__answer {
	padding: 0 70px 24px 26px;
}

.wx-faq-item__answer p {
	color: var(--wx-grey);
	font-size: 16px;
	line-height: 1.7;
}

.wx-faq-item__answer a {
	color: var(--wx-dark) !important;
	font-size: inherit !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* search: hidden questions and topics, and the matching words */
.wx-faq-item[hidden],
.wx-faq-group[hidden] {
	display: none;
}

.wx-faq mark {
	padding: 0 2px;
	border-radius: 4px;
	background: #f1e3c9;
	color: inherit;
}

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

@media (max-width: 1024px) {
	.wx-faq-body {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.wx-faq-side {
		position: static;
	}

	.wx-faq-nav {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		padding: 16px;
	}

	.wx-faq-nav__label {
		width: 100%;
	}

	.wx-faq-help {
		display: none;
	}
}

@media (max-width: 767px) {
	.wx-faq {
		--wx-pad: 20px;
	}

	.wx-faq-hero__inner {
		padding-top: 110px;
		padding-bottom: 50px;
	}

	.wx-faq-lead {
		font-size: 16px;
	}

	.wx-faq .wx-faq-search input {
		height: 54px;
		font-size: 16px;
	}

	.wx-faq-body {
		padding-top: 50px;
		padding-bottom: 70px;
	}

	.wx-faq-nav {
		flex-wrap: nowrap;
		margin-right: -20px;
		overflow-x: auto;
		border-right: 0;
		border-radius: 20px 0 0 20px;
		scrollbar-width: none;
	}

	.wx-faq-nav__label {
		display: none;
	}

	.wx-faq-nav a {
		flex: none;
	}

	.wx-faq-group__head {
		flex-direction: column;
		gap: 6px;
	}

	.wx-faq-group__head p {
		text-align: left;
	}

	.wx-faq .wx-faq-group__head h2 {
		font-size: 25px !important;
	}

	.wx-faq-item summary {
		padding: 18px 60px 18px 20px;
		font-size: 16px;
	}

	.wx-faq-item summary::after {
		right: 16px;
		width: 30px;
		height: 30px;
	}

	.wx-faq-item__answer {
		padding: 0 20px 20px;
	}
}
