/* Anayanex Footer v2 — SaaS / software-company layout
   Button theme matches contact form .wpr-btn (charcoal metallic) */

.wpr-footer-area.ax-footer--v2 {
  background: #0a0a0b;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 48px;
}

.wpr-footer-area.ax-footer--v2 > .container {
  padding-top: 8px;
}

.wpr-footer-area.ax-footer--v2 .ax-footer__shell {
  background: #111214;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
}

/* Top CTA band */
.ax-footer__cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(64, 69, 74, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, #1a1c1e 0%, #141516 100%);
  flex-wrap: wrap;
}

.ax-footer__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
}

.ax-footer__cta-title {
  margin: 0;
  max-width: 520px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff !important;
  text-transform: none !important;
}

/* Exact contact Submit Message button language */
.ax-footer__btn.wpr-btn {
  flex-shrink: 0;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 24px;
  border-radius: 12px;
  border: none !important;
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(137.66deg, #40454A 21.13%, #292C2E 80.53%) !important;
  box-shadow:
    0px 3px 3px rgba(0, 0, 0, 0.1),
    inset 0px 1px 0px rgba(255, 255, 255, 0.6),
    inset 0px -3px 0px #1A1A1A,
    inset 0px -4px 0px 1px rgba(255, 255, 255, 0.1);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.ax-footer__btn.wpr-btn:hover {
  filter: brightness(1.08);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Main grid */
.ax-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px 28px;
  padding: 48px 40px 40px;
  color: #fff !important;
}

.ax-footer__logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.ax-footer__logo img {
  display: block;
  max-height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ax-footer__tagline {
  margin: 0 0 18px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.65;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.ax-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #fff !important;
  text-transform: none !important;
}

.ax-footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: ax-footer-pulse 2s ease-in-out infinite;
}

@keyframes ax-footer-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

.ax-footer__h {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase !important;
  color: #fff !important;
}

.ax-footer__links {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ax-footer__links li {
  margin: 0;
  padding: 0;
}

.ax-footer__links a,
.ax-footer__links span {
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: opacity 0.2s ease;
}

.ax-footer__links a:hover {
  color: #fff !important;
  opacity: 0.8;
}

/* Bottom bar */
.ax-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0e10;
  flex-wrap: wrap;
}

.ax-footer__copy {
  margin: 0;
  flex: 1 1 auto;
  min-width: 180px;
  font-size: 12px;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.ax-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 1 auto;
}

.ax-footer__chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(137.66deg, #40454A 21.13%, #292C2E 80.53%);
  box-shadow:
    inset 0px 1px 0px rgba(255, 255, 255, 0.35),
    inset 0px -2px 0px #1A1A1A;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.ax-footer__chip:hover {
  filter: brightness(1.12);
  color: #fff;
  transform: translateY(-1px);
}

.ax-footer__top-btn.scroll-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0;
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(137.66deg, #40454A 21.13%, #292C2E 80.53%);
  box-shadow:
    inset 0px 1px 0px rgba(255, 255, 255, 0.45),
    inset 0px -2px 0px #1A1A1A;
}

.ax-footer__top-btn.scroll-top-btn:hover {
  filter: brightness(1.1);
}

/* Kill old layout remnants */
.wpr-footer-area.ax-footer--v2 .footer-top,
.wpr-footer-area.ax-footer--v2 .footer-logo-area,
.wpr-footer-area.ax-footer--v2 .ax-footer__main,
.wpr-footer-area.ax-footer--v2 .ax-footer__cta.btn-primary {
  display: none !important;
}

@media (max-width: 991px) {
  .ax-footer__grid {
    grid-template-columns: 1fr 1fr;
    padding: 36px 24px 28px;
  }

  .ax-footer__cta-band,
  .ax-footer__bar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .ax-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .ax-footer__grid {
    grid-template-columns: 1fr;
  }

  .ax-footer__cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .ax-footer__btn.wpr-btn {
    width: 100%;
    justify-content: center;
  }

  /* Keep back-to-top clear of primary CTAs on phones */
  .progress-wrap {
    right: 14px !important;
    bottom: 18px !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 40;
  }

  .progress-wrap::after,
  .progress-wrap::before {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 15px !important;
  }
}
