/* NEREMAI — WhatsApp support entry. Self-contained: safe on both the v2 home
 * surfaces and the plain legal/support pages. Brand: Deep Teal #014256 on warm
 * cotton, restrained motion — the Warm Restraint language of the site. */

.wa-entry {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #014256;
  color: #fbf8f1;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(1, 66, 86, .28);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s cubic-bezier(.22, 1, .36, 1), background .3s ease;
}

.wa-entry:hover { background: #01506b; transform: translateY(-2px); }
.wa-entry:focus-visible { outline: 2px solid #014256; outline-offset: 3px; }

.wa-entry__icon { width: 1.75rem; height: 1.75rem; display: block; }

.wa-entry__label {
  position: absolute;
  right: calc(100% + .65rem);
  top: 50%;
  transform: translateY(-50%) translateX(.35rem);
  padding: .5rem .85rem;
  border-radius: .65rem;
  background: #fbf8f1;
  color: #014256;
  border: 1px solid rgba(1, 66, 86, .18);
  font: 500 .82rem/1.1 "Instrument Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .wa-entry:hover .wa-entry__label,
  .wa-entry:focus-visible .wa-entry__label { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Hidden while a primary submit action is on screen on narrow viewports, so
 * the entry never covers the main mobile action. */
.wa-entry.is-suppressed { opacity: 0; pointer-events: none; transform: translateY(.5rem); }

@media (max-width: 900px) {
  .wa-entry { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: 3rem; height: 3rem; }
  .wa-entry__icon { width: 1.6rem; height: 1.6rem; }
  .wa-entry__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-entry, .wa-entry__label { transition: none; }
  .wa-entry:hover { transform: none; }
}
