/* WhatsApp chat on every page (markup rendered by assets/js/whatsapp.js).
   Above 720px: a round button with a "chat with Navneet" pill. 720px and below: a sticky banner.
   Both link straight to WhatsApp. */

.wa-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.wa-chat:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 999px; }

/* Round button with a dark "chat with Navneet" pill beside it, styled like the
   phone banner (green edge and offset shadow, lime name). */
.wa-chat__open {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 16px 32px -12px rgb(18 140 70 / 65%);
  transition: transform .25s ease;
}
.wa-chat__pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 16px;
  border: 2px solid #25d366;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 3px 3px 0 #25d366;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-chat:hover .wa-chat__open { transform: translateY(-2px) scale(1.04); }
.wa-chat:hover .wa-chat__pill { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #25d366; }
.wa-chat:active .wa-chat__pill { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #25d366; }
.wa-chat__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgb(37 211 102 / 22%); }
.wa-chat__copy { display: flex; flex-direction: column; gap: 2px; }
.wa-chat__title { font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.wa-chat__agent-name { color: #c6f24e; }
.wa-chat__meta { font: 500 10.5px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--night-muted); }

.wa-banner { display: none; }

@media (max-width: 720px) {
  .wa-chat { display: none; }
  /* Room for the banner inside the dark footer, so no light strip shows below it. */
  body.has-wa-banner .site-footer { padding-bottom: calc(40px + 92px + env(safe-area-inset-bottom, 0px)); }

  .wa-banner {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 12px 12px;
    border: 2px solid #25d366;
    border-radius: 16px;
    background: var(--ink);
    box-shadow: 4px 4px 0 #25d366;
    color: var(--white);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .wa-banner:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #25d366; }
  .wa-banner:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

  /* WhatsApp logo with a small "online" dot on its corner. */
  .wa-banner__icon { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #25d366; }
  .wa-banner__icon::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; background: #c6f24e; }

  .wa-banner__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .wa-banner__title { font-weight: 600; font-size: 16px; line-height: 1.2; }
  .wa-banner__name { color: #c6f24e; }
  .wa-banner__meta { font: 500 11px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-chat__open,
  .wa-chat__pill,
  .wa-banner { transition: none; }
}
