/* ============================================================
   SkySpy Product Banner Widget
   Full-width dark banner: heading + photo background + feature icons
   BEM: .skyspy-product-banner
   Design: dark palette (#0D0D0D), olive accent (#839074)
   ============================================================ */

/* --- Full-width kill --- */

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

.elementor-widget-skyspy_product_banner .elementor-widget-container {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

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

/* ============================================================
   Root block
   ============================================================ */

.skyspy-product-banner {
	position: relative;
	width: 100%;
	min-height: 520px;
	background-color: #0D0D0D;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.skyspy-product-banner--link {
	cursor: pointer;
}

.skyspy-product-banner--link:hover {
	text-decoration: none;
	color: inherit;
}

/* ============================================================
   Product image — <img> pinned to right, covers full height.
   We use object-fit:cover so no JS is needed.
   The gentle float animation is pure CSS — works everywhere.
   ============================================================ */

.skyspy-product-banner__image-wrap {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 65%;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.skyspy-product-banner__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Anchor: image sticks to the right edge and top */
	object-position: right top;
	/* Slight scale to give the float room without white edges */
	transform-origin: right center;
	animation: skyspy-banner-float 8s ease-in-out infinite;
	will-change: transform;
}

.skyspy-product-banner__image--no-float {
	animation: none !important;
	transform: scale(1.05) !important;
}

/* Smooth, subtle CSS float — guaranteed to work on all devices */
@keyframes skyspy-banner-float {
	0%   { transform: scale(1.05) translateY(0px); }
	50%  { transform: scale(1.05) translateY(-14px); }
	100% { transform: scale(1.05) translateY(0px); }
}

/* Gradient: left side fades image into the dark background */
.skyspy-product-banner__image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		#0D0D0D 0%,
		rgba(13, 13, 13, 0.75) 30%,
		rgba(13, 13, 13, 0) 60%
	);
	z-index: 2;
	pointer-events: none;
}

/* ============================================================
   Inner layout — sits above image (z-index: 2)
   ============================================================ */

.skyspy-product-banner__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	padding: 60px 60px 60px 60px;
	box-sizing: border-box;
	max-width: 55%;
}

/* ============================================================
   Content (badge + heading + desc + button)
   ============================================================ */

.skyspy-product-banner__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1;
}

/* ── Badge (text only, no dot) ── */

.skyspy-product-banner__badge {
	display: inline-flex;
	align-items: center;
}

.skyspy-product-banner__badge-text {
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.45);
}

/* ── Heading ── */

.skyspy-product-banner__heading {
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 72px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1.0;
	color: #ffffff;
	margin: 0;
	padding: 0;
}

.skyspy-product-banner__heading-dim {
	color: rgba(255, 255, 255, 0.22);
}

/* ── Description ── */

.skyspy-product-banner__desc {
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 16px;
	font-weight: 400;
	color: #A4A4A4;
	line-height: 1.55;
	margin: 0;
	max-width: 440px;
}

/* ── CTA Button ── */

.skyspy-product-banner__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 50px;
	padding: 0 28px;
	background-color: #ffffff;
	color: #0D0D0D;
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	white-space: nowrap;
	align-self: flex-start;
	transition: opacity 0.2s ease;
	cursor: pointer;
}

.skyspy-product-banner--link:hover .skyspy-product-banner__btn {
	opacity: 0.85;
}

.skyspy-product-banner__btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.skyspy-product-banner__btn-icon svg {
	width: 14px;
	height: 14px;
	display: block;
}

/* ============================================================
   Feature icons — bottom strip
   ============================================================ */

.skyspy-product-banner__features {
	display: flex;
	align-items: flex-start;
	gap: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 24px;
	margin-top: 32px;
}

.skyspy-product-banner__feature {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 0;
	padding-right: 24px;
}

.skyspy-product-banner__feature:not(:last-child) {
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	margin-right: 24px;
}

.skyspy-product-banner__feature-icon {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 4px;
}

.skyspy-product-banner__feature-icon img,
.skyspy-product-banner__feature-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
	color: #ffffff;
	opacity: 0.7;
}

.skyspy-product-banner__feature-title {
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	color: #ffffff;
	line-height: 1.2;
}

.skyspy-product-banner__feature-desc {
	font-family: var(--font-primary, 'TT Octosquares', sans-serif);
	font-size: 13px;
	font-weight: 400;
	color: #A4A4A4;
	line-height: 1.45;
}

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

@media (max-width: 1200px) {
	.skyspy-product-banner {
		min-height: 440px;
	}

	.skyspy-product-banner__inner {
		padding: 40px;
		max-width: 58%;
	}

	.skyspy-product-banner__image-wrap {
		width: 60%;
	}

	.skyspy-product-banner__heading {
		font-size: 48px;
	}
}

/* ============================================================
   Mobile  ≤ 768px
   Image becomes a tall background behind dark overlay,
   text sits on top. No horizontal image shift needed.
   ============================================================ */

@media (max-width: 768px) {
	.skyspy-product-banner {
		min-height: 0;
	}

	/* Image covers the ENTIRE banner as background on mobile */
	.skyspy-product-banner__image-wrap {
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		width: 100%;
	}

	/* Gradient: transparent top (image visible), dark bottom (text readable) */
	.skyspy-product-banner__image-wrap::after {
		background: linear-gradient(
			to bottom,
			rgba(13, 13, 13, 0.05) 0%,
			rgba(13, 13, 13, 0.2)  35%,
			rgba(13, 13, 13, 0.75) 58%,
			rgba(13, 13, 13, 0.97) 75%,
			#0D0D0D 90%
		);
	}

	.skyspy-product-banner__image {
		object-position: center top;
	}

	/* inner stays in normal flow — banner height is driven by its content */
	.skyspy-product-banner__inner {
		position: relative;
		max-width: 100%;
		/* Large padding-top pushes text down so image is visible above */
		padding: 260px 20px 32px;
	}

	.skyspy-product-banner__heading {
		font-size: 36px;
	}

	.skyspy-product-banner__btn {
		width: 100%;
		align-self: stretch;
	}

	/* ── Features: horizontal scroll with dot-indicator ── */
	.skyspy-product-banner__features {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		flex-wrap: nowrap;
		padding-bottom: 20px;
		/* Show dots indicator below */
		position: relative;
	}

	.skyspy-product-banner__features::-webkit-scrollbar {
		display: none;
	}

	.skyspy-product-banner__feature {
		flex: 0 0 65vw;
		max-width: 260px;
		border-right: none !important;
		margin-right: 0 !important;
		padding-right: 0;
		padding-left: 0;
		/* Visual divider via border-left instead */
		border-left: 1px solid rgba(255, 255, 255, 0.12);
		padding-left: 16px;
	}

	.skyspy-product-banner__feature:first-child {
		border-left: none;
		padding-left: 0;
	}

	/* Scroll progress dots */
	.skyspy-product-banner__features-dots {
		display: flex;
		gap: 6px;
		justify-content: flex-start;
		padding-top: 12px;
	}

	.skyspy-product-banner__features-dot {
		width: 18px;
		height: 3px;
		background-color: rgba(255, 255, 255, 0.25);
		border-radius: 2px;
		transition: background-color 0.3s ease, width 0.3s ease;
	}

	.skyspy-product-banner__features-dot.is-active {
		background-color: #ffffff;
		width: 28px;
	}
}
