/* ═══════════════════════════════════════════
   HARBOR LEGAL — WhatsApp Widget
   Floating button + message picker popup
   ═══════════════════════════════════════════ */

/* ── Floating button ── */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .35), 0 2px 6px rgba(0,0,0,.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45), 0 3px 10px rgba(0,0,0,.12);
}
.wa-fab:active { transform: scale(.96); }

.wa-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Pulse ring */
.wa-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .4);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .6; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Tooltip */
.wa-fab-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink, #1a1a2e);
  color: #fff;
  font-family: var(--f-body, 'Outfit', sans-serif);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.wa-fab-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink, #1a1a2e);
}
.wa-fab:hover .wa-fab-tooltip { opacity: 1; }

/* ── Message picker popup ── */
.wa-popup {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 901;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  opacity: 0;
  transform: translateY(12px) scale(.96);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-popup-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-light, #e8e6e0);
}
.wa-popup-title {
  font-family: var(--f-display, 'Cormorant Garamond', Georgia, serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink, #1a1a2e);
  margin: 0;
}
.wa-popup-subtitle {
  font-size: 13px;
  color: var(--ink-soft, #6b6b7b);
  margin-top: 4px;
}

.wa-popup-messages {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-msg-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-light, #e8e6e0);
  border-radius: 8px;
  background: var(--bg, #faf9f6);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink, #1a1a2e);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color .2s, background .2s;
}
.wa-msg-option:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, .05);
}
.wa-msg-option::before {
  content: '💬';
  font-size: 16px;
  flex-shrink: 0;
}

.wa-popup-custom {
  padding: 0 16px 16px;
}
.wa-custom-link {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: var(--indigo, #2D2B6B);
  text-decoration: none;
  border-top: 1px solid var(--border-light, #e8e6e0);
  margin-top: 4px;
  padding-top: 12px;
}
.wa-custom-link:hover { text-decoration: underline; }

/* ── Mobile phone icon in nav ── */
.nav-phone-mobile {
  display: none;
}
@media (max-width: 900px) {
  .nav-phone-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--indigo, #2D2B6B);
    margin-right: 8px;
    flex-shrink: 0;
  }
  .nav-phone-mobile svg {
    width: 18px;
    height: 18px;
    fill: #fff;
  }
  .wa-fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .wa-fab svg { width: 26px; height: 26px; }
  .wa-fab-tooltip { display: none; }
  .wa-popup { right: 12px; left: 12px; width: auto; bottom: 82px; }
}

/* ── WhatsApp card on contact page ── */
.wa-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border-light, #e8e6e0);
  border-radius: 8px;
  background: var(--bg, #faf9f6);
  text-decoration: none;
  color: var(--ink, #1a1a2e);
  transition: border-color .2s, box-shadow .2s;
  margin-top: 24px;
}
.wa-contact-card:hover {
  border-color: #25D366;
  box-shadow: 0 2px 12px rgba(37, 211, 102, .15);
}
.wa-contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-contact-card-icon svg { width: 22px; height: 22px; fill: #fff; }
.wa-contact-card-text { font-size: 14px; line-height: 1.6; }
.wa-contact-card-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
