/**
 * ART FAQ Manager — front-end styles
 *
 * Self-contained: this file carries the complete FAQ design, so the plugin does
 * not depend on any theme stylesheet. The palette and type below match the
 * existing site design.
 *
 *   #00041f  navy — heading, question text, answer text, open toggle circle
 *   #83cdcc  aqua — open item background, closed toggle circle, hover border
 *   #ffffff  card background
 *   #e2e6e9  hairline border
 *   #f2f2f2  gradient top stop
 *
 * Items are defined by a 1px border and a rounded corner, with no box-shadow
 * anywhere — depth comes from the border and the aqua open state.
 *
 * Fonts are declared as stacks. When the theme loads Montserrat and
 * Times Newer Roman they are used; otherwise the fallbacks keep the same
 * proportions. Everything is scoped under .art-faq and kept to a single class
 * of specificity, so Elementor's style controls override it without !important.
 */

.art-faq {
	--art-faq-navy: #00041f;
	--art-faq-aqua: #83cdcc;
	--art-faq-card: #ffffff;
	--art-faq-gradient-top: #f2f2f2;
	/* Hairline border in place of a shadow, matching the theme's #e2e6e9 rules. */
	--art-faq-border: #e2e6e9;
	--art-faq-radius: 12px;
	--art-faq-easing: cubic-bezier(0.4, 0, 0.2, 1);
	--art-faq-duration: 450ms;
	--art-faq-font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--art-faq-font-serif: "Times Newer Roman", "Times New Roman", Georgia, serif;
	padding: 100px 0;
}

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

/* Optional section background, matching the site's FAQ sections. */
.art-faq--gradient {
	background: linear-gradient(180deg, var(--art-faq-gradient-top) 0%, var(--art-faq-card) 100%);
	padding: 100px 0 120px;
}

/* -------------------------------------------------------------------------
 * Heading
 * ---------------------------------------------------------------------- */

.art-faq__heading {
	max-width: 822px;
	margin: 0 auto 60px;
	font-family: var(--art-faq-font-serif);
	font-weight: 400;
	font-size: 55px;
	line-height: 1.1;
	color: var(--art-faq-navy);
	text-align: center;
}

/* One wrapper per assigned FAQ post. Usually there is exactly one. */
.art-faq__section+.art-faq__section {
	margin-top: 40px;
}

.art-faq__section-title {
	margin: 0 0 18px;
	font-family: var(--art-faq-font-sans);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.4;
	color: var(--art-faq-navy);
}

/* -------------------------------------------------------------------------
 * Items
 * ---------------------------------------------------------------------- */

.art-faq__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.art-faq__item {
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: var(--art-faq-card);
	border: 1px solid var(--art-faq-border);
	border-radius: var(--art-faq-radius);
	transition:
		background var(--art-faq-duration) var(--art-faq-easing),
		border-color var(--art-faq-duration) var(--art-faq-easing);
}

/* Hover deepens the border rather than lifting the card. */
.art-faq__item:not(.is-open):hover {
	border-color: var(--art-faq-aqua);
}

/* Open: aqua fill with a matching border, so the edge reads as one clean shape. */
.art-faq__item.is-open {
	background: var(--art-faq-aqua);
	border-color: var(--art-faq-aqua);
}

/**
 * Each question sits in a real heading tag for the document outline. Strip its
 * default type so the button below keeps full control of the question styling.
 */
.art-faq__question {
	margin: 0;
	padding: 0;
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}

.art-faq__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	text-align: left;
	font-family: var(--art-faq-font-sans);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.42;
	color: var(--art-faq-navy);
	-webkit-appearance: none;
	appearance: none;
}

/* The theme removes outlines globally, so the focus ring needs to insist. */
.art-faq__trigger:focus-visible {
	outline: 2px solid var(--art-faq-aqua) !important;
	outline-offset: 4px;
}

.art-faq__question-text {
	flex: 1 1 auto;
	word-break: break-word;
}

/* -------------------------------------------------------------------------
 * Toggle icon — aqua circle that turns navy when open, plus becomes minus
 * ---------------------------------------------------------------------- */

.art-faq__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--art-faq-aqua);
	transition: background 350ms var(--art-faq-easing);
}

.art-faq__item.is-open .art-faq__icon {
	background: var(--art-faq-navy);
}

.art-faq__icon-svg {
	display: none;
}

.art-faq__icon-plus {
	display: block;
}

.art-faq__item.is-open .art-faq__icon-plus {
	display: none;
}

.art-faq__item.is-open .art-faq__icon-minus {
	display: block;
}

/* -------------------------------------------------------------------------
 * Answer panel — animated on height, so it can expand to its natural size
 * ---------------------------------------------------------------------- */

.art-faq__panel {
	height: 0;
	margin-top: 0;
	overflow: hidden;
	transition:
		height var(--art-faq-duration) var(--art-faq-easing),
		margin-top var(--art-faq-duration) var(--art-faq-easing);
	will-change: height;
}

.art-faq__item.is-open .art-faq__panel {
	margin-top: 10px;
}

.art-faq__answer {
	max-width: 1040px;
	padding: 0;
	font-family: var(--art-faq-font-sans);
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
	color: var(--art-faq-navy);
	overflow-wrap: break-word;
}

.art-faq__answer p {
	margin: 0 0 10px;
	color: inherit;
}

.art-faq__answer>*:first-child {
	margin-top: 0;
}

.art-faq__answer p:last-child,
.art-faq__answer>*:last-child {
	margin-bottom: 0;
}

/* Many themes strip list bullets site-wide; answers need them back. */
.art-faq__answer ul,
.art-faq__answer ol {
	margin: 0 0 10px;
	padding-left: 22px;
}

.art-faq__answer ul {
	list-style: disc;
}

.art-faq__answer ol {
	list-style: decimal;
}

.art-faq__answer li {
	list-style: inherit;
	margin-bottom: 6px;
}

.art-faq__answer img,
.art-faq__answer iframe,
.art-faq__answer table,
.art-faq__answer video {
	max-width: 100%;
}

/* Editor-only placeholder shown when a page has no FAQ section assigned. */
.art-faq--empty {
	padding: 24px;
	background: #ffffff;
	border: 1px dashed var(--art-faq-aqua);
	border-radius: var(--art-faq-radius);
	font-family: var(--art-faq-font-sans);
	font-size: 15px;
	line-height: 26px;
	color: #6d7585;
}

.art-faq--empty p {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Responsive — matches the site's breakpoints (1199 / 991 / 767 / 575)
 * ---------------------------------------------------------------------- */

@media (max-width: 1199px) {
	.art-faq--gradient {
		padding: 70px 0 80px;
	}

	.art-faq__heading {
		font-size: 45px;
		margin-bottom: 45px;
	}
}

@media (max-width: 991px) {
	.art-faq--gradient {
		padding: 60px 0 70px;
	}

	.art-faq__heading {
		font-size: 38px;
		margin-bottom: 36px;
	}

	.art-faq__item {
		padding: 18px;
	}

	.art-faq__trigger {
		font-size: 17px;
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.art-faq--gradient {
		padding: 50px 0 60px;
	}

	.art-faq__heading {
		font-size: 30px;
		line-height: 1.2;
		margin-bottom: 28px;
	}

	.art-faq__section-title {
		font-size: 18px;
	}

	.art-faq__list {
		gap: 12px;
	}

	.art-faq {
		--art-faq-radius: 10px;
		padding: 60px 0;
	}

	.art-faq__item {
		padding: 16px;
	}

	/* Wrapped questions must not push the circle off the first line. */
	.art-faq__trigger {
		align-items: flex-start;
		gap: 12px;
		font-size: 16px;
		line-height: 1.5;
	}

	.art-faq__icon {
		width: 26px;
		height: 26px;
		margin-top: 1px;
	}

	.art-faq__answer {
		font-size: 15px;
		line-height: 24px;
	}
}

@media (max-width: 575px) {
	.art-faq__heading {
		font-size: 26px;
		margin-bottom: 24px;
	}

	.art-faq__trigger {
		font-size: 15px;
		gap: 10px;
	}

	.art-faq__icon {
		width: 24px;
		height: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.art-faq {
		--art-faq-duration: 1ms;
	}

	.art-faq__icon {
		transition-duration: 1ms;
	}
}