/* WhatsApp-first contact (27-28 Nov 2026): hero/menu buttons, floating button
   (added by assets/js/whatsapp.js) and the contact form's contact-method choice.
   Business number only: +44 7777 574587. */
.wa-ico { width: 20px; height: 20px; flex: none; }
.btn--ghost.btn--wa .wa-ico { color: var(--mint); }

.wa-float {
  position: fixed; z-index: 80; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--mint); color: var(--ink-900);
  font-weight: 700; font-size: 16px; white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  transition: transform .25s var(--ease), background-color .2s;
}
.wa-float .wa-ico { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-2px); background: var(--mint-bright); }
.wa-float:focus-visible { outline: 2px solid var(--white, #fff); outline-offset: 3px; }

/* Phones: a round icon button so it never covers the content. */
@media (max-width: 719px) {
  .wa-float { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
@media print { .wa-float { display: none; } }

/* With JS, the button waits until the hero's own WhatsApp button has scrolled away. */
.wa-float--wait { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
.wa-float--wait.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease), visibility 0s; }

/* Mobile menu button: space it from Sign in. */
.btn--block.btn--wa { margin-top: 4px; }
/* Hide the floating button while the mobile menu is open (the menu has its own button). */
body.menu-open .wa-float { display: none; }

/* Contact page: WhatsApp-first block above the enquiry form. */
.wa-first { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.wa-first__note { color: var(--text-muted); font-size: 15px; }

/* Desktop QR popup (assets/js/whatsapp.js). */
.wa-modal {
  width: min(360px, calc(100vw - 32px)); padding: 28px 24px 24px; border: 0; border-radius: 20px;
  background: var(--ink-850, #141919); color: var(--text, #fff); text-align: center;
  box-shadow: inset 0 0 0 1px var(--line-strong, rgba(255,255,255,.16)), 0 30px 60px -20px rgba(0,0,0,.7);
}
.wa-modal::backdrop { background: rgba(0,0,0,.6); }
.wa-modal__close {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: var(--text-muted, #aaa); font-size: 26px; line-height: 1; cursor: pointer;
}
.wa-modal__close:hover { color: var(--text, #fff); background: rgba(255,255,255,.06); }
.wa-modal__title { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.wa-modal__sub { color: var(--text-muted, #aaa); font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.wa-modal__qr { position: relative; width: 240px; height: 240px; margin: 0 auto 14px; padding: 10px; border-radius: 14px; background: #fff; color: #0c0f0f; display: grid; place-items: center; font-size: 14px; }
.wa-modal__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.wa-modal__logo .wa-ico { width: 34px; height: 34px; color: #25d366; }
.wa-modal__name { font-weight: 700; font-size: 18px; margin: 0 0 2px; }
.wa-modal__qr svg { width: 100%; height: 100%; display: block; }
.wa-modal__num { color: var(--text-muted, #aaa); font-size: 14px; margin: 0 0 18px; }
