/*--------------------------------------------------------------
  Preloader — animated truck splash
--------------------------------------------------------------*/

.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: var(--z-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-truck {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: bounce 1.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.preloader-truck::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.2);
  animation: shadowScale 1.2s ease-in-out infinite;
}

@keyframes shadowScale {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(0.7); opacity: 0.6; }
}
