/* WhatsApp CTAs ------------------------------------------------- */

.btn--wa {
  background: #2f7d54;
  border-color: #2f7d54;
  color: #fff;
}

.btn--wa svg {
  width: 15px;
  height: 15px;
}

.btn--wa:hover {
  background: #266b47;
  border-color: #266b47;
  color: #fff;
}

.btn--wa:hover svg {
  transform: none;
}

/* Inline contact row -------------------------------------------- */

.contact-wa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-top: 26px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-wa__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-wa__number {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.14em;
  transition: color 0.35s ease, text-decoration-color 0.35s ease;
}

.contact-wa__number:hover {
  color: var(--forest);
  text-decoration-color: var(--forest);
}

/* Floating button ----------------------------------------------- */

.wa-float {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 220;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2f7d54;
  color: #fff;
  box-shadow: 0 14px 34px rgba(10, 20, 14, 0.42);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: background 0.35s ease, transform 0.6s var(--ease) 0.8s,
              box-shadow 0.4s ease, opacity 0.6s ease 0.8s;
}

.wa-float.is-ready {
  opacity: 1;
  transform: none;
  transition: background 0.35s ease, transform 0.4s var(--ease),
              box-shadow 0.4s ease, opacity 0.4s ease;
}

.wa-float:hover {
  background: #266b47;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 20px 42px rgba(10, 20, 14, 0.5);
}

.wa-float > svg {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
}

.wa-float__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: wa-pulse 2.8s ease-out infinite;
}

.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 10px 13px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  pointer-events: none;
}

.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 125, 84, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(47, 125, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 125, 84, 0); }
}

@media (max-width: 440px) {
  .wa-float {
    width: 52px;
    height: 52px;
  }

  .wa-float > svg {
    width: 25px;
    height: 25px;
  }

  .contact-wa .btn--wa {
    width: 100%;
  }
}

@media print {
  .wa-float {
    display: none !important;
  }
}
