/* WhatsApp FAB + Contact CTA — exact React WhatsAppButton parity */

:root {
  --ari-wa-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ari-wa-green: #25d366;
  --ari-wa-bg: #0c0c0c;
}

.ari-wa-fab {
  position: fixed;
  bottom: 1.5rem; /* bottom-6 */
  right: 1.5rem;
  z-index: 50;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 768px) {
  .ari-wa-fab {
    bottom: 2.5rem; /* md:bottom-10 */
    right: 2.5rem; /* md:right-10 */
  }
}
.ari-wa-fab.ari-wa-in {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.ari-wa-fab.ari-wa-out {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  pointer-events: none;
}

.ari-wa-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(200, 166, 152, 0.3); /* outline/30-ish */
  background: var(--ari-wa-bg);
  padding: 0.875rem; /* p-3.5 */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: colors 0.5s ease;
}
@media (min-width: 768px) {
  .ari-wa-link {
    padding: 0.875rem 1.25rem; /* md:px-5 md:py-3.5 */
    min-width: 190px;
  }
}

/* Dual diagonal sweeps */
.ari-wa-sweep {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateX(-120%) skewX(12deg) scale(1.1);
  transform-origin: left center;
  transition: transform 600ms var(--ari-wa-ease);
  pointer-events: none;
}
.ari-wa-sweep-accent {
  background: #e9652b; /* accent */
}
.ari-wa-sweep-green {
  background: var(--ari-wa-green);
  transition-delay: 60ms;
}
.ari-wa-link:hover .ari-wa-sweep {
  transform: translateX(0) skewX(12deg) scale(1.1);
}

.ari-wa-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.875rem; /* gap-3.5 */
}

.ari-wa-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.ari-wa-glow {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(3px);
  transform: scale(0.75);
  transition: all 0.5s ease;
  pointer-events: none;
}
.ari-wa-link:hover .ari-wa-glow {
  background: rgba(37, 211, 102, 0.2);
  transform: scale(1.25);
}

.ari-wa-svg {
  position: relative;
  z-index: 10;
  display: block;
  width: 1.25rem; /* w-5 */
  height: 1.25rem;
  flex-shrink: 0;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); /* spring-ish */
  pointer-events: none;
}
.ari-wa-link:hover .ari-wa-svg,
.ari-wa-contact:hover .ari-wa-svg {
  transform: scale(1.18);
  animation: ariWaShake 0.6s ease-in-out;
}
@keyframes ariWaShake {
  0% { transform: scale(1.18) rotate(0deg); }
  16% { transform: scale(1.18) rotate(-18deg); }
  32% { transform: scale(1.18) rotate(15deg); }
  48% { transform: scale(1.18) rotate(-12deg); }
  64% { transform: scale(1.18) rotate(10deg); }
  80% { transform: scale(1.18) rotate(-5deg); }
  100% { transform: scale(1.18) rotate(0deg); }
}

.ari-wa-sep {
  width: 1px;
  height: 1rem;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
  display: none;
}
@media (min-width: 768px) {
  .ari-wa-sep {
    display: block;
  }
}
.ari-wa-link:hover .ari-wa-sep {
  background: rgba(255, 255, 255, 0.4);
}

.ari-wa-label {
  display: none;
  overflow: hidden;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}
@media (min-width: 768px) {
  .ari-wa-label {
    display: flex;
  }
}
.ari-wa-char {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ari-wa-char > span {
  display: inline-block;
  transition: transform 500ms var(--ari-wa-ease);
}
.ari-wa-char > span:last-child {
  position: absolute;
  top: 100%;
  left: 0;
  font-weight: 700;
  color: #fff;
}
.ari-wa-link:hover .ari-wa-char > span:first-child {
  transform: translateY(-150%);
}
.ari-wa-link:hover .ari-wa-char > span:last-child {
  transform: translateY(-100%);
}

/* Contact page inline WhatsApp CTA */
.ari-wa-contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 52px;
  border: 1px solid rgba(200, 166, 152, 0.3);
  background: var(--ari-wa-bg);
  padding: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  border-radius: 0;
}
.ari-wa-contact .ari-wa-content {
  justify-content: center;
}
.ari-wa-contact .ari-wa-sep {
  display: block;
}
.ari-wa-contact .ari-wa-label {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .ari-wa-fab,
  .ari-wa-sweep,
  .ari-wa-svg,
  .ari-wa-char > span,
  .ari-wa-glow {
    transition: none !important;
    animation: none !important;
  }
  .ari-wa-fab {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }
}
