/**
 * FAQ / guide section — Water Damage Claim Estimator
 */

.wde-faq {
	--wde-faq-border: color-mix(in srgb, currentColor 20%, transparent);
	--wde-faq-surface: color-mix(in srgb, currentColor 4%, transparent);
	--wde-faq-focus: #2563eb;
	--wde-faq-touch: 2.75rem;

	box-sizing: border-box;
	margin: 2.5rem 0 0;
	padding: 0;
	font: inherit;
	line-height: 1.65;
	color: inherit;
}

.wde-faq *,
.wde-faq *::before,
.wde-faq *::after {
	box-sizing: inherit;
}

.wde-faq__title {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 3.5vw, 1.5rem);
	line-height: 1.35;
}

.wde-faq__heading {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	line-height: 1.35;
}

.wde-faq__subheading {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.02rem;
	line-height: 1.35;
}

.wde-faq p {
	margin: 0 0 1rem;
}

.wde-faq__rule {
	margin: 1.75rem 0;
	border: 0;
	border-top: 1px solid var(--wde-faq-border);
}

.wde-faq__list {
	margin: 0 0 1rem;
	padding-left: 1.35rem;
}

.wde-faq__list li {
	margin-bottom: 0.4rem;
}

.wde-faq__accordions {
	margin-top: 0.75rem;
}

.wde-faq__accordion {
	margin-bottom: 0.65rem;
	border: 1px solid var(--wde-faq-border);
	border-radius: 0.375rem;
	background: var(--wde-faq-surface);
	overflow: hidden;
}

.wde-faq__accordion:last-child {
	margin-bottom: 0;
}

.wde-faq__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--wde-faq-touch);
	padding: 0.875rem 1rem;
	font-weight: 600;
	font-size: 0.975rem;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.wde-faq__summary::-webkit-details-marker {
	display: none;
}

.wde-faq__summary::after {
	content: "+";
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5rem;
	text-align: center;
	border-radius: 0.25rem;
	opacity: 0.85;
}

.wde-faq__accordion[open] > .wde-faq__summary::after {
	content: "−";
}

.wde-faq__summary:focus-visible {
	outline: 2px solid var(--wde-faq-focus);
	outline-offset: -2px;
}

.wde-faq__panel {
	padding: 0 1rem 1rem;
}

.wde-faq__panel > :first-child {
	margin-top: 0;
}

.wde-link {
	color: var(--wde-faq-focus);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.wde-link:hover,
.wde-link:focus-visible {
	text-decoration-thickness: 2px;
}

.wde-related-tools {
	margin: 2rem 0 0;
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--wde-faq-border);
	border-radius: 0.5rem;
	background: var(--wde-faq-surface);
}

.wde-related-tools__heading {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	line-height: 1.35;
}

.wde-related-tools__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wde-related-tools__item {
	margin: 0 0 0.75rem;
	line-height: 1.5;
}

.wde-related-tools__item:last-child {
	margin-bottom: 0;
}

.wde-related-tools__desc {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.92em;
	opacity: 0.85;
}

@media (max-width: 480px) {
	.wde-faq {
		margin-top: 2rem;
	}

	.wde-faq__summary {
		font-size: 0.9375rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wde-faq__accordion .wde-faq__panel {
		transition: none;
	}
}
