/* =============================================================
   logistics.css — AT-EASE Logistics Management Page
   Sections:
     1.  Page tokens
     2.  Hero
     3.  Specialized Logistics (Item vs Weight)
     4.  Core Capabilities slider
     5.  How It Works
     6.  Pricing Plans
     7.  CTA Banner
     8.  Extra buttons used on this page
     9.  Video modal
     10. Responsive
============================================================= */


/* ─────────────────────────────────────────────────────────────
   1. Page tokens
───────────────────────────────────────────────────────────── */
:root {
  --logi-red:        #EC1313;
  --logi-red-dim:    rgba(236, 19, 19, 0.12);
  --logi-red-border: rgba(236, 19, 19, 0.25);
  --logi-dark:       #0A0A0A;
  --logi-surface:    #160404;
  --logi-card:       #221010;
  --logi-text:       #F1F5F9;
  --logi-muted:      #94A3B8;
  --logi-dim:        #64748B;
  --logi-border:     rgba(255, 255, 255, 0.08);
  --logi-border-md:  rgba(255, 255, 255, 0.12);
}

.text-red { color: var(--logi-red); }


/* ─────────────────────────────────────────────────────────────
   2. Hero
───────────────────────────────────────────────────────────── */
.logi-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  margin-top: 80px;
  overflow: hidden;
  background: #0d0303;
}

.logi-hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.logi-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.20;
}

.logi-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #800000 0%,
    #3D0909 22%,
    rgba(13, 3, 3, 0) 100%
  );
}

.logi-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px;
}

.logi-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logi-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.logi-hero__badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.logi-hero__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin: 0;
}

.logi-hero__desc {
  max-width: 520px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--logi-muted);
  margin: 0;
}

.logi-hero__cta {
  width: fit-content;
}

.logi-hero__media {
  flex-shrink: 0;
  width: 560px;
}

.logi-hero__video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  outline: 1px rgba(255, 255, 255, 0.10) solid;
  box-shadow:
    0 0 0 1px rgba(113, 3, 3, 0.653),
    8px 8px 40px rgba(125, 5, 5, 0.2),
    0 25px 50px rgba(0, 0, 0, 0.50);
  cursor: pointer;
}

.logi-hero__video-thumb {
  display: block;
  width: 100%;
  height: 315px;
  object-fit: cover;
  opacity: 0.60;
  filter: saturate(0.4);
  transition: opacity 0.3s ease;
}

.logi-hero__video-card:hover .logi-hero__video-thumb {
  opacity: 0.75;
}

/* Play button */
.logi-hero__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(236, 19, 19, 0.90);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.40);
  padding: 0;
  overflow: hidden;
}

.logi-hero__play-btn:hover {
  background: var(--logi-red);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Custom icon image inside the play button */
.logi-hero__play-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  /* Make white icon visible on the red button */
  filter: brightness(0) invert(1);
}

/* Fallback triangle if icon image fails to load */
.logi-hero__play-icon {
  color: #fff;
  font-size: 28px;
  margin-left: 4px;
}

.logi-hero__video-label {
  position: absolute;
  bottom: 16px;
  left: 20px;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────
   3. Specialized Logistics — Item vs Weight
───────────────────────────────────────────────────────────── */
.logi-types {
  background: linear-gradient(180deg, #470808 6%, #1A0404 84%);
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logi-types .section-header {
  margin-bottom: 64px;
}

.logi-types__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.logi-type-card {
  background: var(--logi-card);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  outline: 1px rgba(255, 255, 255, 0.10) solid;
  transition: outline-color 0.25s ease;
}

.logi-type-card:hover {
  outline-color: var(--logi-red-border);
}

.logi-type-card--featured {
  outline: 1px rgba(236, 19, 19, 0.25) solid;
  box-shadow: 0 0 40px rgba(236, 19, 19, 0.08);
}

.logi-type-card__image-wrap {
  height: 192px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.logi-type-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5);
  transition: filter 0.3s ease;
}

.logi-type-card:hover .logi-type-card__image {
  filter: saturate(0.8);
}

.logi-type-card__title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--logi-text);
  margin: 0;
}

.logi-type-card__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--logi-muted);
  margin: 0;
  flex: 1;
}

.logi-type-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logi-type-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #CBD5E1;
}

.logi-type-card__features li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  background: var(--logi-red);
  border-radius: 2px;
  flex-shrink: 0;
}

.logi-type-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}


/* ─────────────────────────────────────────────────────────────
   4. Core Capabilities Slider — Infinite Marquee
───────────────────────────────────────────────────────────── */
.logi-capabilities {
  background: linear-gradient(180deg, #1C0606 5%, #0A0A0A 100%);
  padding: 96px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logi-capabilities .section-header {
  margin-bottom: 56px;
}

/* Slider outer — clips overflow, positions arrows */
.cap-slider {
  position: relative;
  overflow: hidden;
}

/* Fade edges */
.cap-slider::before,
.cap-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.cap-slider::before {
  left: 0;
  background: linear-gradient(to right, #110303 20%, transparent);
}

.cap-slider::after {
  right: 0;
  background: linear-gradient(to left, #110303 20%, transparent);
}

/* ── The scrollable track ──
   IMPORTANT: NO CSS transition here — the JS RAF loop drives
   position directly via transform. A CSS transition would
   cause a visual "snap-back" glitch on the infinite loop reset.
──────────────────────────────────────────────────────────── */
.cap-slider__track {
  display: flex;
  gap: 24px;
  /* transition intentionally removed — RAF handles animation */
  padding: 8px 4px 16px;
  will-change: transform;        /* hint GPU compositing */
}

/* Individual capability card */
.cap-card {
  flex-shrink: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--logi-border);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cap-card:hover {
  border-color: var(--logi-red-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.40);
}

.cap-card__icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--logi-red-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cap-card__icon-wrap .material-icons {
  font-size: 22px;
  color: var(--logi-red);
}

.cap-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--logi-text);
  line-height: 1.3;
  margin: 0;
}

.cap-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--logi-muted);
  margin: 0;
  flex: 1;
}

/* Arrow buttons */
.cap-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}

.cap-slider__arrow:hover {
  background: rgba(236, 19, 19, 0.30);
  border-color: var(--logi-red-border);
}

.cap-slider__arrow--prev { left: 8px; }
.cap-slider__arrow--next { right: 8px; }

.cap-slider__arrow:disabled {
  opacity: 0.30;
  cursor: not-allowed;
}

/* Dot indicators */
.cap-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.cap-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.20);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.cap-slider__dot--active {
  width: 32px;
  background: var(--logi-red);
}


/* ─────────────────────────────────────────────────────────────
   5. How It Works — Animated truck
───────────────────────────────────────────────────────────── */
.logi-how {
  background: linear-gradient(360deg, #1C0303 2%, #2A0606 44%);
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logi-how .section-header {
  margin-bottom: 80px;
}

/* Steps row */
.logi-how__steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  gap: 0;
}

/* ── Background track line ── */
.logi-how__track {
  position: absolute;
  top: 32px; /* vertically centred on 64px circles */
  left: calc(12.5%); /* starts at centre of first circle */
  right: calc(12.5%);
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

/* Red fill that grows as truck moves */
.logi-how__track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--logi-red);
  border-radius: 9999px;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(236, 19, 19, 0.60);
}

/* Truck icon riding the track */
.logi-how__truck {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(13%) sepia(95%) saturate(7494%) hue-rotate(3deg) brightness(98%) contrast(112%);
  transition: left 0.05s linear;
  z-index: 2;
  /* Slight bounce animation while moving */
  animation: truckBounce 0.4s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes truckBounce {
  0%, 100% { margin-top: 0; }
  50%       { margin-top: -3px; }
}

/* Each step */
.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Circle */
.how-step__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #221010;
  border: 3px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

/* Active step circle — set by JS */
.how-step__circle--active {
  border-color: var(--logi-red);
  background: rgba(236, 19, 19, 0.15);
  box-shadow: 0 0 16px rgba(236, 19, 19, 0.40);
}

/* Completed step circle */
.how-step__circle--done {
  border-color: var(--logi-red);
  background: rgba(236, 19, 19, 0.08);
}

.how-step__number {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.how-step__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--logi-text);
  margin: 20px 0 12px;
  transition: color 0.3s ease;
}

.how-step__title--active {
  color: var(--logi-red);
}

.how-step__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--logi-muted);
  max-width: 180px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 860px) {
  .logi-how__steps { flex-direction: column; align-items: center; gap: 40px; }
  .logi-how__track  { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   6. Pricing Plans
───────────────────────────────────────────────────────────── */
.logi-pricing {
  background: #1B0505;
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logi-pricing .section-header {
  margin-bottom: 64px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.pricing-card--featured {
  border-color: var(--logi-red);
  box-shadow: 0 0 30px rgba(236, 19, 19, 0.12);
}

.pricing-card--featured:hover {
  box-shadow: 0 0 50px rgba(236, 19, 19, 0.20);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--logi-red);
  border-radius: 9999px;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--logi-text);
  text-align: center;
  margin: 0;
}

.pricing-card__tagline {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--logi-muted);
  text-align: center;
  margin: 0;
  flex: 1;
}

.pricing-card__plan {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--logi-text);
  text-align: center;
  letter-spacing: 0.05em;
}

.pricing-card__users {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--logi-red);
  text-align: center;
}


/* ─────────────────────────────────────────────────────────────
   7. CTA Banner
───────────────────────────────────────────────────────────── */
.logi-cta {
  padding: 48px 80px;
}

.logi-cta__inner {
  background: #520505;
  border-radius: 40px;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.logi-cta__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(217, 217, 217, 0.06);
  border-radius: 9999px;
  pointer-events: none;
}

.logi-cta__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logi-cta__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin: 0;
}

.logi-cta__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.80);
  max-width: 560px;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   8. Extra buttons used on this page only
───────────────────────────────────────────────────────────── */
.btn--ghost-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* .btn--ghost-sm::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  flex-shrink: 0;
} */

.btn--ghost-sm:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--outline-white {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: transparent;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.40);
}

.btn--cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 16px;
  background: #fff;
  color: var(--logi-red);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn--cta-white:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────────
   9. Video modal
───────────────────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] { display: none; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.video-modal__content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  background: #0A0A0A;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.70);
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-modal__close:hover { background: var(--logi-red); }

.video-modal__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-modal__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ─────────────────────────────────────────────────────────────
   10. Responsive
───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .logi-hero__inner { padding: 64px 40px; gap: 40px; }
  .logi-hero__title { font-size: 56px; }
  .logi-hero__media { width: 460px; }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .logi-cta { padding: 48px 40px; }
  .logi-cta__inner { padding: 60px 48px; }
  .logi-cta__title { font-size: 36px; }
}

@media (max-width: 860px) {
  .logi-hero__inner {
    flex-direction: column;
    padding: 80px 24px 60px;
    text-align: center;
    align-items: center;
  }
  .logi-hero__title { font-size: 44px; }
  .logi-hero__desc { max-width: 100%; }
  .logi-hero__cta { align-self: center; }
  .logi-hero__media { width: 100%; max-width: 500px; }

  .logi-types__grid { grid-template-columns: 1fr; }

  .logi-how__steps { flex-direction: column; align-items: center; gap: 40px; }
  .how-step__connector { display: none; }

  .logi-cta__inner { flex-direction: column; text-align: center; padding: 48px 32px; }
  .logi-cta__title { font-size: 30px; }
}

@media (max-width: 600px) {
  .logi-hero__title { font-size: 34px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .logi-cta { padding: 32px 16px; }
}