/*
 * FAQ page (route information/faq) - template extension/so_theme/information/faq.twig
 * --------------------------------------------------------------------------
 * Deliberately layout agnostic: every selector is scoped to .trv-faq-page, so the
 * same file can serve layout 43, layout 44 and any later layout.  Colours come
 * from the layout through --primary-color when the layout declares it (inner
 * pages of layout 43/44 do), and fall back to the Travlla teal otherwise.
 *
 * Mobile first, 8dp spacing grid, 16px page padding, 16px body text, 48px
 * minimum touch targets, no horizontal overflow (see .clinerules).
 */

.trv-faq-page {
	--trv-faq-accent: var(--primary-color, var(--s40-accent, #066168));
	--trv-faq-accent-soft: #e8f4f4;
	--trv-faq-highlight: #ffaa0d;
	--trv-faq-highlight-text: #a86200;
	--trv-faq-ink: #0d2d31;
	--trv-faq-body: #3f6367;
	--trv-faq-line: rgba(6, 97, 104, .14);
	--trv-faq-shadow: 0 10px 24px rgba(6, 97, 104, .07);
	font-family: Figtree, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--trv-faq-body);
	overflow-x: hidden;
}

.trv-faq-page *,
.trv-faq-page *::before,
.trv-faq-page *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- banner */
.trv-faq-hero {
	padding: 24px 0 24px;
	background-color: #f2fbfb;
	background-image:
		radial-gradient(circle at 88% 18%, rgba(255, 170, 13, .16) 0, rgba(255, 170, 13, 0) 42%),
		radial-gradient(circle at 8% 0%, rgba(6, 97, 104, .12) 0, rgba(6, 97, 104, 0) 38%);
	border-bottom: 1px solid var(--trv-faq-line);
}

.trv-faq-hero__inner,
.trv-faq-main__inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
}

.trv-faq-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
	color: var(--trv-faq-body);
}

.trv-faq-crumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.trv-faq-crumbs__item + .trv-faq-crumbs__item::before {
	content: "/";
	color: rgba(6, 97, 104, .4);
}

.trv-faq-crumbs__item a {
	color: var(--trv-faq-accent);
	text-decoration: none;
}

.trv-faq-crumbs__item a:hover,
.trv-faq-crumbs__item a:focus-visible {
	text-decoration: underline;
}

.trv-faq-crumbs__item span {
	color: var(--trv-faq-ink);
	font-weight: 500;
}

.trv-faq-hero__title {
	margin: 0 0 8px;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--trv-faq-ink);
}

.trv-faq-hero__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--trv-faq-body);
}

/* ------------------------------------------------------------------ body */
.trv-faq-main {
	padding: 32px 0 48px;
	background: #ffffff;
}

.trv-faq-main__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Introduction column (heading + quote card) */
.trv-faq-intro__title {
	margin: 0 0 16px;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--trv-faq-ink);
}

/* The word highlight inside the H2: #ffaa0d on white is only ~2.1:1, which
   fails WCAG AA even for large text, so the text uses the darker amber while
   the decorative quote border keeps the brand yellow. */
.trv-faq__hl {
	color: var(--trv-faq-highlight-text);
}

.trv-faq-intro__text {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--trv-faq-body);
}

.trv-faq-quote {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid var(--trv-faq-line);
	border-left: 4px solid var(--trv-faq-highlight);
	background: var(--trv-faq-accent-soft);
}

.trv-faq-quote__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--trv-faq-accent);
}

.trv-faq-quote__text {
	margin: 0;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--trv-faq-ink);
}

.trv-faq-count {
	margin: 16px 0 0;
	font-size: 14px;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: rgba(63, 99, 103, .85);
}

/* ------------------------------------------------------ in-page navigation */
.trv-faq-jump {
	margin: 0 0 24px;
}

.trv-faq-jump__label {
	margin: 0 0 8px;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(63, 99, 103, .85);
}

.trv-faq-jump__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trv-faq-jump__item a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 16px;
	border: 1px solid var(--trv-faq-line);
	border-radius: 999px;
	background: #ffffff;
	font-size: 14px;
	line-height: 1.4;
	color: var(--trv-faq-accent);
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.trv-faq-jump__item a:hover,
.trv-faq-jump__item a:focus-visible {
	border-color: var(--trv-faq-accent);
	background: var(--trv-faq-accent-soft);
	color: var(--trv-faq-accent);
}

/* --------------------------------------------------------- category groups */
.trv-faq-group {
	scroll-margin-top: 96px;
}

.trv-faq-group + .trv-faq-group {
	margin-top: 40px;
}

.trv-faq-page .trv-faq-group__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--trv-faq-line);
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--trv-faq-ink);
}

.trv-faq-page .trv-faq-group__title::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 24px;
	border-radius: 999px;
	background: var(--trv-faq-highlight);
}

/* ------------------------------------------------------------- accordion */
.trv-faq-accordion {
	margin: 0;
}

.trv-faq-item {
	margin: 0 0 16px;
	border: 1px solid var(--trv-faq-line);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: var(--trv-faq-shadow);
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease;
}

/* Bootstrap sets 2.5px corners on .accordion-item:first-of-type / :last-of-type,
   so the card radius is re-declared with a stronger selector. */
.trv-faq-accordion .trv-faq-item.accordion-item {
	border-radius: 16px;
}

.trv-faq-page,
.trv-faq-item__question,
.trv-faq-item__answer {
	overflow-wrap: break-word;
}

.trv-faq-item:last-child {
	margin-bottom: 0;
}

.trv-faq-item:focus-within {
	border-color: var(--trv-faq-accent);
}

.trv-faq-item__heading {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

/* Bootstrap 5 hard codes .accordion-button colours and padding, so every piece
   that must follow the page is reset explicitly here. */
.trv-faq-item__trigger.accordion-button {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	background-image: none;
	box-shadow: none;
	font-family: Afacad, Figtree, Arial, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	color: var(--trv-faq-ink);
	cursor: pointer;
}

.trv-faq-item__trigger.accordion-button::after {
	content: none;
	display: none;
}

.trv-faq-item__trigger.accordion-button:not(.collapsed) {
	background: transparent;
	color: var(--trv-faq-accent);
	box-shadow: none;
}

.trv-faq-item__trigger.accordion-button:hover {
	color: var(--trv-faq-accent);
}

.trv-faq-item__trigger.accordion-button:focus,
.trv-faq-item__trigger.accordion-button:focus-visible {
	outline: 3px solid rgba(6, 97, 104, .35);
	outline-offset: -3px;
	box-shadow: none;
}

.trv-faq-item__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--trv-faq-accent-soft);
	font-family: Figtree, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--trv-faq-accent);
}

.trv-faq-item__trigger.accordion-button:not(.collapsed) .trv-faq-item__num {
	background: var(--trv-faq-accent);
	color: #ffffff;
}

.trv-faq-item__question {
	flex: 1 1 auto;
	min-width: 0;
}

.trv-faq-item__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--trv-faq-line);
	border-radius: 50%;
	color: var(--trv-faq-accent);
	transition: transform .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}

.trv-faq-item__trigger.accordion-button:not(.collapsed) .trv-faq-item__icon {
	transform: rotate(90deg);
	background: var(--trv-faq-accent);
	border-color: var(--trv-faq-accent);
	color: #ffffff;
}

.trv-faq-item__answer {
	padding: 0 16px 24px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--trv-faq-body);
}

.trv-faq-item__answer > *:first-child {
	margin-top: 0;
}

.trv-faq-item__answer > *:last-child {
	margin-bottom: 0;
}

.trv-faq-item__answer p {
	margin: 0 0 12px;
}

.trv-faq-item__answer ul,
.trv-faq-item__answer ol {
	margin: 0 0 12px;
	padding-left: 20px;
}

.trv-faq-item__answer li {
	margin-bottom: 8px;
}

.trv-faq-item__answer a {
	color: var(--trv-faq-accent);
	text-decoration: underline;
}

.trv-faq-item__answer img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.trv-faq-empty {
	margin: 0;
	padding: 24px 16px;
	border: 1px dashed var(--trv-faq-line);
	border-radius: 16px;
	background: #f8fdfd;
	font-size: 16px;
	color: var(--trv-faq-body);
}

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 640px) {
	.trv-faq-hero {
		padding: 32px 0;
	}

	.trv-faq-hero__inner,
	.trv-faq-main__inner {
		padding: 0 24px;
	}

	.trv-faq-hero__title {
		font-size: 32px;
	}

	.trv-faq-intro__title {
		font-size: 26px;
	}

	.trv-faq-main {
		padding: 40px 0 56px;
	}

	.trv-faq-item__trigger.accordion-button {
		gap: 16px;
		min-height: 72px;
		padding: 16px 24px;
		font-size: 18px;
	}

	.trv-faq-item__answer {
		padding: 0 24px 24px;
	}
}

@media (min-width: 768px) {
	.trv-faq-hero {
		padding: 40px 0 36px;
	}

	.trv-faq-hero__title {
		font-size: 40px;
	}

	.trv-faq-hero__lead {
		max-width: 720px;
		font-size: 18px;
	}

	.trv-faq-main {
		padding: 56px 0 72px;
	}

	.trv-faq-main__inner {
		gap: 40px;
	}

	.trv-faq-intro__title {
		font-size: 30px;
	}

	.trv-faq-quote {
		padding: 20px;
	}

	.trv-faq-page .trv-faq-group__title {
		font-size: 22px;
	}
}

@media (min-width: 992px) {
	.trv-faq-hero__inner,
	.trv-faq-main__inner {
		padding: 0 32px;
	}

	.trv-faq-hero__title {
		font-size: 44px;
	}

	/* Two columns like the reference: introduction left, questions right. */
	.trv-faq-main__inner {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: 48px;
	}

	.trv-faq-main {
		padding: 72px 0 96px;
	}

	.trv-faq-intro__title {
		font-size: 34px;
	}

	.trv-faq-page .trv-faq-group__title {
		font-size: 24px;
	}

	/* The questions scroll, the introduction stays readable next to them. */
	.trv-faq-intro__box {
		position: sticky;
		top: 24px;
	}
}

@media (min-width: 1280px) {
	.trv-faq-hero__inner,
	.trv-faq-main__inner {
		padding: 0 40px;
	}

	.trv-faq-intro__title {
		font-size: 38px;
	}

	.trv-faq-item__trigger.accordion-button {
		font-size: 18px;
	}
}

/* Respect a visitor who asked for less motion. */
@media (prefers-reduced-motion: reduce) {
	.trv-faq-page *,
	.trv-faq-page *::before,
	.trv-faq-page *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
