/* ============================================================
   A-Group International — Updates CSS
   Covers: messaging icons cluster, 4-service grid layout fix
   ============================================================ */

/* ----------------------------------------------------------
   1. SERVICE GRID — 4-item layout (2×2)
      Applied via .svc-grid--four on the grid wrapper
   ---------------------------------------------------------- */
.svc-grid--four {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 580px) {
  .svc-grid--four {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   2. MESSAGING BUTTONS CLUSTER
      Replaces the single .wa button with a vertical stack
   ---------------------------------------------------------- */

/* Container that holds all three messaging buttons */
.msg-cluster {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Each individual messaging button */
.msg-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.msg-btn:hover {
  transform: scale(1.10);
}

.msg-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* WhatsApp — green */
.msg-btn--wa {
  background: #25D366;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.40);
}
.msg-btn--wa:hover {
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.60);
}

/* Viber — purple */
.msg-btn--viber {
  background: #7360F2;
  box-shadow: 0 4px 18px rgba(115, 96, 242, 0.40);
}
.msg-btn--viber:hover {
  box-shadow: 0 6px 28px rgba(115, 96, 242, 0.60);
}

/* Telegram — blue */
.msg-btn--telegram {
  background: #26A5E4;
  box-shadow: 0 4px 18px rgba(38, 165, 228, 0.40);
}
.msg-btn--telegram:hover {
  box-shadow: 0 6px 28px rgba(38, 165, 228, 0.60);
}

/* Tooltip labels (show on hover) */
.msg-btn {
  position: relative;
}
.msg-btn::before {
  content: attr(title);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 9, 26, 0.90);
  color: #e2d5a0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.msg-btn:hover::before {
  opacity: 1;
}

/* Responsive: shrink slightly on very small screens */
@media (max-width: 400px) {
  .msg-cluster {
    bottom: 16px;
    right: 14px;
    gap: 8px;
  }
  .msg-btn {
    width: 46px;
    height: 46px;
  }
  .msg-btn svg {
    width: 22px;
    height: 22px;
  }
}
