/*
 * Umbhaba FAQ — matched to the site's existing design language:
 * Poppins for headings and UI, charcoal #3B3E3D ink, sage #9CAAA4 accent,
 * uppercase letter-spaced eyebrow labels, 6px radii.
 * Every value is a custom property so the Elementor style tab can override it.
 */
.umseo-faq {
	--umseo-faq-ink:     #3b3e3d;
	--umseo-faq-muted:   #6b706e;
	--umseo-faq-accent:  #9caaa4;
	--umseo-faq-rule:    rgba(59, 62, 61, .14);
	--umseo-faq-bg:      transparent;
	--umseo-faq-card:    #fff;
	--umseo-faq-link:    #2f5d45;
	--umseo-faq-radius:  6px;
	--umseo-faq-font:    "Poppins", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	max-width: 860px;
	margin-inline: auto;
	color: var(--umseo-faq-ink);
	background: var(--umseo-faq-bg);
	font-family: var(--umseo-faq-font);
}

/* ---- header ---- */
.umseo-faq__head { margin-bottom: 1.75rem; text-align: center; }

.umseo-faq__eyebrow {
	margin: 0 0 .5rem;
	font-size: .688rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .18em;
	text-transform: uppercase;
	/* The sage accent is too light for small text (2.4:1); muted passes AA. */
	color: var(--umseo-faq-muted);
}

.umseo-faq__title {
	margin: 0;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 500;
	line-height: 1.25;
	color: var(--umseo-faq-ink);
}

/* ---- list ---- */
.umseo-faq__list { border-top: 1px solid var(--umseo-faq-rule); }

.umseo-faq__item { border-bottom: 1px solid var(--umseo-faq-rule); }

.umseo-faq--cards .umseo-faq__list { border-top: 0; display: grid; gap: .625rem; }

.umseo-faq--cards .umseo-faq__item {
	border: 1px solid var(--umseo-faq-rule);
	border-radius: var(--umseo-faq-radius);
	background: var(--umseo-faq-card);
}

/* ---- question ---- */
.umseo-faq .umseo-faq__q {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

/* The theme and Elementor both style bare <button> elements (including a pink
 * hover/focus state). Reset every visual property explicitly, at a specificity
 * that beats them, rather than relying on inheritance. */
.umseo-faq .umseo-faq__q .umseo-faq__toggle,
.umseo-faq .umseo-faq__q .umseo-faq__toggle:hover,
.umseo-faq .umseo-faq__q .umseo-faq__toggle:focus,
.umseo-faq .umseo-faq__q .umseo-faq__toggle:active,
.umseo-faq .umseo-faq__q .umseo-faq__toggle:visited {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 1.125rem .25rem;
	border: 0;
	border-radius: 0;
	background: none;
	background-color: transparent;
	box-shadow: none;
	text-shadow: none;
	font: inherit;
	font-family: var(--umseo-faq-font);
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	white-space: normal;
	color: var(--umseo-faq-ink);
	cursor: pointer;
	transition: color .18s ease;
}

.umseo-faq--cards .umseo-faq__q .umseo-faq__toggle { padding-inline: 1.125rem; }

.umseo-faq .umseo-faq__q .umseo-faq__toggle:hover,
.umseo-faq .umseo-faq__q .umseo-faq__toggle:hover .umseo-faq__label {
	color: var(--umseo-faq-accent);
}

.umseo-faq .umseo-faq__q .umseo-faq__toggle:focus { outline: 0; }

/* Keyboard users need to see where they are; mouse clicks stay ring-free. */
.umseo-faq .umseo-faq__q .umseo-faq__toggle:focus-visible {
	outline: 2px solid var(--umseo-faq-link, #2f5d45);
	outline-offset: 2px;
	border-radius: 2px;
}

.umseo-faq .umseo-faq__label {
	/* Flex items default to min-width:auto, so a long question refuses to
	 * shrink and pushes the chevron outside the container on narrow screens. */
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: break-word;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	color: inherit;
	transition: color .18s ease;
}

.umseo-faq__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-top: -.125rem;
	border: 1px solid var(--umseo-faq-rule);
	border-radius: 50%;
	color: var(--umseo-faq-muted);
	transition: transform .28s ease, border-color .18s ease, background-color .18s ease;
}

.umseo-faq__item.is-open .umseo-faq__icon {
	transform: rotate(180deg);
	border-color: var(--umseo-faq-accent);
	background: rgba(156, 170, 164, .12);
}

/* ---- answer ----
 * Height is animated from a measured pixel value set by the script. Without
 * JavaScript the panel simply stays open, so the content is always readable.
 */
.umseo-faq__panel { overflow: hidden; }

.umseo-faq__answer {
	padding: 0 3rem 1.375rem .25rem;
	font-size: .938rem;
	line-height: 1.7;
	color: var(--umseo-faq-muted);
}

.umseo-faq--cards .umseo-faq__answer { padding-inline: 1.125rem 3rem; }

.umseo-faq__answer p { margin: 0 0 .75rem; }
.umseo-faq__answer p:last-child { margin-bottom: 0; }

.umseo-faq[data-enhanced] .umseo-faq__panel {
	height: 0;
	transition: height .3s cubic-bezier(.4, 0, .2, 1);
}

.umseo-faq__empty {
	padding: 1rem 1.125rem;
	border: 1px dashed var(--umseo-faq-rule);
	border-radius: var(--umseo-faq-radius);
	color: var(--umseo-faq-muted);
	font-family: var(--umseo-faq-font);
	font-size: .875rem;
}

@media (prefers-reduced-motion: reduce) {
	.umseo-faq[data-enhanced] .umseo-faq__panel,
	.umseo-faq__icon { transition: none; }
}

/* Auto-placed section: it lands between two Elementor sections that bring their
 * own padding, so it needs its own vertical room to not look wedged in. */
.umseo-faq-auto {
	padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
}

.umseo-faq-auto .umseo-faq {
	max-width: 860px;
	margin-inline: auto;
}

/* Links inside answers: without this the theme's global magenta link colour
 * bleeds in. Styled to the lodge's green instead, at a specificity that beats
 * the theme's anchor rules in both rest and hover states. */
.umseo-faq .umseo-faq__answer a,
.umseo-faq .umseo-faq__answer a:visited {
	color: var(--umseo-faq-link, #2f5d45);
	text-decoration: underline;
	text-decoration-color: var(--umseo-faq-accent);
	text-underline-offset: 2px;
	transition: color .18s ease;
}

.umseo-faq .umseo-faq__answer a:hover,
.umseo-faq .umseo-faq__answer a:focus {
	color: var(--umseo-faq-ink);
	text-decoration-color: var(--umseo-faq-link, #2f5d45);
}

/* Spacing around the auto-placed section.
 *
 * Symmetric by construction: the same padding above and below, so the block
 * itself never introduces an uneven gap. Nothing outside this block is
 * touched, so each page keeps whatever spacing its own sections define.
 */
.umseo-faq-auto {
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* ---- narrow screens ---- */
@media (max-width: 600px) {
	.umseo-faq__head { margin-bottom: 1.25rem; }

	/* Tighter rows so six questions stay scannable without endless scrolling. */
	/* A wider gap keeps a long question from running up against the chevron;
	 * it wraps to a second line instead, which reads better than a hairline. */
	.umseo-faq .umseo-faq__q .umseo-faq__toggle { padding: .875rem .125rem; gap: 1.125rem; }
	.umseo-faq .umseo-faq__label { font-size: .938rem; line-height: 1.45; }

	.umseo-faq__icon { width: 1.5rem; height: 1.5rem; }
	.umseo-faq__answer { padding: 0 2rem .875rem .125rem; font-size: .9rem; }
	.umseo-faq--cards .umseo-faq__q .umseo-faq__toggle,
	.umseo-faq--cards .umseo-faq__answer { padding-inline: .875rem; }

	.umseo-faq-auto { padding-left: 1.25rem; padding-right: 1.25rem; }
}
