/* ==========================================================================
   SkyTrade Aviation — FAQ Page
   Search + pills + accordion. Reuses .contact-hero and .about-cta from
   contact.css / about.css for the hero and closing band.
   ========================================================================== */

.faq-page {
	background: var(--st-navy);
}

.faq-page .eyebrow-gold {
	font-family: var(--st-font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 3px;
	color: var(--st-gold);
	text-transform: uppercase;
	margin: 0;
}

.faq-hero .contact-hero__sub a {
	color: var(--st-gold);
	text-decoration: underline;
}

/* ---- Search ---- */

.faq-search {
	margin-top: var(--st-space-xl);
	max-width: 480px;
	margin-inline: auto;
}

.faq-search__input {
	width: 100%;
	min-height: 52px;
	padding: 0 var(--st-space-lg);
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(201, 168, 76, 0.25);
	border-radius: var(--st-input-radius);
	color: var(--st-white);
	font-family: var(--st-font-body);
	font-size: 15px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.faq-search__input::placeholder {
	color: var(--st-white-60);
}

.faq-search__input:focus {
	outline: none;
	border-color: var(--st-gold);
	background-color: rgba(255, 255, 255, 0.09);
}

/* ---- Category pills ---- */

.faq-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-sm);
	margin-bottom: var(--st-space-2xl);
}

.faq-pill {
	padding: 8px 18px;
	background-color: var(--st-navy-light);
	border: 1px solid var(--st-navy-mid);
	border-radius: 999px;
	color: var(--st-white-60);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.faq-pill:hover {
	border-color: var(--st-gold);
	color: var(--st-white);
}

.faq-pill.is-active {
	background-color: var(--st-gold);
	border-color: var(--st-gold);
	color: var(--st-navy);
}

/* ---- Groups + items ---- */

.faq-list {
	max-width: 820px;
}

.faq-group {
	margin-bottom: var(--st-space-2xl);
}

.faq-group__heading {
	font-family: var(--st-font-display);
	font-size: 22px;
	color: var(--st-gold);
	margin-bottom: var(--st-space-md);
	padding-bottom: var(--st-space-sm);
	border-bottom: 1px solid var(--st-navy-mid);
}

.faq-item {
	border-bottom: 1px solid var(--st-navy-mid);
}

.faq-item__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--st-space-md);
	padding: var(--st-space-md) 0;
	background: none;
	border: none;
	text-align: left;
	color: var(--st-white);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.faq-item__question:hover {
	color: var(--st-gold);
}

.faq-item__icon {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background-color: var(--st-gold);
	transition: transform 0.2s ease;
}

.faq-item__icon::before {
	width: 12px;
	height: 1.5px;
	transform: translate(-50%, -50%);
}

.faq-item__icon::after {
	width: 1.5px;
	height: 12px;
	transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-item__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.faq-item__answer p {
	color: var(--st-white-60);
	font-size: 14px;
	line-height: 1.7;
	padding-bottom: var(--st-space-lg);
	padding-right: var(--st-space-xl);
}

.faq-empty {
	color: var(--st-white-60);
	font-size: 14px;
	padding: var(--st-space-2xl) 0;
	text-align: center;
}

.faq-empty a {
	color: var(--st-gold);
	text-decoration: underline;
}

/* ---- CTA band reuses .about-cta but without the background image slot ---- */

.faq-cta {
	background: linear-gradient(120deg, #1a1002 0%, var(--st-navy) 45%, var(--st-navy-light) 100%);
	border-top: 1px solid rgba(201, 168, 76, 0.25);
}

.faq-cta::after {
	display: none;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
	.faq-group__heading {
		font-size: 19px;
	}

	.faq-item__question {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.faq-item__icon::before,
	.faq-item__icon::after,
	.faq-item__answer {
		transition: none;
	}
}
