/**
 * FAQ Accordion – frontend styles
 */

.oc-faq {
	--oc-faq-accent: #6b7a67;
	--oc-faq-text: #1a1a1a;
	--oc-faq-muted: #4a4a4a;
	--oc-faq-line: #6b7a67;
	position: relative;
	isolation: isolate;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	background-color: #f4f2ed;
	color: var(--oc-faq-text);
	padding: 72px 0;
}

.oc-faq *,
.oc-faq *::before,
.oc-faq *::after {
	box-sizing: border-box;
}

.oc-faq__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	pointer-events: none;
}

.oc-faq__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	padding: 0;
}

.oc-faq__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin: 0 auto 40px;
	max-width: 36em;
	padding: 0;
	background: transparent;
}

.oc-faq__heading {
	margin: 0 0 14px;
	padding: 0;
	background: transparent;
	color: var(--oc-faq-text);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.oc-faq__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 160px;
	margin: 0 auto;
	background: transparent;
}

.oc-faq__divider-line {
	flex: 1 1 auto;
	height: 1px;
	background: var(--oc-faq-accent);
	opacity: 0.7;
}

.oc-faq__diamond {
	display: inline-block;
	color: var(--oc-faq-accent);
	font-size: 9px;
	line-height: 1;
}

.oc-faq__intro {
	margin: 16px 0 0;
	color: var(--oc-faq-muted);
	font-size: 15px;
	line-height: 1.55;
	background: transparent;
}

.oc-faq__list {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.oc-faq__item {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

/* Single line between items only — no top line on the first item */
.oc-faq__item + .oc-faq__item {
	border-top: 1px solid var(--oc-faq-line);
}

.oc-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 22px 0;
	background: transparent !important;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.oc-faq__question:hover,
.oc-faq__question:focus,
.oc-faq__question:active {
	background: transparent !important;
}

.oc-faq__question:focus {
	outline: none;
}

.oc-faq__question:focus-visible {
	outline: 2px solid var(--oc-faq-accent);
	outline-offset: 4px;
}

.oc-faq__question-text {
	flex: 1 1 auto;
	color: var(--oc-faq-text);
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	font-weight: 500;
	line-height: 1.35;
	background: transparent;
}

.oc-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--oc-faq-text);
	background: transparent;
}

.oc-faq__icon::before,
.oc-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.oc-faq__icon::before {
	width: 14px;
	height: 1.5px;
}

.oc-faq__icon::after {
	width: 1.5px;
	height: 14px;
}

.oc-faq__item.is-open .oc-faq__icon::after {
	transform: translate(-50%, -50%) scaleY(0);
	opacity: 0;
}

.oc-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
	background: transparent;
}

.oc-faq__item.is-open .oc-faq__answer {
	grid-template-rows: 1fr;
}

.oc-faq__answer-inner {
	overflow: hidden;
	min-height: 0;
	background: transparent;
}

.oc-faq__answer-text {
	margin: 0;
	padding: 0 0 22px;
	color: var(--oc-faq-muted);
	font-size: 15px;
	line-height: 1.6;
	background: transparent;
}

@media (max-width: 640px) {
	.oc-faq {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.oc-faq__question {
		padding: 18px 0;
		gap: 16px;
	}

	.oc-faq__answer-text {
		padding-bottom: 18px;
	}
}
