/* Allied CardPay blue hero replacement section */
.acp-hero-blue,
.acp-hero-blue * {
   font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

.acp-hero-blue {
  position: relative;
  display: flex;
  min-height: 600px;
  align-items: center;
  overflow: visible;
  background:
    radial-gradient(circle at 76% 46%, rgba(11, 99, 246, 0.42), transparent 25%),
    radial-gradient(circle at 85% 46%, rgba(37, 212, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #061425 0%, #081a2f 52%, #020814 100%);
  color: #ffffff;
}

.acp-hero-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://alliedcardpay.com/images/allied-flow-lines.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 72% auto;
  opacity: 0.95;
  pointer-events: none;
}

.acp-hero-blue__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 34px;
  transform: translateY(40px);
}

.acp-hero-blue__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #2d83ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.acp-hero-blue__eyebrow::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b63f6, #25d4ff);
}

.acp-hero-blue h1 {
  margin: 0 0 24px;
  max-width: 610px;
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  font-weight: 00;
  letter-spacing: -2px;
  color: #ffffff;
}
.acp-hero-blue h1 {
  max-width: 760px;
}

.acp-hero-blue h1 .nowrap {
  white-space: nowrap;
  color: #1472ff;
}

.acp-hero-blue h1 span { color: #1472ff; }

.acp-hero-blue p {
  margin: 0 0 34px;
  max-width: 680px;
  color: #d7e1ef;
  font-size: 22px;
  line-height: 1.48;
}

.acp-hero-blue__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* BASE BUTTON (both use this) */
.acp-hero-blue__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 260px;
  padding: 0;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
  box-sizing: border-box;
}

/* PRIMARY */
.acp-hero-blue__btn--primary {
  background: transparent;
  color: #fff;
  border: 1px solid #2d83ff;
  box-shadow: none;
}

/* SECONDARY (same height now) */
.acp-hero-blue__btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #2d83ff;
}

.acp-hero-blue__visual { position: relative; min-height: 430px; }

.acp-hero-blue__icon {
  position: absolute;
  right: 8%;
  top: 50%;
  width: min(310px, 55vw);
  height: auto;
  transform: translateY(-50%);
  border-radius: 42px;
  box-shadow:
    0 0 0 8px rgba(35, 184, 255, .14),
    0 0 80px rgba(0, 115, 255, .70),
    0 34px 55px rgba(0, 0, 0, .28);
}

.acp-hero-blue__glow {
  position: absolute;
  right: 10%;
  bottom: 68px;
  width: 330px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 212, 255, .55);
  filter: blur(18px);
  opacity: .75;
}

@media (max-width: 767px) {
  .acp-hero-blue { min-height: auto; }

  .acp-hero-blue::before {
    background-size: 115% auto;
    background-position: center 36%;
    opacity: .28;
  }

  .acp-hero-blue__inner {
    width: min(100% - 32px, 520px);
    min-height: auto;
    display: block;
    padding: 54px 0 48px;
  }

  .acp-hero-blue__eyebrow {
    font-size: 12px;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
  }

  .acp-hero-blue__eyebrow::after {
    width: 54px;
    height: 3px;
    margin-top: 15px;
  }

  .acp-hero-blue h1 {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -1.2px;
    margin-bottom: 18px;
  }

  .acp-hero-blue p {
    font-size: 17px;
    line-height: 1.48;
    margin-bottom: 26px;
  }

  .acp-hero-blue__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .acp-hero-blue__btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .acp-hero-blue__visual { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .acp-hero-blue__inner {
    grid-template-columns: 1fr .8fr;
    width: min(100% - 48px, 960px);
  }

  .acp-hero-blue h1 { font-size: 52px; }
  .acp-hero-blue p { font-size: 19px; }
  .acp-hero-blue__icon { right: 0; width: 245px; }
}
.acp-hero-blue__btn {
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
}

.acp-hero-blue__btn--secondary {
  padding-top: 0;
  padding-bottom: 0;
}
@media (max-width: 767px) {

  .acp-hero-blue__copy {
    text-align: center;
  }

  .acp-hero-blue h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .acp-hero-blue p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .acp-hero-blue__actions {
    justify-content: center;
  }
}
.acp-hero-blue__btn:hover {
  color: #fff !important;
  background: #0b63f6 !important;
  border-color: #0b63f6 !important;
}
@media (max-width: 767px) {

  .acp-hero-blue h1 span {
    display: block;        /* forces new line */
    white-space: normal;   /* allows wrapping again */
    text-align: center;    /* keeps it centered */
  }

}
.acp-hero-blue h1 {
  max-width: 100%;
}
@media (max-width: 767px) {
  .acp-hero-blue h1 {
    text-align: center;
  }

  .acp-hero-blue h1 .nowrap {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.1;
  }
}
@media (max-width: 767px) {
  .acp-hero-blue__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px; /* ensures icon spacing */
    white-space: nowrap; /* prevents icons from dropping */
  }
}
.acp-hero-blue__btn--primary::after {
  content: "→";
  margin-left: 8px;
}

.acp-hero-blue__btn--secondary::before {
  content: "☎";
  margin-right: 8px;
}

.acp-hero-blue__btn:hover,
.acp-hero-blue__btn:focus {
  color: #fff !important;
}