/* Shared final CTA banner — synced with homepage (index.html) */
.cta-section {
  padding: clamp(72px, 10vw, 120px) 0;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 60%, var(--blue-900) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  position: relative;
  --cta-letter-bg-size: 159%;
  --cta-letter-bg-y: 44%;
  --cta-letter-x: -0.75%;
  --cta-letter-rotate: -13deg;
  --cta-letter-scale: 1.16;
  --cta-watermark-left: 66%;
  --cta-watermark-scale: 1;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: -16% -12%;
  background-image: url("automation-one-footer-bg.png");
  background-size: var(--cta-letter-bg-size) auto;
  background-position: left var(--cta-letter-bg-y);
  background-repeat: no-repeat;
  opacity: 0.92;
  mix-blend-mode: soft-light;
  transform: translate3d(var(--cta-letter-x), 0, 0) rotate(var(--cta-letter-rotate)) scale(var(--cta-letter-scale));
  transform-origin: 28% 50%;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 42%,
    rgba(0, 0, 0, 0.58) 68%,
    rgba(0, 0, 0, 0) 92%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 42%,
    rgba(0, 0, 0, 0.58) 68%,
    rgba(0, 0, 0, 0) 92%
  );
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.07) 0%, transparent 30%);
}

.cta-watermark {
  position: absolute;
  left: var(--cta-watermark-left);
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--cta-watermark-scale));
  height: calc(100% + 56px);
  width: auto;
  max-width: min(1100px, 92vw);
  object-fit: contain;
  opacity: 0.22;
  mix-blend-mode: normal;
  filter: none;
  pointer-events: none;
  z-index: 2;
}

.cta-section .container {
  position: relative;
  z-index: 3;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-synthesis: none;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 18px;
  text-wrap: balance;
}

.cta-section h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #b9d0ff, var(--white));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.cta-section .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}

.cta-section .cta-contact-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cta-contact-bar .cta-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  transition: color 0.2s ease;
}

.cta-contact-bar .cta-contact-icon svg {
  width: 27px;
  height: 27px;
}

.cta-contact-bar .cta-contact-icon:hover {
  color: #b9d0ff;
  background: transparent;
}

.cta-contact-bar .cta-contact-divider {
  width: 1px;
  height: 30px;
  margin: 0 16px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.38);
}

.cta-contact-bar .cta-contact-phone {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.cta-contact-bar .cta-contact-phone:hover {
  color: #b9d0ff;
}

@media (max-width: 560px) {
  .cta-section .cta-contact-bar {
    flex-wrap: nowrap;
    max-width: 100%;
    gap: 0;
    padding: 0;
  }

  .cta-contact-bar .cta-contact-icon {
    width: 32px;
    height: 32px;
  }

  .cta-contact-bar .cta-contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .cta-contact-bar .cta-contact-divider {
    height: 22px;
    margin: 0 8px;
  }

  .cta-contact-bar .cta-contact-phone {
    font-size: 14px;
    letter-spacing: 0.01em;
  }
}
