/* Warum On Duty — marketing page (courier / fleet theme, dark + light) */

body.page-template-on-duty-content-php {
	--od-warum-float-opacity: 0.38;
	--od-warum-pin-color: #007aff;
	--od-warum-pin-glow: rgba(0, 122, 255, 0.35);
	--od-warum-orb-a: rgba(0, 122, 255, 0.14);
	--od-warum-orb-b: rgba(0, 180, 120, 0.1);
	background-color: #1d1f27 !important;
	font-family: "Josefin Sans", sans-serif;
}

html.onduty-theme-light body.page-template-on-duty-content-php {
	--od-warum-float-opacity: 0.52;
	--od-warum-pin-color: #0066dd;
	--od-warum-pin-glow: rgba(0, 102, 221, 0.4);
	--od-warum-orb-a: rgba(0, 122, 255, 0.2);
	--od-warum-orb-b: rgba(0, 160, 100, 0.14);
	background-color: #eef1f6 !important;
}

body.page-template-on-duty-content-php #page .site-content,
body.page-template-on-duty-content-php .site-content .ast-container {
	background: transparent !important;
}

.onduty-warum-page {
	position: relative;
	overflow: hidden;
	min-height: 60vh;
	padding-bottom: 24px;
}

/* Animated delivery scene — no horizontal lines */
.onduty-warum-scene {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

/* Soft glowing orbs (visible in dark + light) */
.onduty-warum-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	animation: odWarumOrb 12s ease-in-out infinite;
}

.onduty-warum-orb--1 {
	width: 220px;
	height: 220px;
	top: 8%;
	right: 5%;
	background: var(--od-warum-orb-a);
}

.onduty-warum-orb--2 {
	width: 180px;
	height: 180px;
	bottom: 12%;
	left: 0;
	background: var(--od-warum-orb-b);
	animation-delay: -4s;
	animation-duration: 14s;
}

.onduty-warum-orb--3 {
	width: 140px;
	height: 140px;
	top: 45%;
	right: 28%;
	background: var(--od-warum-orb-a);
	animation-delay: -8s;
	animation-duration: 16s;
	opacity: 0.85;
}

/* Fleet vehicles — floating delivery icons */
.onduty-warum-float {
	position: absolute;
	opacity: var(--od-warum-float-opacity);
	filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.25));
	animation: odWarumFloat 9s ease-in-out infinite;
	will-change: transform;
}

html.onduty-theme-light .onduty-warum-float {
	filter: drop-shadow(0 8px 20px rgba(0, 60, 140, 0.18));
}

.onduty-warum-float--truck {
	top: 10%;
	right: 5%;
	width: 92px;
	height: auto;
	animation-duration: 11s;
}

.onduty-warum-float--car {
	top: 38%;
	right: 12%;
	width: 76px;
	height: auto;
	animation-delay: -2s;
	animation-duration: 10s;
}

.onduty-warum-float--scooter {
	bottom: 16%;
	left: 3%;
	width: 68px;
	height: auto;
	animation-delay: -4s;
	animation-duration: 8.5s;
}

.onduty-warum-float--bicycle {
	top: 58%;
	left: 8%;
	width: 58px;
	height: auto;
	animation-delay: -6s;
	animation-duration: 9.5s;
}

/* Delivery location pins */
.onduty-warum-pin {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--od-warum-pin-color);
	box-shadow: 0 0 0 0 var(--od-warum-pin-glow);
	animation: odWarumPin 2.6s ease-in-out infinite;
}

.onduty-warum-pin--1 { top: 28%; right: 20%; }
.onduty-warum-pin--2 { top: 50%; right: 34%; animation-delay: 0.7s; }
.onduty-warum-pin--3 { bottom: 26%; right: 10%; animation-delay: 1.4s; }

@keyframes odWarumOrb {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-12px, 16px) scale(1.08); }
}

@keyframes odWarumFloat {
	0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
	33% { transform: translateY(-16px) translateX(10px) rotate(2deg); }
	66% { transform: translateY(-6px) translateX(-6px) rotate(-1deg); }
}

@keyframes odWarumPin {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 var(--od-warum-pin-glow);
	}
	50% {
		transform: scale(1.2);
		box-shadow: 0 0 0 12px transparent;
	}
}

/* Content layer */
.onduty-marketing-shell {
	position: relative;
	z-index: 1;
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 20px 48px;
}

.onduty-marketing-shell .elementor-section {
	max-width: 1320px;
	margin-left: auto;
	margin-right: auto;
}

.onduty-marketing-shell .elementor-widget-heading h1,
.onduty-marketing-shell .elementor-widget-heading h2,
.onduty-marketing-shell .elementor-widget-heading h3,
.onduty-marketing-shell .elementor-widget-heading h4 {
	font-family: "Josefin Sans", sans-serif !important;
	letter-spacing: -0.02em;
}

.onduty-marketing-shell .elementor-widget-text-editor,
.onduty-marketing-shell .elementor-widget-text-editor p,
.onduty-marketing-shell .elementor-widget-text-editor li {
	font-family: "Josefin Sans", sans-serif !important;
	font-size: 16px;
	line-height: 1.55;
}

html.onduty-theme-light .onduty-marketing-shell .elementor-widget-heading h1,
html.onduty-theme-light .onduty-marketing-shell .elementor-widget-heading h2,
html.onduty-theme-light .onduty-marketing-shell .elementor-widget-heading h3,
html.onduty-theme-light .onduty-marketing-shell .elementor-widget-heading h4 {
	color: #1a1d24;
}

html.onduty-theme-light .onduty-marketing-shell .elementor-widget-text-editor,
html.onduty-theme-light .onduty-marketing-shell .elementor-widget-text-editor p,
html.onduty-theme-light .onduty-marketing-shell .elementor-widget-text-editor li {
	color: #3a3f4a;
}

/* Scroll-in sections */
.onduty-warum-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.onduty-warum-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Join the Fleet — same look as homepage wizard CTA */
.onduty-marketing-shell a.onduty-join-fleet-btn,
.onduty-marketing-shell a.onduty-join-fleet-btn.elementor-button {
	display: inline-block;
	background: linear-gradient(180deg, #0026bc 0%, #001156 100%) !important;
	box-shadow: -0.5px -0.5px 0px 0px #00000012, 0 10px 28px rgba(0, 38, 188, 0.35);
	padding: 14px 34px !important;
	border-radius: 4px !important;
	border: none !important;
	font-family: "Josefin Sans", sans-serif !important;
	font-weight: 600 !important;
	font-size: 18px !important;
	line-height: 16px !important;
	letter-spacing: -0.32px;
	color: #ffffff !important;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.onduty-marketing-shell a.onduty-join-fleet-btn:hover,
.onduty-marketing-shell a.onduty-join-fleet-btn:focus-visible {
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(0, 38, 188, 0.45);
}

.onduty-marketing-shell a.onduty-join-fleet-btn.is-pressed {
	transform: translateY(0) scale(0.98);
}

/* Hide duplicate Astra footer when app footer is present */
body.onduty-app-page footer#colophon {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.onduty-warum-orb,
	.onduty-warum-float,
	.onduty-warum-pin {
		animation: none !important;
	}

	.onduty-warum-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (max-width: 768px) {
	.onduty-warum-scene {
		display: none !important;
	}
}
