/* Ready to Transport CTA Box - Global Include */

.final-cta-section {
  background-image:
    linear-gradient(165deg, rgba(11, 11, 13, 0.85) 20%, rgba(242, 182, 50, 0.25) 100%),
    url('../../images/ready/truck1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.final-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.45));
  z-index: 0;
  opacity: 0.8;
}

.final-cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background-image:
    linear-gradient(
      90deg,
      #fdf7dc,
      #f1d78a,
      #ddb45a,
      #c89338,
      #b97c28,
      #c89338,
      #ddb45a,
      #f1d78a,
      #fdf7dc
    ),
    linear-gradient(
      120deg,
      transparent 0%,
      transparent 45%,
      rgba(255, 255, 255, 0.65) 50%,
      transparent 55%,
      transparent 100%
    );
  background-size: 300% 300%, 200% 200%;
  background-position: 0% 50%, -50% 50%;
  animation: borderTravel 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.final-cta-section > * {
  position: relative;
  z-index: 2;
}

.final-cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--highlight);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: auroraFlowSeamless 8s linear infinite;
  text-shadow: 0 0 25px rgba(242, 182, 50, 0.35), 0 0 45px rgba(242, 182, 50, 0.25);
}

.final-cta-section p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 1rem 2rem;
  border-radius: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  background: var(--gold-gradient);
  background-size: 200% auto;
  background-position: 50% 0%;
  color: #0b0b0d;
  border: none;
  animation: auroraFlowGlobal 8s linear infinite;
  transition: transform var(--transition), filter var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Scroll animation support */
.scroll-fade {
  --scroll-x: 0;
  --scroll-y: 1.5rem;
  opacity: 0;
  transform: translate3d(var(--scroll-x), var(--scroll-y), 0);
  transition: opacity 1.35s cubic-bezier(0.19, 1, 0.22, 1), transform 1.35s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.scroll-fade.scroll-slow {
  transition: opacity 1.9s cubic-bezier(0.19, 1, 0.22, 1),
              transform 1.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.scroll-fade.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .final-cta-section {
    padding: 2rem 1.5rem;
  }

  .final-cta-section h2 {
    font-size: 1.6rem;
  }

  .final-cta-section p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fade {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
