/**
 * FAQs page — categorised expandable accordion
 */

.st-faqs {
	background: var(--st-bg, #faf8f5);
}

.st-faqs-hero {
	position: relative;
	min-height: min(48svh, 26rem);
	display: grid;
	place-items: end center;
	overflow: hidden;
	color: #fff;
	background: #1a1814;
}

.st-faqs-hero__media {
	position: absolute;
	inset: 0;
}

.st-faqs-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-faqs-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgb(20 18 16 / 0.35) 0%, rgb(20 18 16 / 0.22) 40%, rgb(20 18 16 / 0.8) 100%);
	pointer-events: none;
}

.st-faqs-hero__content {
	position: relative;
	z-index: 1;
	width: var(--st-container);
	margin-inline: auto;
	padding: calc(var(--st-header-height) + 3rem) 0 2.75rem;
}

.st-faqs-hero__eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.78);
}

.st-faqs-hero__title {
	margin: 0;
	max-width: 18ch;
	font-family: var(--st-font-display);
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: var(--st-heading-ls, -0.02em);
	color: #fff;
}

.st-faqs-hero__lead {
	margin: 0.95rem 0 0;
	max-width: 36rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgb(255 255 255 / 0.88);
}

/* Topic chips */
.st-faqs-nav {
	position: sticky;
	top: var(--st-header-height);
	z-index: 20;
	padding: 0.85rem 0;
	background: rgb(250 248 245 / 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--st-line);
}

.st-faqs-nav__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.st-faqs-nav__list::-webkit-scrollbar {
	display: none;
}

.st-faqs-nav__list button {
	appearance: none;
	flex: 0 0 auto;
	padding: 0.5rem 0.95rem;
	border: 1px solid var(--st-line-strong);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--st-ink);
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.st-faqs-nav__list button:hover,
.st-faqs-nav__list button.is-active {
	border-color: var(--st-accent);
	color: var(--st-accent);
	background: var(--st-accent-soft);
}

/* Layout */
.st-faqs-body {
	padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.st-faqs-layout {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 960px) {
	.st-faqs-layout {
		grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.4fr);
		align-items: start;
		gap: clamp(2.5rem, 5vw, 4.5rem);
	}
}

.st-faqs-aside {
	padding: 1.5rem 1.5rem 1.65rem;
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius-lg, 24px);
}

@media (min-width: 960px) {
	.st-faqs-aside {
		position: sticky;
		top: calc(var(--st-header-height) + 4.25rem);
	}
}

.st-faqs-aside__title {
	margin: 0.35rem 0 0;
	font-family: var(--st-font-display);
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 400;
	line-height: 1.2;
}

.st-faqs-aside__text {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--st-muted);
}

.st-faqs-aside__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	margin-top: 1.35rem;
}

.st-faqs-aside__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--st-accent);
	text-decoration: none;
}

.st-faqs-aside__link:hover {
	text-decoration: underline;
}

/* Groups + accordion */
.st-faqs-group {
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.st-faqs-group:last-child {
	margin-bottom: 0;
}

.st-faqs-group.is-hidden {
	display: none;
}

.st-faqs-group__head {
	margin-bottom: 1rem;
}

.st-faqs-group__head h2 {
	margin: 0;
	font-family: var(--st-font-display);
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	font-weight: 400;
	line-height: 1.2;
}

.st-faqs-group__head p {
	margin: 0.45rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--st-muted);
}

.st-faqs-list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.st-faq-item {
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius, 18px);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.st-faq-item[open] {
	border-color: rgb(139 36 50 / 0.28);
	box-shadow: 0 10px 28px rgb(20 18 16 / 0.05);
}

.st-faq-item summary {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 1.05rem 1.15rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--st-font-display);
	font-size: clamp(1.05rem, 2vw, 1.15rem);
	font-weight: 400;
	line-height: 1.35;
	color: var(--st-ink);
}

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

.st-faq-item__toggle {
	position: relative;
	width: 1.65rem;
	height: 1.65rem;
	flex-shrink: 0;
	border-radius: 999px;
	border: 1px solid var(--st-line-strong);
	background: var(--st-bg, #faf8f5);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.st-faq-item__toggle::before,
.st-faq-item__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.65rem;
	height: 1.5px;
	background: var(--st-ink);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.st-faq-item__toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.st-faq-item[open] .st-faq-item__toggle {
	background: var(--st-accent-soft);
	border-color: var(--st-accent);
}

.st-faq-item[open] .st-faq-item__toggle::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.st-faq-item__a {
	padding: 0 1.15rem 1.2rem;
	font-size: 0.975rem;
	line-height: 1.7;
	color: var(--st-muted);
}

.st-faq-item__a p {
	margin: 0;
	max-width: 42rem;
}

/* CTA — band colors in site-polish.css */
.st-faqs-cta {
	text-align: center;
}

.st-faqs-cta__inner {
	width: min(36rem, calc(100% - 2.5rem));
	margin-inline: auto;
}

.st-faqs-cta h2 {
	margin: 0;
	font-family: var(--st-font-display);
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 400;
}

.st-faqs-cta p {
	margin: 0.85rem 0 0;
	line-height: 1.6;
}

.st-faqs-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
