/* ==============================
   APB Hero + Marquee Widget CSS
   ============================== */

.apb-hero-section {
	--apb-spotlight-color: #ffffff;
	--apb-spotlight-size: 650px;
	--apb-spotlight-blur: 100px;
	--apb-spotlight-opacity: 0.55;
	--apb-mx: 50%;
	--apb-my: 50%;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	isolation: isolate;
}

/* Mouse-follow spotlight — spans the ENTIRE container, not a fixed spot.
   The glow tracks the cursor anywhere inside .apb-hero-section. */
.apb-spotlight-layer {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.apb-hero-section.apb-has-spotlight .apb-spotlight-layer {
	background: radial-gradient(
		circle var(--apb-spotlight-size) at var(--apb-mx) var(--apb-my),
		var(--apb-spotlight-color) 0%,
		transparent 70%
	);
	filter: blur(var(--apb-spotlight-blur));
	will-change: background;
	opacity: var(--apb-spotlight-opacity);
}

.apb-hero-grid {
	position: relative;
	z-index: 10;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.apb-hero-left {
	max-width: 560px;
}

.apb-subtitle {
	margin: 0 0 24px;
	line-height: 1.2;
	text-transform: uppercase;
}

.apb-description {
	margin: 0 0 32px;
	line-height: 1.7;
}

.apb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.apb-btn {
	display: inline-block;
	padding: 16px 32px;
	border: 1px solid currentColor;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.apb-btn:hover {
	transform: translateY(-2px);
	opacity: 0.85;
}

.apb-hero-right {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
}

.apb-img-back {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
}
.apb-img-back img {
	display: block;
	height: auto;
	object-fit: cover;
}

.apb-img-front {
	position: relative;
	z-index: 2;
}
.apb-img-front img {
	display: block;
	height: auto;
	margin: 0 auto;
}

/* ---------- Marquee ---------- */
.apb-marquee-wrap {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	pointer-events: none;
	width: 100%;
}

.apb-marquee-wrap.apb-marquee-pause-hover {
	pointer-events: auto;
}

.apb-marquee-track {
	--apb-marquee-duration: 20s;
	display: flex;
	width: max-content;
	white-space: nowrap;
	will-change: transform;
	animation: apb-marquee-left var(--apb-marquee-duration, 20s) linear infinite;
}

.apb-marquee-track.apb-marquee-dir-right {
	animation-name: apb-marquee-right;
}

.apb-marquee-wrap.apb-marquee-pause-hover:hover .apb-marquee-track {
	animation-play-state: paused;
}

.apb-marquee-group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.apb-marquee-item {
	display: inline-block;
	white-space: nowrap;
	line-height: 1;
	padding: 0 0.3em;
}

.apb-marquee-item-sep {
	opacity: 0.6;
}

@keyframes apb-marquee-left {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@keyframes apb-marquee-right {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}

/* Text style variants (fill / outline) are handled by inline selectors from Elementor controls,
   these are just safe base defaults */
.apb-marquee-text-style-outline .apb-marquee-item {
	color: transparent;
	-webkit-text-stroke-width: 1.5px;
	-webkit-text-stroke-color: #fff;
}
.apb-marquee-text-style-fill .apb-marquee-item {
	color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.apb-hero-grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}
	.apb-hero-left { max-width: 100%; }
	.apb-hero-right { min-height: 320px; }
}

@media (max-width: 767px) {
	.apb-buttons { flex-direction: column; }
	.apb-btn { text-align: center; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.apb-marquee-track {
		animation: none;
	}
}
