
/* Shared font/reset/variables/body/.container/.btn family/@keyframes/
   input/nav a moved to base.css (loaded before this file) - see
   that file. a's color is overridden to "inherit" here (base.css
   defaults to var(--blue)). */
a {
	text-decoration: none;
	color: inherit;
}


/* =========================================================
   FAQ PAGE
========================================================= */

/* =========================================================
   GLOBAL FAQ CONTAINER
========================================================= */

.faq-content .main_inbox {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}




/* =========================================================
   FAQ INTRO / HERO
========================================================= */

.faq-intro {
	background: url("img/hero-background.png") no-repeat center center;
	background-size: cover;
	min-height: calc(60vh - 80px);
	display: flex;
	align-items: center;

	& .main_inbox {
		width: 90%;
		max-width: 1200px;
		margin: 0 auto;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}
}

.heading-primary {
	margin: 0 0 20px;
	font-size: 48px;
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	opacity: 0;
	transform: translateY(30px);
	animation: fadeUp 0.8s ease forwards;
}

.faq-intro-text {
	max-width: 700px;
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	color: #fff;
	font-weight: 300;
	opacity: 0;
	transform: translateY(30px);
	animation: fadeUp 0.8s ease forwards;
	animation-delay: 0.2s;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* =========================================================
   FAQ CONTENT
========================================================= */

.faq-content {
	padding: 90px 0 110px;
}

.faq-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 80px;
	align-items: start;
}


/* =========================================================
   SIDE NAVIGATION
========================================================= */

.faq-sidebar {
	position: relative;
}

.faq-sidebar-inner {
	position: sticky;
	top: var(--header-height, 93px);
}

.faq-sidebar-title {
	margin: 0 0 20px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--navy);
}

.faq-nav {
	display: flex;
	flex-direction: column;
	border-left: 1px solid #dfe5eb;
}

.faq-nav-link {
	position: relative;
	display: block;
	padding: 11px 18px;
	color: var(--navy-dark);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;

	&:hover {
		color: var(--blue);
		background: #f5f8fb;
	}

	/* Blue indicator on active category */
	&.active {
		color: var(--blue);
		font-weight: 600;
		background: #f5f8fb;

		&::before {
			content: "";
			position: absolute;
			left: -1px;
			top: 0;
			bottom: 0;
			width: 3px;
			background: var(--blue);
		}
	}
}


/* =========================================================
   FAQ MAIN
========================================================= */

.faq-main {
	min-width: 0;
	max-width: 900px;
}


/* =========================================================
   FAQ CATEGORY
========================================================= */

.faq-category {
	margin-bottom: 80px;
	scroll-margin-top: var(--header-height, 93px);

	&:last-child {
		margin-bottom: 0;
	}
}

.faq-category-title {
	margin: 0 0 25px;
	font-size: 30px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--navy);

	/* Small blue line underneath category heading */
	&::after {
		content: "";
		display: block;
		width: 40px;
		height: 3px;
		margin-top: 14px;
		background: var(--blue);
	}
}


/* =========================================================
   FAQ LIST
========================================================= */

.faq-list {
	border-top: 1px solid var(--blue);
}


/* =========================================================
   FAQ ITEM
========================================================= */

.faq-item {
	border-bottom: 1px solid var(--blue);

	/* OPEN FAQ STATE */
	&.active {
		& .faq-answer {
			display: block;
		}

		& .faq-icon {
			transform: rotate(45deg);
			background: var(--blue);
			color: #ffffff;
			border-color: var(--blue);
		}

		& .faq-question {
			color: var(--blue);
		}
	}
}


/* =========================================================
   QUESTION BUTTON
========================================================= */

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 22px 5px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	color: var(--navy-dark);

	transition:
		color 0.2s ease,
		padding-left 0.2s ease;

	&:hover {
		color: var(--blue);
		padding-left: 10px;
	}
}


/* Question text */

.faq-question-label {
	font-size: 16px;
	line-height: 1.5;
	font-weight: 600;
}


/* =========================================================
   PLUS / MINUS ICON
========================================================= */

.faq-icon {
	flex-shrink: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 30px;
	height: 30px;

	border: 1px solid #d7e0e8;
	border-radius: 50%;

	color: var(--blue);

	font-size: 20px;
	line-height: 1;
	font-weight: 400;

	transition:
		transform 0.25s ease,
		background-color 0.25s ease,
		color 0.25s ease;
}


/* =========================================================
   ANSWER
========================================================= */

.faq-answer {
	display: none;
	padding: 0 55px 24px 5px;
	color: #687583;
	font-size: 15px;
	line-height: 1.75;

	& p {
		margin: 0;
	}

	& a {
		color: var(--blue);
		text-decoration: underline;

		&:hover {
			color: var(--navy);
		}
	}
}


/* =========================================================
   CONTACT CTA
========================================================= */

.faq-contact {
	padding: 80px 0;
	background: var(--navy);
	border-bottom: 1px solid var(--blue);
	text-align: center;

	& .main_inbox {
		width: 90%;
		max-width: 1200px;
		margin: 0 auto;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	& h2 {
		margin: 0 0 15px;
		font-size: 36px;
		line-height: 1.2;
		font-weight: 700;
		color: #ffffff;
	}

	& p {
		max-width: 600px;
		margin: 0 0 30px;
		font-size: 16px;
		line-height: 1.7;
		color: rgba(255, 255, 255, 0.88);
	}
}






/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

	.faq-layout {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 50px;
	}

	.heading-primary {
		font-size: 42px;
	}

	.faq-category-title {
		font-size: 27px;
	}
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

	/* Intro */

	.faq-intro {
		padding: 70px 0 60px;
	}

	.heading-primary {
		font-size: 34px;
	}

	.faq-intro-text {
		font-size: 15px;
	}


	/* Content */

	.faq-content {
		padding: 60px 0 80px;
	}

	.faq-layout {
		display: block;
	}


	/* Sidebar becomes horizontal */

	.faq-sidebar {
		margin-bottom: 50px;
	}

	.faq-sidebar-inner {
		position: static;
	}

	.faq-sidebar-title {
		font-size: 18px;
	}

	.faq-nav {
		border-left: 0;

		display: grid;
		grid-template-columns: repeat(2, 1fr);

		border-top: 1px solid #dfe5eb;
	}

	.faq-nav-link {
		border-bottom: 1px solid #dfe5eb;
		padding: 12px 10px;

		&.active::before {
			left: 0;
			right: 0;
			top: auto;
			bottom: -1px;

			width: auto;
			height: 3px;
		}
	}


	/* FAQ */

	.faq-category {
		margin-bottom: 60px;
		scroll-margin-top: 30px;
	}

	.faq-category-title {
		font-size: 26px;
	}

	.faq-question {
		padding: 19px 0;
		gap: 15px;

		&:hover {
			padding-left: 0;
		}
	}

	.faq-question-label {
		font-size: 15px;
	}

	.faq-answer {
		padding: 0 40px 22px 0;

		font-size: 14px;
	}


	/* CTA */

	.faq-contact {
		padding: 65px 0;

		& h2 {
			font-size: 30px;
		}
	}

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

	.faq-nav {
		grid-template-columns: 1fr;
	}

	.heading-primary {
		font-size: 30px;
	}

	.faq-category-title {
		font-size: 24px;
	}

	.faq-icon {
		width: 27px;
		height: 27px;
		font-size: 18px;
	}
}
