/* ============================================================
   BOTÃO FLUTUANTE WHATSAPP — "Pedir Orçamento"
   Componente partilhado. Presente em todas as páginas
   EXCETO na página de Contacto.
   Recolhido = círculo com ícone. Hover = abre o texto (pill).
============================================================ */
.wa-float {
  /* tokens locais do componente (autossuficiente) */
  --wa-green:      #25D366;
  --wa-green-dark: #1aab52;
  --wa-ease:       cubic-bezier(0.22, 1, 0.36, 1);

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9990;

  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;   /* ícone à direita, texto abre para a esquerda */

  background: var(--wa-green);
  color: #fff;
  text-decoration: none;

  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);

  transition: background .25s ease,
              box-shadow .3s ease,
              transform .25s var(--wa-ease);
  will-change: transform;
}

.wa-float:hover,
.wa-float:focus-visible {
  background: var(--wa-green-dark);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
  transform: translateY(-3px);
}

.wa-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}

/* Ícone — círculo sempre visível */
.wa-float__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-float__icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Texto — escondido por defeito, abre no hover/focus */
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;

  font-family: 'Barlow Condensed', 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;

  transition: max-width .4s var(--wa-ease),
              opacity .3s ease,
              padding .4s var(--wa-ease);
}

.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  max-width: 240px;
  opacity: 1;
  padding: 0 4px 0 22px;   /* respiro à esquerda + junto do ícone */
}

/* Mobile — botão menor; texto fica sempre visível (não há hover) */
@media (max-width: 640px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
  }
  .wa-float__icon {
    width: 54px;
    height: 54px;
  }
  .wa-float__icon svg {
    width: 27px;
    height: 27px;
  }
}

/* Acessibilidade — respeitar quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .wa-float__label {
    transition: none;
  }
}
