/* ============================================================
   FAQ Accordion
   Style mirrors Product Tech Specs: dark bg, same divider lines,
   same typography defaults. Accordion open/close is CSS-driven
   (grid-template-rows trick — no layout shift, smooth animation).
   BEM: .skyspy-faq
   ============================================================ */

/* --- Full-width kill for Elementor wrapper --- */

.elementor-widget-skyspy_faq {
	width: 100% !important;
	max-width: 100% !important;
}

.e-con:has(.elementor-widget-skyspy_faq),
.e-con-inner:has(.elementor-widget-skyspy_faq) {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	--padding-inline: 0px !important;
	--padding-block: 0px !important;
}

/* ============================================================
   Block
   ============================================================ */

.skyspy-faq {
	width: 100%;
	background-color: #0D0D0D;
}

.skyspy-faq__inner {
	max-width: var(--container-max, 1920px);
	margin: 0 auto;
	padding: 40px 120px 60px;
}

/* ============================================================
   Heading
   ============================================================ */

.skyspy-faq__heading {
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 60px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	color: #FFFFFF;
	margin: 0 0 60px;
}

/* ============================================================
   List
   ============================================================ */

.skyspy-faq__list {
	display: flex;
	flex-direction: column;
}

/* ============================================================
   Item — same border pattern as prod-tech __pair
   ============================================================ */

.skyspy-faq__item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.skyspy-faq__item--first {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================================================
   Question button — replicates __row layout from prod-tech
   ============================================================ */

.skyspy-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 100px;
	padding: 24px 20px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
}

/* ============================================================
   Question text — mirrors __label style from prod-tech
   ============================================================ */

.skyspy-faq__question-text {
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 20px;
	font-weight: 500;
	text-transform: uppercase;
	color: #FFFFFF;
	flex: 1 1 0;
	min-width: 0;
	word-break: break-word;
}

/* ============================================================
   Toggle icon
   Plus by default. When .is-open — the vertical bar of the plus
   rotates 90° → becomes a minus via CSS transform.
   ============================================================ */

.skyspy-faq__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	transition: opacity 0.2s ease;
}

.skyspy-faq__icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

/* Hide minus by default */
.skyspy-faq__icon-minus {
	display: none;
}

/* Animate: rotate the icon wrapper on open */
.skyspy-faq__icon {
	transition: opacity 0.2s ease;
}

/* Swap icons with a smooth cross-fade via opacity + scale */
.skyspy-faq__icon-plus,
.skyspy-faq__icon-minus {
	position: absolute;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.skyspy-faq__icon {
	position: relative;
	width: 24px;
	height: 24px;
}

/* Closed state: plus visible, minus hidden+rotated */
.skyspy-faq__icon-plus {
	opacity: 1;
	transform: rotate(0deg);
	display: block;
}

.skyspy-faq__icon-minus {
	opacity: 0;
	transform: rotate(-90deg);
	display: block;
}

/* Open state: minus visible, plus hidden+rotated */
.skyspy-faq__item.is-open .skyspy-faq__icon-plus {
	opacity: 0;
	transform: rotate(90deg);
}

.skyspy-faq__item.is-open .skyspy-faq__icon-minus {
	opacity: 1;
	transform: rotate(0deg);
}

.skyspy-faq__question:hover .skyspy-faq__icon {
	opacity: 0.7;
}

/* ============================================================
   Answer — height controlled by JS (max-height transition).
   CSS only provides base styles; display:none/block set by JS.
   ============================================================ */

.skyspy-faq__answer {
	display: none; /* JS sets display:block on expand */
}

/* Inner wrapper */
.skyspy-faq__answer-inner {
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 28px;
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #A4A4A4;
}

.skyspy-faq__answer-inner p {
	margin: 0 0 12px;
}

.skyspy-faq__answer-inner p:last-child {
	margin-bottom: 0;
}

.skyspy-faq__answer-inner a {
	color: inherit;
	text-decoration: underline;
	opacity: 0.8;
}

.skyspy-faq__answer-inner a:hover {
	opacity: 1;
}

/* ============================================================
   Tablet  768px – 1200px
   ============================================================ */

@media (max-width: 1200px) {
	.skyspy-faq__inner {
		padding: 40px 40px 40px;
	}

	.skyspy-faq__heading {
		font-size: 44px;
		margin-bottom: 40px;
	}

	.skyspy-faq__question {
		min-height: 80px;
		padding: 16px 16px;
	}

	.skyspy-faq__question-text {
		font-size: 17px;
	}

	.skyspy-faq__answer-inner {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ============================================================
   Mobile  < 768px
   ============================================================ */

@media (max-width: 767px) {
	.skyspy-faq__inner {
		padding: 32px 16px 40px;
	}

	.skyspy-faq__heading {
		font-size: 32px;
		margin-bottom: 28px;
	}

	.skyspy-faq__question {
		min-height: 64px;
		padding: 14px 12px;
		gap: 12px;
	}

	.skyspy-faq__question-text {
		font-size: 15px;
	}

	.skyspy-faq__answer-inner {
		padding-left: 12px;
		padding-right: 12px;
		font-size: 14px;
	}
}
