/*
 * 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 accordion */
.trv-faq-cats {
	margin: 0;
}

.trv-faq-cat {
	scroll-margin-top: 96px;
	margin: 0 0 12px;
	border: 1px solid var(--trv-faq-line);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: var(--trv-faq-shadow);
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease;
}

.trv-faq-cat:last-child {
	margin-bottom: 0;
}

.trv-faq-cat__heading {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.trv-faq-page .trv-faq-cat__trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 72px;
	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: 700;
	line-height: 1.4;
	text-align: left;
	color: var(--trv-faq-ink);
	cursor: pointer;
}

.trv-faq-page .trv-faq-cat__trigger::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 24px;
	border-radius: 999px;
	background: var(--trv-faq-highlight);
}

.trv-faq-cat__name {
	flex: 1 1 auto;
	min-width: 0;
}

.trv-faq-cat__count {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--trv-faq-accent-soft);
	font-family: Figtree, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--trv-faq-accent);
}

.trv-faq-cat__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-page .trv-faq-cat__trigger:not(.collapsed) .trv-faq-cat__icon {
	transform: rotate(180deg);
	background: var(--trv-faq-accent);
	border-color: var(--trv-faq-accent);
	color: #ffffff;
}

.trv-faq-page .trv-faq-cat__trigger:hover,
.trv-faq-page .trv-faq-cat__trigger:not(.collapsed) {
	color: var(--trv-faq-accent);
}

/* Keyboard users still get a visible ring, mouse clicks do not: a plain :focus
   outline sits on the card edge (offset -3px) and made the top border look
   thicker than the other three sides. */
.trv-faq-page .trv-faq-cat__trigger:focus-visible {
	outline: 3px solid rgba(6, 97, 104, .35);
	outline-offset: -3px;
	box-shadow: none;
}

.trv-faq-cat__panel {
	padding: 16px;
	border-top: 1px solid var(--trv-faq-line);
}

/* The questions keep their own rounded card, so the nested card outline is
   dropped to avoid a box in a box. */
.trv-faq-cat__panel .trv-faq-item {
	box-shadow: none;
}

/* ------------------------------------------------------------- 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 5 ships `.accordion-item:first-child{border-top:0}` and
   `.accordion-item:not(:first-of-type){border-top:0}` (specificity 0,2,0), which
   removed the top border of the question cards.  The card border is therefore
   declared with a stronger selector so every question keeps all four sides. */
.trv-faq-page .trv-faq-accordion .trv-faq-item.accordion-item {
	border: 1px solid var(--trv-faq-line);
	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__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-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-cat__trigger {
		font-size: 20px;
		min-height: 80px;
		padding: 20px;
	}
}

@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;
	}

	/* 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;
	}
}

/* ---------------------------------------------------- banner + header state
 * Layout 43 keys its header state off the theme's before_main wrapper
 * (.so-before-main, see faq.twig): with it the header is the floating rounded
 * white card that sits over a full-bleed banner, exactly like /contact and
 * /about-us; without it the theme reserves 190px of white above the page and
 * the card disappears on white.
 *
 * The banner is therefore a photo banner with a dark shade, so the white card
 * has contrast and the page keeps the same hero quality as the About page.
 * All rules are scoped to .trv-faq-page and win over the earlier breakpoints
 * through the extra `body` prefix.
 */
.trv-faq-banner {
	position: relative;
}

body .trv-faq-page .trv-faq-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-start;
	overflow: hidden;
	min-height: 300px;
	padding: 0;
	border-bottom: 0;
	background-color: #04353a;
	background-image: none;
	color: #ffffff;
}

body .trv-faq-page .trv-faq-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
}

body .trv-faq-page .trv-faq-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: linear-gradient(180deg, rgba(4, 53, 58, .58) 0%, rgba(4, 53, 58, .84) 100%);
}

body .trv-faq-page .trv-faq-hero__inner {
	position: relative;
	z-index: 2;
	padding: 32px 16px 36px;
	color: #ffffff;
}

body .trv-faq-page .trv-faq-hero__title,
body .trv-faq-page .trv-faq-hero__lead,
body .trv-faq-page .trv-faq-crumbs__item a,
body .trv-faq-page .trv-faq-crumbs__item span {
	color: #ffffff;
}

body .trv-faq-page .trv-faq-hero__lead {
	color: rgba(255, 255, 255, .88);
}

body .trv-faq-page .trv-faq-crumbs__item a:hover,
body .trv-faq-page .trv-faq-crumbs__item a:focus-visible {
	color: #ffaa0d;
}

body .trv-faq-page .trv-faq-crumbs__item + .trv-faq-crumbs__item::before {
	color: rgba(255, 255, 255, .55);
}

@media (min-width: 640px) {
	body .trv-faq-page .trv-faq-hero {
		min-height: 340px;
	}

	body .trv-faq-page .trv-faq-hero__inner {
		padding: 40px 24px 44px;
	}
}

@media (min-width: 768px) {
	body .trv-faq-page .trv-faq-hero {
		min-height: 400px;
	}
}

@media (min-width: 992px) {
	body .trv-faq-page .trv-faq-hero {
		min-height: 520px;
	}

	/* Clear the floating header: 30px inset + 108px card + breathing room. */
	body .trv-faq-page .trv-faq-hero__inner {
		padding: 190px 32px 64px;
	}
}

@media (min-width: 1280px) {
	body .trv-faq-page .trv-faq-hero__inner {
		padding: 190px 40px 64px;
	}
}

