/* ==========================================================================
   WhatsApp contact picker — header trigger + two-person popover
   GRACE  → wa.me/8615268557636
   MOBIN  → wa.me/8619817135005
   ========================================================================== */

.header__cta { position: relative; }

/* ---------- trigger ---------- */
.wa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(74, 164, 133, .45);
  background: #eaf5f0;
  color: #3d8d72;
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.wa-cta__label { display: none; }

.wa-cta svg { width: 17px; height: 17px; }

.wa-cta:hover,
.wa-cta[aria-expanded="true"] {
  background: var(--teal, #4aa485);
  border-color: var(--teal, #4aa485);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(74, 164, 133, .95);
}

.wa-cta:focus-visible { outline: 2px solid var(--teal, #4aa485); outline-offset: 3px; }

/* ---------- popover ---------- */
.wa-pop {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 60;
  width: min(88vw, 430px);
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line, #e6e1d8);
  border-radius: 18px;
  box-shadow: var(--shadow-lg, 0 40px 80px -40px rgba(6, 37, 63, .45));
  animation: wa-pop-in .18s ease-out both;
}

.wa-pop[hidden] { display: none; }

@keyframes wa-pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.wa-pop__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }

.wa-pop__title {
  margin: 0;
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink, #16212c);
}

.wa-pop__title small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted, #8a94a0);
}

.wa-pop__close {
  margin-left: auto;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f0ea;
  color: var(--body, #5c6875);
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease;
}

.wa-pop__close:hover { background: var(--navy, #0b3a63); color: #fff; }

.wa-pop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- contact card ---------- */
.wa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 14px;
  text-align: center;
  border: 1px solid var(--line, #e6e1d8);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #faf8f4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wa-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 164, 133, .6);
  box-shadow: 0 18px 32px -22px rgba(6, 37, 63, .5);
}

.wa-card__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 12px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(140deg, var(--teal, #4aa485), var(--navy, #0b3a63));
  color: #fff;
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 20px -12px rgba(6, 37, 63, .7);
}

/* initials show through until the portrait file is present */
.wa-card__photo::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.wa-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.wa-card__name {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink, #16212c);
}

.wa-card__num { margin-top: 2px; font-size: .82rem; color: var(--body, #5c6875); }

.wa-card__go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3d8d72;
}

.wa-card__go svg { width: 12px; height: 12px; transition: transform .2s ease; }
.wa-card:hover .wa-card__go svg { transform: translateX(3px); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .header__cta { gap: 8px; }
  .wa-cta { width: 36px; height: 36px; }
  .wa-pop { position: fixed; top: 74px; left: 12px; right: auto; width: calc(100vw - 24px); max-width: 430px; }
  .wa-pop__grid { grid-template-columns: 1fr; gap: 10px; }
  .wa-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    grid-template-areas: "photo name go" "photo num go";
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    justify-items: start;
    padding: 12px 14px;
    text-align: left;
  }
  .wa-card__photo { grid-area: photo; width: 64px; height: 64px; margin-bottom: 0; font-size: 1.4rem; }
  .wa-card__name { grid-area: name; }
  .wa-card__num { grid-area: num; margin-top: 0; }
  .wa-card__go { grid-area: go; margin-top: 0; }
}

@media (max-width: 460px) {
  .wa-card__photo { width: 72px; height: 72px; font-size: 1.5rem; }
  .wa-card__name { font-size: .88rem; letter-spacing: .1em; }
  .wa-card__num { font-size: .76rem; }
}
