/* RedLine Parcel — Brand Styles */
:root {
  --brand-red: #d7263d;
  --brand-red-dark: #a81c2e;
  --brand-dark: #1a1a1a;
  --brand-light: #f7f7f7;
}

/* Fix low-contrast muted text on dark brand backgrounds */
.bg-brand-dark .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

.bg-brand-dark {
  background-color: var(--brand-dark);
  color: #fff;
}

.bg-brand-red {
  background-color: var(--brand-red);
  color: #fff;
}

.text-brand-red {
  color: var(--brand-red);
}

.btn-brand {
  background-color: var(--brand-red);
  color: #fff;
  font-weight: bold;
  border: none;
  transition: 0.3s ease;
}

.btn-brand:hover {
  background-color: var(--brand-red-dark);
  color: #fff;
}

.hero-section {
  background:
    linear-gradient(rgba(26, 26, 26, 0.75), rgba(26, 26, 26, 0.75)),
    url("images/hero-bg.jpg") center/cover;
  padding: 100px 0;
  color: white;
}

.tracking-form {
  background: #fff;
  padding: 30px;
  border-radius: 5px;
  border-top: 5px solid var(--brand-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card {
  border: 1px solid #eee;
  transition: transform 0.3s ease;
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom: 4px solid var(--brand-red);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--brand-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  height: 60px;
  margin-bottom: 30px;
  animation: pulseLogo 1.6s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.96);
  }
}

.preloader-road {
  position: relative;
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-road::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--brand-red);
  animation: roadSweep 1.3s ease-in-out infinite;
}

@keyframes roadSweep {
  0% {
    left: -40%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.preloader-truck {
  position: absolute;
  bottom: 8px;
  left: 0;
  font-size: 22px;
  color: var(--brand-red);
  animation: truckDrive 1.3s ease-in-out infinite;
}

@keyframes truckDrive {
  0% {
    left: 0%;
    transform: scaleX(1);
  }
  48% {
    left: 88%;
    transform: scaleX(1);
  }
  50% {
    left: 88%;
    transform: scaleX(-1);
  }
  98% {
    left: 0%;
    transform: scaleX(-1);
  }
  100% {
    left: 0%;
    transform: scaleX(1);
  }
}

.preloader-text {
  margin-top: 22px;
  color: #ffffff;
  letter-spacing: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
