/* ==========================================================================
   Galleria De Rings: FAQ (home page, below the customer testimonials)
   Simple: on white, a centred serif heading; below, a full-width list of
   questions divided by thin lines. Each has a thin circled plus on the
   right that turns into a minus when the answer is open; only one answer
   is open at a time.
   ========================================================================== */

.faq {
	--faq-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--faq-line: rgba(11, 19, 42, 0.1);

	padding: clamp(36px, 4vw, 64px) clamp(16px, 4vw, 64px);
	background: var(--g-white);
	interpolate-size: allow-keywords; /* lets an answer slide open to its height */
}

.faq__inner {
	max-width: 1140px;
	margin: 0 auto;
}

/* Centred heading */
.faq__intro {
	margin-bottom: clamp(20px, 2.6vw, 36px);
	text-align: center;
}

.faq__eyebrow {
	margin: 0 0 10px;
	color: var(--g-text);
	font-family: var(--g-font-body);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.faq__title {
	margin: 0;
	color: var(--g-navy);
	font-family: var(--g-font-heading);
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.faq__lead {
	max-width: 56ch;
	margin: 12px auto 0;
	color: var(--g-text);
	font-family: var(--g-font-body);
	font-size: 1rem;
	line-height: 1.7;
}

/* Questions */
.faq__item {
	border-bottom: 1px solid var(--faq-line);
}

.faq__item:last-child {
	border-bottom: 0;
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 48px;
	padding: 24px 0;
	color: var(--g-navy);
	cursor: pointer;
	list-style: none;
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__q:focus-visible {
	outline: 2px solid var(--g-navy);
	outline-offset: 4px;
}

.faq__q-text {
	font-family: var(--g-font-body);
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	font-weight: 500;
	line-height: 1.4;
}

/* Thin circled plus that becomes a minus */
.faq__icon {
	position: relative;
	flex: none;
	width: 26px;
	height: 26px;
	border: 1.3px solid currentColor;
	border-radius: 50%;
	opacity: 0.75;
	transition: opacity 0.25s ease;
}

.faq__icon::before,
.faq__icon::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 1.3px;
	margin: -0.65px 0 0 -5.5px;
	background: currentColor;
	content: "";
	transition: transform 0.35s var(--faq-ease);
}

.faq__icon::after {
	transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
	transform: rotate(0deg);
}

.faq__item[open] .faq__icon,
.faq__q:hover .faq__icon {
	opacity: 1;
}

/* Answer: slides open where the browser supports it, else opens at once */
.faq__item::details-content {
	height: 0;
	overflow: clip;
	transition: height 0.4s var(--faq-ease), content-visibility 0.4s allow-discrete;
}

.faq__item[open]::details-content {
	height: auto;
}

.faq__a {
	margin-top: -8px;
	padding: 0 60px 26px 0;
}

.faq__a p {
	max-width: 90ch;
	margin: 0 0 10px;
	color: var(--g-text);
	font-family: var(--g-font-body);
	font-size: 0.98rem;
	line-height: 1.7;
}

.faq__a p:last-child {
	margin-bottom: 0;
}

/* Phones */
@media (max-width: 767px) {
	.faq {
		padding: 32px 16px 36px;
	}

	.faq__q {
		gap: 16px;
		padding: 18px 0;
	}

	.faq__a {
		padding-right: 0;
	}

	.faq__a p {
		font-size: 0.95rem;
	}
}

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