:root {
  --brand-red: #c2272d;
}

.text-brand {
  color: var(--brand-red);
}

.border-brand {
  border-color: var(--brand-red);
}

.bg-brand {
  background-color: var(--brand-red);
}

.bg-brand-hover:hover {
  background-color: #a81f24;
}

.parallax-bg,
.mouse-gradient {
  z-index: 0 !important;
  position: absolute !important;
}

.lm-features-section {
  padding: 80px 0;
}

.lm-container {
  width: min(1200px, 90%);
  margin: auto;
}

.lm-heading {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  color: var(--brand-red);
}

.lm-subheading {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin: 10px auto 50px;
  max-width: 650px;
}

.lm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.lm-card {
  background: #fff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0px 10px 22px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.lm-card .lm-icon {
  /* background-color: #1b7f3c !important; */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px;
}

.lm-icon svg {
  width: 45px !important;
  height: 45px !important;
  display: block;
}

.lm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 18px 32px rgba(0, 0, 0, 0.12);
}

.lm-icon {
  width: 60px;
  height: 60px;
  background: #c2272d10;
  color: var(--brand-red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  overflow-x: hidden;
}

.lm-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 700; /* makes the title bold */
  text-align: center;
}

.desc {
  color: #666;
  margin-bottom: 16px;
}

.subtext {
  color: #777;
  font-size: 14px;
  margin-top: 8px;
}

.lm-list {
  margin: 0;
  padding-left: 18px;
  color: #555;
  line-height: 1.65;
  list-style: disc !important; /* ensures bullets show */
}

.lm-list li::marker {
  color: #c2272d !important;
}

/* .lm-mini-route {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-mini-route .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.lm-mini-route .start {
  background: #2ecc71;
}

.lm-mini-route .mid {
  background: #f1c40f;
}

.lm-mini-route .end {
  background: #c2272d;
}

.lm-mini-route .line {
  width: 28px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
} */

.lm-mini-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 14px 0;
  position: relative;
  width: 100%; /* Full width of parent */
  max-width: 400px; /* Optional max width for large screens */
  min-width: 150px; /* Optional min width for very small screens */
  box-sizing: border-box;
  padding: 0 10px; /* Padding so dots aren't flush to edges */
}

.lm-mini-route .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 2;
  flex-shrink: 0; /* Prevent dots from shrinking */
}

.lm-mini-route .start {
  font-size: 20px;
}

.lm-mini-route .end {
  font-size: 20px;
}

.route-line {
  flex-grow: 1;
  height: 4px;
  background: #ccc;
  border-radius: 4px;
  position: relative;
  margin: 0;
  overflow: visible;
  min-width: 0; /* Fix flexbox overflow issues on small screens */
}

.vehicle {
  position: absolute;
  top: -30px;
  left: 0;
  font-size: 25px;
  transform: translateX(-50%) scaleX(-1);
  animation: routeMove 3s infinite linear;
  will-change: left; /* Optimize animation */
}

.qr-container {
  position: relative;
  width: 80px;
  height: 80px;
}

.qr-code {
  width: 100%;
  height: 100%;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #c2272d;
  border-radius: 2px;
  animation: scan 1.5s infinite;
}

@keyframes scan {
  0% {
    top: 0;
  }
  100% {
    top: calc(100% - 4px);
  }
}

.receipt-svg {
  width: 100%;
  height: auto;
  display: block;
  animation: slideDown 2s ease-out infinite;
  transform: translateY(-150%); /* start completely off-screen */
  overflow: hidden;
}

@keyframes slideDown {
  0% {
    transform: translateY(-150%); /* hidden above */
  }
  100% {
    transform: translateY(0); /* center of container */
  }
}

@keyframes routeMove {
  from {
    left: 0%;
  }
  to {
    left: calc(100% - 25px);
  }
}

.bell {
  display: block;
  transform-origin: top center; /* pivot at the top of the bell */
  animation: ring 1.5s ease-in-out infinite;
}

@keyframes ring {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(15deg);
  }
  30% {
    transform: rotate(-10deg);
  }
  45% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.wa-bubble {
  background: #e7fce9;
  padding: 10px 14px;
  margin-bottom: 8px;
  color: #1b7f3c;
  border-radius: 12px;
  font-size: 14px;
}

.rem-tag {
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
}

.urgent {
  background: #ffe7e7;
  color: var(--brand-red);
}

.normal {
  background: #e2fae7;
  color: #2e7d32;
}

/* Fade animation */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

.mouse-gradient {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(37, 99, 235, 0.15) 0%,
    transparent 60%
  );
  transition: background 0.1s ease;
}

.mouse-gradient::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 39, 45, 0.22),
    rgba(37, 99, 235, 0.12),
    transparent 55%
  );
  filter: blur(70px);
  opacity: 0.25;
  transform: translate(-50%, -50%);
}
