/* JAMS service boxes - HTML/CSS redesign, original icons preserved */

.jams-service-boxes {
  --sb-gap: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sb-gap);
  width: 100%;
  max-width: var(--gacor-container, 1320px);
  margin: 0 auto;
  padding: 8px 0 12px;
  box-sizing: border-box;
}

.jams-service-box {
  --lift: 0px;
  --icon-lift: 0px;
  --edge: 0;
  --shine: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
  padding: 36px 22px 28px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  background:
    linear-gradient(165deg, rgba(0, 174, 239, 0.14) 0%, transparent 42%),
    linear-gradient(180deg, #1c1c1c 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-sizing: border-box;
  transform: translateY(var(--lift));
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.45s ease;
  will-change: transform;
}

/* Entrance */
.jams-service-boxes[data-animate="true"] .jams-service-box {
  opacity: 0;
  transform: translateY(28px);
  animation: jamsServiceBoxIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--box-i, 0) * 0.1s + 0.05s);
}

@keyframes jamsServiceBoxIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jams-service-boxes[data-animate="true"] .jams-service-box {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .jams-service-box,
  .jams-service-box__icon img,
  .jams-service-box__edge,
  .jams-service-box__cta,
  .jams-service-box__glow {
    transition: none !important;
    animation: none !important;
  }
}

.jams-service-box__edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gacor-orange, #00aeef);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.jams-service-box__glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(0, 174, 239, 0.28), transparent 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.jams-service-box__title {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 0 auto;
  max-width: 14ch;
  text-align: center;
  font-family: var(--gacor-font, "DM Sans", sans-serif);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.jams-service-box__icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 150px;
  margin: 28px auto 18px;
  transform: translateY(var(--icon-lift));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.jams-service-box__icon img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 118px;
  object-fit: contain;
  /* Icons are white-on-black PNGs - drop the black plate on dark tiles */
  mix-blend-mode: lighten;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.jams-service-box__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--gacor-font, "DM Sans", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.jams-service-box__cta::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease, background-color 0.3s ease;
}

/* Hover / focus */
.jams-service-box:hover,
.jams-service-box:focus-visible {
  --lift: -8px;
  --icon-lift: -6px;
  border-color: rgba(0, 174, 239, 0.55);
  background:
    linear-gradient(165deg, rgba(0, 174, 239, 0.22) 0%, transparent 48%),
    linear-gradient(180deg, #152033 0%, #0b1220 100%);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}

.jams-service-box:hover .jams-service-box__edge,
.jams-service-box:focus-visible .jams-service-box__edge {
  transform: scaleX(1);
}

.jams-service-box:hover .jams-service-box__glow,
.jams-service-box:focus-visible .jams-service-box__glow {
  opacity: 1;
}

.jams-service-box:hover .jams-service-box__icon img,
.jams-service-box:focus-visible .jams-service-box__icon img {
  transform: scale(1.06);
  filter: drop-shadow(0 14px 22px rgba(0, 174, 239, 0.25));
}

.jams-service-box:hover .jams-service-box__cta,
.jams-service-box:focus-visible .jams-service-box__cta {
  opacity: 1;
  transform: translateY(0);
  color: var(--gacor-orange, #00aeef);
}

.jams-service-box:hover .jams-service-box__cta::after,
.jams-service-box:focus-visible .jams-service-box__cta::after {
  width: 28px;
  background: var(--gacor-orange, #00aeef);
}

.jams-service-box:active {
  --lift: -3px;
}

/* Responsive */
@media (max-width: 1100px) {
  .jams-service-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jams-service-box {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .jams-service-boxes {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .jams-service-box {
    min-height: 240px;
    padding: 30px 20px 24px;
  }

  .jams-service-box__cta {
    opacity: 1;
    transform: none;
    color: var(--gacor-orange, #00aeef);
  }
}

/* Keep Salient column spacing tidy when shortcode sits in a VC row */
.wpb_wrapper > .jams-service-boxes {
  margin-top: 0;
  margin-bottom: 0;
}
